![]() |
MAK Data Logger API Documentation for DIS
|
The DIS connection dialog interface. More...
Inheritance diagram for MAKLogger::DtDisConnectionDialog:
Collaboration diagram for MAKLogger::DtDisConnectionDialog:Public Member Functions | |
| DtDisConnectionDialog (DtLoggerApplication &app, DtLgrDisSimMenus *menu, QWidget *parent) | |
| CTOR. More... | |
| virtual | ~DtDisConnectionDialog () |
| DTOR. More... | |
| virtual void | setSiteId (const int val) |
| Set the Site ID. More... | |
| virtual int | siteId () const |
| virtual void | setPort (const int val) |
| virtual int | port () const |
| virtual void | setAppNum (const int val) |
| virtual int | appNum () const |
| virtual void | setExerciseId (const int val) |
| virtual int | exerciseId () const |
| virtual void | setSendBufferSize (const int val) |
| virtual int | sendBufferSize () const |
| virtual void | setRecvBufferSize (const int val) |
| virtual int | recvBufferSize () const |
| virtual void | setMulticastTtl (const int val) |
| virtual int | multicastTtl () const |
| virtual void | setUseAsyncIO (bool val) |
| virtual bool | useAsyncIO () const |
| virtual void | setUseExConnConfig (bool val) |
| virtual bool | useExConnConfig () const |
| virtual void | setConfigFile (const QString &configFileName) |
| Set/get the exercise connection config file path. More... | |
| virtual QString | configFile () const |
| virtual void | setDestAddrString (const QString &val, bool setInitial=true) |
| virtual QString | destAddrString () const |
| virtual void | setNetmask (const QString &val) |
| virtual void | setNetmask (DtU32 netMask) |
| virtual QString | netmaskString () const |
| virtual void | setDeviceAddrStrings (const QStringList &deviceAddrs) |
| virtual QString | deviceAddrString () const |
| virtual void | setMcastAddresses (const QString &val) |
| virtual QString | mcastAddresses () const |
| virtual void | registerConnectStatusChangeSlot () |
| Register slots associated with connection status. More... | |
| virtual void | setWaitOnLoadReconnect () |
| Set flag to wait on tape load reconnect. More... | |
| virtual void | setReadOnlyProperties (bool state) |
| Set the property for Qt widgets in order to use dynamic formatting. More... | |
| virtual void | setReadOnly (bool state) |
| Freeze or unfreeze the interface based on the state parameter. More... | |
| void | configureConnectionButton () |
| , sets the state of the connection button (to "connected" or "disconnected") More... | |
| virtual void | disconnect () |
| disconnects the simulation More... | |
| virtual bool | connect () |
| connects the simulation An initial check of the data (e.g., valid ip addresses) is made and the connection is not made if the data is invalid Returns bool: Initial check of data was valid and connect command sent? More... | |
| virtual void | connectStatusChanged (bool connected) |
| Process a connection change. More... | |
| virtual void | unableToConnect () |
| process a failed connect action More... | |
| virtual void | reloadConnectionSettings () |
| Reload connection fields based on current Use Exercise Connection Config state. More... | |
| virtual void | updateExerciseConfigHint () |
| Update the exercise-config status hint visibility and text. More... | |
Public Member Functions inherited from MAKLogger::DtLgrConnectionDialog | |
| DtLgrConnectionDialog (QWidget *parent) | |
| virtual | ~DtLgrConnectionDialog () |
Protected Slots | |
| void | connectButtonPressed () |
| A callback for when the connect button is pressed. More... | |
| void | deviceAddressChanged (const QString &devAddr) |
| A callback for when the device address is changed to update dependent fields (e.g., dest addr, netmask) More... | |
| void | configFileBrowse () |
| Browse for exercise connection config file. More... | |
| void | configFileEditingFinished () |
| Apply manually edited config file path. More... | |
Protected Member Functions | |
| virtual void | saveChanges () |
| Save configuration changes after a configuration change initiated from the loading a tape. More... | |
| virtual void | applyLgrConfigToDialog (DtLoggerAppConfigLoader *configLoader) |
| Populate the dialog widgets from the lgr-config env defaults held by the given config loader. More... | |
| virtual void | applyExerciseConfigToDialog (DtLoggerAppConfigLoader *configLoader) |
| Populate the dialog widgets from the exercise-conn-config file referenced by the given config loader. More... | |
| virtual bool | exerciseConfigSetsDeviceAddress () const |
| Whether the selected exercise-conn-config file explicitly sets the network device address. More... | |
| virtual bool | exerciseConfigSetsDestAddress () const |
| Whether the selected exercise-conn-config file explicitly sets the destination (broadcast) address. More... | |
| virtual const DtLgrDisSimInterface * | disSimInterface () const |
| Resolve the DIS sim interface if the GUI and full interface are available. More... | |
Protected Attributes | |
| DtLoggerApplication & | myApplication |
| DtLgrDisSimMenus * | myMenu |
| bool | myWaitingForConnect |
| bool | myWaitingForDisconnect |
| bool | myWaitOnLoadReconnect |
| bool | myHasChangedSinceSave |
| int | myCurrentSiteId |
| int | myCurrentPort |
| int | myCurrentAppNum |
| int | myCurrentExerciseId |
| int | myCurrentSendBufferSize |
| int | myCurrentRecvBufferSize |
| int | myCurrentMulticastTtl |
| bool | myCurrentUseAsyncIO |
| bool | myCurrentUseExConnConfig |
| QString | myCurrentDestAddr |
| QString | myCurrentNetMask |
| QString | myCurrentDeviceAddr |
| QString | myCurrentMcastAddresses |
| QString | myCurrentConfigFile |
| QLabel * | myExerciseConfigHintLabel |
| QLineEdit * | myConfigFileNameString |
| QToolButton * | myConfigFileBrowseButton |
The DIS connection dialog interface.
This wraps the Ui_DtDisConnectionDialog created by QT Designer with useful methods for manipulation. This class knows how to connect itself and disconnect itself, as well as the current state of the connection. However, it only knows the current state of the connection from the SimManager, which may be off for several seconds after the connection state has changed.
| MAKLogger::DtDisConnectionDialog::DtDisConnectionDialog | ( | DtLoggerApplication & | app, |
| DtLgrDisSimMenus * | menu, | ||
| QWidget * | parent | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
protectedvirtual |
Populate the dialog widgets from the exercise-conn-config file referenced by the given config loader.
|
protectedvirtual |
Populate the dialog widgets from the lgr-config env defaults held by the given config loader.
|
virtual |
|
virtual |
|
protectedslot |
Browse for exercise connection config file.
|
protectedslot |
Apply manually edited config file path.
| void MAKLogger::DtDisConnectionDialog::configureConnectionButton | ( | ) |
, sets the state of the connection button (to "connected" or "disconnected")
|
virtual |
connects the simulation An initial check of the data (e.g., valid ip addresses) is made and the connection is not made if the data is invalid Returns bool: Initial check of data was valid and connect command sent?
|
protectedslot |
A callback for when the connect button is pressed.
The connect button is used for both connection and disconnection. Its text changes.
|
virtual |
Process a connection change.
|
virtual |
|
protectedslot |
A callback for when the device address is changed to update dependent fields (e.g., dest addr, netmask)
|
virtual |
|
virtual |
disconnects the simulation
|
protectedvirtual |
Resolve the DIS sim interface if the GUI and full interface are available.
|
protectedvirtual |
Whether the selected exercise-conn-config file explicitly sets the destination (broadcast) address.
|
protectedvirtual |
Whether the selected exercise-conn-config file explicitly sets the network device address.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Register slots associated with connection status.
Implements MAKLogger::DtLgrConnectionDialog.
|
virtual |
Reload connection fields based on current Use Exercise Connection Config state.
|
protectedvirtual |
Save configuration changes after a configuration change initiated from the loading a tape.
|
virtual |
|
virtual |
|
virtual |
Set/get the exercise connection config file path.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Freeze or unfreeze the interface based on the state parameter.
|
virtual |
Set the property for Qt widgets in order to use dynamic formatting.
|
virtual |
|
virtual |
|
virtual |
Set the Site ID.
|
virtual |
|
virtual |
|
virtual |
Set flag to wait on tape load reconnect.
Implements MAKLogger::DtLgrConnectionDialog.
|
virtual |
|
virtual |
process a failed connect action
|
virtual |
Update the exercise-config status hint visibility and text.
|
virtual |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |