MAK RTIspy API Documentation for HLA Evolved
List of all members | Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes
DtAssistantAddLrcConnDialog Class Reference

Dialog that allows a user to enter connection information. More...

+ Inheritance diagram for DtAssistantAddLrcConnDialog:
+ Collaboration diagram for DtAssistantAddLrcConnDialog:

Public Slots

virtual void selectNetworkInterfaceAddrForHost (int hostIndex)
 Selects the known good network interface address for the host selection.
virtual void selectBestEffortAddrForNetworkInterface (int hostIndex)
 Decides if a new value should be set for the best-effort address based on a change to the network interface address.
virtual void udpateDefaultConnName ()
 Updates the default connection name, if in use.
void useRtiExecClicked (bool)
 toggles between showing advanced options and not.
void toggleAdvanced ()
 Toggles between showing and hiding advanced config options.
- Public Slots inherited from DtAssistantAddConnDialog
virtual void enableDefaultConnName ()
 Enables the construction of the default connection name, instead using user entered name.
virtual void disableDefaultConnName ()
 Disables the construction of the default connection name, instead using user entered name.
void storeNextDefaultConnNum ()
 Saves the next default connection number to be used for the current default connection name.
void clearDefaultConnNum ()
 Saves the next connection number to be used for the current default connection name.
virtual bool isLoopbackAddress (const QString &address) const
 Returns true if the given IP address is a loopback address.
virtual bool isIpv6Address (const QString &address) const
 Returns true if the given IP address is an IPv6 address.
virtual bool isLoopbackDestination (const QString &address) const
 Returns true if the given destination IP address is a loopback multicast, broadcast, or unicast address.

Public Member Functions

 DtAssistantAddLrcConnDialog (DtAssistantConnQueryWidget *parent, Qt::WindowFlags f=0)
 Constructor.
virtual ~DtAssistantAddLrcConnDialog ()
 Destructor.
virtual void setNetworkInterfaceAddrs (const QStringList &addrs)
 Sets the list of possible network interface addresses to use.
virtual void setAvailableHosts (const DtHostInterfaceAddrList &hosts)
 Sets the list of known hosts and their network interface addresses.
virtual void setData (bool useRtiexec, const QString &host, int bestEffortPort, int reliablePort, const QString &bestEffortIp, const QString &networkInterfaceAddr, int forwarderPort, const QString &additionalForwarderToConnectTo)
 Sets the data in the dialog.
virtual void setName (const QString &connName)
 Sets the name for the connection in the dialog.
virtual void getData (bool &useRtiexec, QString &connName, QString &host, int &bestEffortPort, int &reliablePort, QString &bestEffortIp, QString &networkInterfaceAddr, int &forwarderPort, QString &additionalForwarderToConnectTo)
 Gets the data in the dialog.
- Public Member Functions inherited from DtAssistantAddConnDialog
 DtAssistantAddConnDialog (DtAssistantConnQueryWidget *parent, Qt::WindowFlags f=0)
 Constructor.
virtual ~DtAssistantAddConnDialog ()
 Destructor.

Protected Member Functions

virtual void redraw ()
 Redraw the display hiding and showing things as necessary.
- Protected Member Functions inherited from DtAssistantAddConnDialog
virtual bool getDefaultRtiexecConnName (QString &name, const QString &host)
 Determines the new default connection name for an rtiexec connection.
virtual bool getDefaultLightweightConnName (QString &name)
 Determines the new default connection name for a lightweight connection.

Protected Attributes

Ui::AddLrcConnectionDialog myUiImpl
 The GUI implementation of the widget.
bool myShowingAdvanced
 Whether or not the advanced options are currently shown.
bool myShowingExecOptions
 Whether or not the exec options are being shown.
DtAssistantAdvancedForwarderOptionsWidgetmyAdvancedOptionsWidget
 Widget which displays advanced forwarder options.
DtHostInterfaceAddrList myHosts
 This keeps a list of hostname and network device detected pairs.
bool myNetworkIfIsLoopback
 Stores whether the previous network interface was a loopback address.
QRegExpValidator * myBestEffortIpValidator
 Validators to check the input of the line edit boxes.
QIntValidator * myPortValidator
 Validators to check the input of the line edit boxes.
QRegExpValidator * myConnectionNameValidator
 Validators to check the input of the line edit boxes.
- Protected Attributes inherited from DtAssistantAddConnDialog
DtAssistantConnQueryWidgetmyParent
 The parent of this dialog.
bool myUseDefaultConnName
 Indicates that no user supplied connection name was specified, so the default should be displayed and used.
std::map< QString, unsigned > myNextDefaultConnNum
 The next number to use to differentiate connections with the same default name, mapped by name.
unsigned myDefaultConnNum
 The default connection name number currently being used.
QString myDefaultConnName
 The base string for the default connection name currently being used.

Additional Inherited Members

- Static Protected Attributes inherited from DtAssistantAddConnDialog
static const QString theDefaultIpv4LoopbackMcastAddr
 Default multicast addresses for loopback and non-loopback interfaces.
static const QString theDefaultIpv4NonLoopbackMcastAddr
 Default multicast addresses for loopback and non-loopback interfaces.
static const QString theDefaultIpv6LoopbackMcastAddr
 Default multicast addresses for loopback and non-loopback interfaces.
static const QString theDefaultIpv6NonLoopbackMcastAddr
 Default multicast addresses for loopback and non-loopback interfaces.

Detailed Description

Dialog that allows a user to enter connection information.

Constructor & Destructor Documentation

DtAssistantAddLrcConnDialog::DtAssistantAddLrcConnDialog ( DtAssistantConnQueryWidget parent,
Qt::WindowFlags  f = 0 
)
DtAssistantAddLrcConnDialog::~DtAssistantAddLrcConnDialog ( )
virtual

Destructor.

Member Function Documentation

void DtAssistantAddLrcConnDialog::getData ( bool &  useRtiexec,
QString &  connName,
QString &  host,
int &  bestEffortPort,
int &  reliablePort,
QString &  bestEffortIp,
QString &  networkInterfaceAddr,
int &  forwarderPort,
QString &  additionalForwarderToConnectTo 
)
virtual
void DtAssistantAddLrcConnDialog::redraw ( )
protectedvirtual

Redraw the display hiding and showing things as necessary.

References myAdvancedOptionsWidget, myShowingAdvanced, myShowingExecOptions, and myUiImpl.

Referenced by toggleAdvanced(), and useRtiExecClicked().

void DtAssistantAddLrcConnDialog::selectBestEffortAddrForNetworkInterface ( int  hostIndex)
virtualslot
void DtAssistantAddLrcConnDialog::selectNetworkInterfaceAddrForHost ( int  hostIndex)
virtualslot

Selects the known good network interface address for the host selection.

References myHosts, and myUiImpl.

Referenced by DtAssistantAddLrcConnDialog().

void DtAssistantAddLrcConnDialog::setAvailableHosts ( const DtHostInterfaceAddrList hosts)
virtual

Sets the list of known hosts and their network interface addresses.

A host is only added if its network interface address was set in setNetworkInterfaceAddrs().

References myHosts, and myUiImpl.

Referenced by DtAssistantLrcConnQueryWidget::promptUserForConnInfo().

void DtAssistantAddLrcConnDialog::setData ( bool  useRtiexec,
const QString &  host,
int  bestEffortPort,
int  reliablePort,
const QString &  bestEffortIp,
const QString &  networkInterfaceAddr,
int  forwarderPort,
const QString &  additionalForwarderToConnectTo 
)
virtual
void DtAssistantAddLrcConnDialog::setName ( const QString &  connName)
virtual

Sets the name for the connection in the dialog.

References DtAssistantAddConnDialog::disableDefaultConnName(), and myUiImpl.

Referenced by DtAssistantLrcConnQueryWidget::promptUserForConnInfo().

void DtAssistantAddLrcConnDialog::setNetworkInterfaceAddrs ( const QStringList &  addrs)
virtual

Sets the list of possible network interface addresses to use.

References myUiImpl.

Referenced by DtAssistantLrcConnQueryWidget::loadLocalInterfaceList().

void DtAssistantAddLrcConnDialog::toggleAdvanced ( )
slot

Toggles between showing and hiding advanced config options.

References myShowingAdvanced, and redraw().

Referenced by DtAssistantAddLrcConnDialog().

void DtAssistantAddLrcConnDialog::udpateDefaultConnName ( )
virtualslot
void DtAssistantAddLrcConnDialog::useRtiExecClicked ( bool  useRtiExec)
slot

toggles between showing advanced options and not.

References myShowingExecOptions, redraw(), and useRtiExec.

Referenced by DtAssistantAddLrcConnDialog().

Member Data Documentation

DtAssistantAdvancedForwarderOptionsWidget* DtAssistantAddLrcConnDialog::myAdvancedOptionsWidget
protected

Widget which displays advanced forwarder options.

Referenced by DtAssistantAddLrcConnDialog(), getData(), redraw(), and setData().

QRegExpValidator* DtAssistantAddLrcConnDialog::myBestEffortIpValidator
protected

Validators to check the input of the line edit boxes.

Referenced by DtAssistantAddLrcConnDialog().

QRegExpValidator* DtAssistantAddLrcConnDialog::myConnectionNameValidator
protected

Validators to check the input of the line edit boxes.

Referenced by DtAssistantAddLrcConnDialog().

DtHostInterfaceAddrList DtAssistantAddLrcConnDialog::myHosts
protected

This keeps a list of hostname and network device detected pairs.

Referenced by selectNetworkInterfaceAddrForHost(), and setAvailableHosts().

bool DtAssistantAddLrcConnDialog::myNetworkIfIsLoopback
protected

Stores whether the previous network interface was a loopback address.

Referenced by DtAssistantAddLrcConnDialog(), and selectBestEffortAddrForNetworkInterface().

QIntValidator* DtAssistantAddLrcConnDialog::myPortValidator
protected

Validators to check the input of the line edit boxes.

Referenced by DtAssistantAddLrcConnDialog().

bool DtAssistantAddLrcConnDialog::myShowingAdvanced
protected

Whether or not the advanced options are currently shown.

Referenced by redraw(), and toggleAdvanced().

bool DtAssistantAddLrcConnDialog::myShowingExecOptions
protected

Whether or not the exec options are being shown.

Referenced by redraw(), and useRtiExecClicked().

Ui::AddLrcConnectionDialog DtAssistantAddLrcConnDialog::myUiImpl
protected

The documentation for this class was generated from the following files:

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)