![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Maintains list of known RTI connections and processes connection queries from RTI components. More...
Inheritance diagram for DtAssistantConnQueryMgr:
Collaboration diagram for DtAssistantConnQueryMgr:Public Slots | |
| void | processConnectionsUpdate (const DtRtiConnectionAndConfiguration &conns) |
| Processes an update to existing connections or the discovery of new connections. More... | |
| void | processConnectionsRemoval (const DtRtiConnectionAndConfiguration &conns) |
| Processes the removal of existing connections. More... | |
| void | processAssistantFound (const DtAssistantInfo &assistant) |
| Process the discovery of a remote assistant. More... | |
| void | processAssistantLost (const DtAssistantInfo &assistant) |
| Process the loss of a discovered remote assistant. More... | |
| void | processConnQueryAccepted (QWidget *widget) |
| Processes the acceptance of a connection query dialog. More... | |
| void | processConnQueryRejected (QWidget *widget) |
| Processes the rejection of a connection query dialog. More... | |
| void | captureStartRtiexec (const DtRtiConnectionInfoDataPair &, const DtRtiConnectionConfigurationInfo &, bool) |
| Starts an rtiexec with the given connection and configuration. More... | |
| void | captureEditRtiConfigurations () |
| Shows the RTI Configuration editing page of the preferences dialog. More... | |
| void | addProhibitedPort (int port, const MAKRti::DtString &reason) |
| Adds a port that will not be allowed to use in choosing a connection. More... | |
| void | removeProhibitedPort (int port) |
| Removes a port that will not be allowed to use in choosing a connection. More... | |
| void | closeConnQueryDialog (const DtAssistantComponentInfo *info) |
| Closes the displayed connection query dialog if it matches the given ID. More... | |
| void | processNewUserAddedConnection (const DtRtiConnectionInfoDataPair &, DtAssistantConnQueryWidget *) |
| Processes the addition of a new user defined connection that has not yet been accepted. More... | |
| void | checkForConflictingUnsavedConns (DtAssistantConnQueryWidget *widget) |
| Checks the unsaved user-added connections from the given widget in order to set whether the connection is conflicting or not. More... | |
| void | setStartRtiexecEnableBasedOnConn (const DtRtiConnectionInfoDataPair &) |
| Enables or disables the "Start rtiexec" functionality based on the given connection. More... | |
| void | internalConnectionQuery (DtAssistantComponentType componentType) |
| Handle a internal connection query. More... | |
| virtual void | refreshConfigurationList () |
| Refresh instantiated conn query widgets with the latest configurations from the RID Info manager. More... | |
| void | processRtiSettingsNameSelected (const MAKRti::DtString &, bool) |
| Selects the proper RTI Setting from the combo box. More... | |
Public Slots inherited from DtAssistantMgr | |
| void | displayWarningDialogs () |
| Displays all warning dialogs. More... | |
Signals | |
| void | showConfigDialog (DtPreferencesPage pageNum=DtInvalidPreferencesPage) |
| Signal to show the RID Configuration page. More... | |
| void | startRtiexec (const DtRtiConnectionInfoDataPair &conn, const DtRtiConnectionConfigurationInfo &config, bool accepted) |
| Signal to start an rtiexec with given configuration. More... | |
| void | startRtiForwarder (const DtRtiConnectionInfoDataPair &conn, const DtRtiConnectionConfigurationInfo &config, bool accepted) |
| Signal to start an rti forwarder with given configuration. More... | |
Signals inherited from DtAssistantMgr | |
| void | warningDialogDisplayed () |
| Emitted when a warning dialog is displayed. More... | |
| void | warningDialogDismissed () |
| Emitted when a warning dialog is dismissed. More... | |
| void | popupRequested (const MAKRti::DtString &text, int sourceCompId, const MAKRti::DtString &advancedText) |
| Emitted when a popup dialog should be displayed. More... | |
| void | popupRequested (const MAKRti::DtString &text, const MAKRti::DtString &source, const MAKRti::DtString &advancedText) |
| Emitted when a popup dialog should be displayed. More... | |
| void | notificationRequested (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId, bool logOnly) |
| Emitted when a notification should be displayed. More... | |
| void | notificationRequested (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source, bool logOnly) |
| Emitted when a notification should be displayed. More... | |
Public Member Functions | |
| DtAssistantConnQueryMgr (DtBoost::shared_ptr< DtRtiAssistantServer > server, DtBoost::shared_ptr< DtRtiAssistantPeer > peer, DtAssistantSignalRouter &signalRouter, DtBoost::shared_ptr< DtAssistantComponentMgr > compMgr, DtBoost::shared_ptr< DtAssistantRidConfigInfoMgr > ridInfoMgr, DtBoost::shared_ptr< DtAssistantConnectionInfoMgr > connInfoMgr) | |
| Constructor. More... | |
| virtual | ~DtAssistantConnQueryMgr () |
| Destructor. More... | |
| virtual void | tick () |
| Performs tasks that need to be completed periodically. More... | |
| virtual void | configWidget (DtAssistantConfigWidget **widget, QIcon &icon, QString &name, DtPreferencesPage &pageId) |
| Retrieves a widget which will be placed in the configuration dialog for configuring user preferences. More... | |
| virtual void | updateConfigWidget () |
| Forces the configuration widget to be updated. More... | |
| virtual void | processConfigWidgetAccept () |
| Process the changes that were accepted in the configuration widget. More... | |
| virtual bool | updateConfigFromWidgetResults (DtRtiConnectionInfoDataPair &connInfo, DtRtiConnectionConfigurationInfo &config, DtAssistantConnQueryWidget *widget) |
| Updates the stored configuration from the results of widget. More... | |
| virtual void | updateConnQueryWidget (DtAssistantConnQueryWidget *widget, bool preserveSelection) |
| Updates the given connection query widget with the latest RTI connections from the cache. More... | |
Public Member Functions inherited from DtAssistantMgr | |
| DtAssistantMgr (DtBoost::shared_ptr< DtRtiAssistantServer > server, DtBoost::shared_ptr< DtRtiAssistantPeer > peer, DtAssistantSignalRouter &signalRouter) | |
| Constructor. More... | |
| virtual | ~DtAssistantMgr () |
| Destructor. More... | |
| virtual void | initialize () |
| Initializes this manager just prior to beginning assistant processing. More... | |
| virtual void | startShutdown () |
| Performs any necessary processing at the start of shutdown. More... | |
| virtual bool | dialogsVisible () const |
| Determines if there are any visible dialogs for which this manager is responsible. More... | |
Protected Member Functions | |
| virtual bool | checkForInterfaces () |
| Checks for the existence of at least one usable network interface. More... | |
| void | processConnQueryResults (QWidget *widget, bool accepted) |
| Processes the results of a connection query. More... | |
| virtual void | processUserAddedConnections (const DtRtiConnectionAndConfiguration &conns) |
| Process the addition of new connections. More... | |
| virtual void | processUserRemovedConnections (const DtRtiConnectionAndConfiguration &conns) |
| Process the removal of connections. More... | |
| virtual void | addToAllConnQuery (const DtRtiConnectionAndConfiguration &conns) |
| Adds a set of connections and configurations to all connection query widgets. More... | |
| virtual void | removeFromAllConnQuery (const DtRtiConnectionAndConfiguration &conns) |
| Removes the set of connections to all connection query widgets. More... | |
| virtual void | setConfigurationMetaData (DtRtiConnectionConfigurationInfo &config) |
| Refreshes the RID lisp in the configuration with the latest from disk. More... | |
| void | setChosenConnection (const DtRtiConnectionInfo &conn, const DtRtiConnectionConfigurationInfo &config) |
| Process a request to set the connection and config chosen to be used automatically in the future. More... | |
| void | clearChosenConnection () |
| Process a request to remove the connection chosen to be used automatically in the future. More... | |
Protected Member Functions inherited from DtAssistantMgr | |
| void | startDialog (QDialog *dlg, bool inTaskbar, bool warningDialog) |
| Sets up the given widget as a dialog. More... | |
| void | finishDialog (QDialog *dlg) |
| Should be called prior to deleting any dialog started with startDialog. More... | |
| void | showDialog (QDialog *dlg) |
| Shows the dialog. More... | |
| void | startMainWindow (QMainWindow *dlg) |
| Sets up a main window dialog. More... | |
| void | finishMainWindow (QMainWindow *dlg) |
| Should be called prior to deleting any dialog started with startMainWindow. More... | |
| void | showMainWindow (QMainWindow *dlg) |
| Shows the dialog. More... | |
| void | showPopup (const MAKRti::DtString &text, int sourceCompId=-1, const MAKRti::DtString &advancedText=MAKRti::DtString::nullString()) |
| Displays a popup message with the given text, advanced text, and name of the given source component. More... | |
| void | showPopup (const MAKRti::DtString &text, const MAKRti::DtString &source, const MAKRti::DtString &advancedText=MAKRti::DtString::nullString()) |
| Displays a popup message with the given text, advanced text, and source name. More... | |
| void | displayNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId=-1) |
| Displays and logs a notification from the given component. More... | |
| void | displayNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source) |
| Displays and logs notification with the given component name. More... | |
| void | logNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId=-1) |
| Logs a notification from the given component, does not display. More... | |
| void | logNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source) |
| Logs a notification with the given component name, does not display. More... | |
| virtual DtAssistantInfo | assistantInfoFromAssistantMsg (const DtAssistantMsg &assistantMsg, DtInetAddrSet *interfaces=0) |
Protected Attributes | |
| DtAssistantMsgQueue | myConnQueryMsgQueue |
| The queue which holds connection query messages. More... | |
| DtBoost::shared_ptr < DtAssistantComponentMgr > | myCompMgr |
| The manager that keeps track of all local RTI components. More... | |
| DtBoost::shared_ptr < DtAssistantRidConfigInfoMgr > | myRidInfoMgr |
| The manager that keeps track of all RID configurations. More... | |
| DtBoost::shared_ptr < DtAssistantConnectionInfoMgr > | myConnInfoMgr |
| The manager that keeps track of all active and inactive connections. More... | |
| DtClock | myClock |
| Clock for determining when local interfaces should be checked. More... | |
| DtAssistantLrcConnQueryDialog * | myLrcConnQueryDlg |
| The dialog which queries the user for LRC connection information. More... | |
| DtAssistantRtiexecConnQueryDialog * | myRtiexecOrForwarderConnQueryDlg |
| The dialog which queries the user for rtiexec or Forwarder connection information. More... | |
| DtAssistantConnConfigWidget * | myConnConfigWidget |
| Connection configuration widget to be inserted into the assistant configuration dialog. More... | |
| DtAssistantNoInterfacesFoundDialog * | myNoInterfacesFoundDialog |
| The dialog that informs users that no network interfaces were found. More... | |
| std::set< int > | myCompsConnectingWithChosen |
| The set of components that have been told to try to use the current chosen connection. More... | |
Signal mappers for the connection query dialogs. | |
| QSignalMapper * | myConnQueryAcceptedMapper |
| QSignalMapper * | myConnQueryRejectedMapper |
Protected Attributes inherited from DtAssistantMgr | |
| DtBoost::shared_ptr < DtRtiAssistantServer > | myServer |
| The Assistant server from which new messages will arrive from local RTI components. More... | |
| DtBoost::shared_ptr < DtRtiAssistantPeer > | myPeer |
| The Assistant peer which communicates with other Assistants. More... | |
| std::set< QDialog * > | myUnparentedDialogs |
| All unparented dialogs that are created by the GUI should be added to this set. More... | |
| std::set< QMainWindow * > | myMainWindows |
| All main windows that are created by the GUI should be added to this set. More... | |
| std::set< QDialog * > | myWarningDialogs |
| Set of the popup dialogs, either parented or unparented, which, when active, should cause a warning icon to be displayed. More... | |
Private Member Functions | |
| DtAssistantConnQueryMgr (const DtAssistantConnQueryMgr &) | |
| Copy Constructor not implemented – Copy Not Allowed! More... | |
| DtAssistantConnQueryMgr & | operator= (const DtAssistantConnQueryMgr &) |
| Assignment not implemented – Assignment Not Allowed! More... | |
Message Callbacks | |
| static void | addConnQueryMsgToQueue (const DtAssistantConnQueryMsg &msg, void *usr) |
| Callback to add connection query message to queue. More... | |
| static void | processConnQueryMsg (const DtAssistantConnQueryMsg &msg, void *usr) |
| Callback to process a connection query message from a component. More... | |
| virtual void | addConnQueryMsgToQueue (const DtAssistantConnQueryMsg &msg) |
| Called by the callback function to add a message to the queue. More... | |
| virtual void | processConnQueryMsg (const DtAssistantConnQueryMsg &msg) |
| Called by the callback function to process connection query messages. More... | |
Additional Inherited Members | |
Static Protected Attributes inherited from DtAssistantMgr | |
| static QIcon | theRtiIcon |
| The icons used by the RTI Assistant. More... | |
| static QIcon | theSmallRtiIcon |
| static QIcon | theWebIcon |
| static QIcon | theNotifyRtiIcon |
| static QIcon | theWarningRtiIcon |
| static QIcon | thePreferencesIcon |
| static QIcon | theAboutIcon |
| static QIcon | theHelpIcon |
| static bool | theIconsAreLoaded |
| Whether or not the icons have yet been loaded. More... | |
Maintains list of known RTI connections and processes connection queries from RTI components.
| DtAssistantConnQueryMgr::DtAssistantConnQueryMgr | ( | DtBoost::shared_ptr< DtRtiAssistantServer > | server, |
| DtBoost::shared_ptr< DtRtiAssistantPeer > | peer, | ||
| DtAssistantSignalRouter & | signalRouter, | ||
| DtBoost::shared_ptr< DtAssistantComponentMgr > | compMgr, | ||
| DtBoost::shared_ptr< DtAssistantRidConfigInfoMgr > | ridInfoMgr, | ||
| DtBoost::shared_ptr< DtAssistantConnectionInfoMgr > | connInfoMgr | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
private |
Copy Constructor not implemented – Copy Not Allowed!
|
staticprotected |
Callback to add connection query message to queue.
Connection query messages should be added to a queue in order to be processed one at a time. Two connection query dialogs should not be displayed at the same time.
|
protectedvirtual |
Called by the callback function to add a message to the queue.
|
slot |
Adds a port that will not be allowed to use in choosing a connection.
|
protectedvirtual |
Adds a set of connections and configurations to all connection query widgets.
|
slot |
Shows the RTI Configuration editing page of the preferences dialog.
|
slot |
Starts an rtiexec with the given connection and configuration.
|
slot |
Checks the unsaved user-added connections from the given widget in order to set whether the connection is conflicting or not.
|
protectedvirtual |
Checks for the existence of at least one usable network interface.
If not an error dialog will be displayed and the return value will be false.
|
protected |
Process a request to remove the connection chosen to be used automatically in the future.
|
slot |
Closes the displayed connection query dialog if it matches the given ID.
|
virtual |
Retrieves a widget which will be placed in the configuration dialog for configuring user preferences.
Reimplemented from DtAssistantMgr.
|
slot |
Handle a internal connection query.
|
private |
Assignment not implemented – Assignment Not Allowed!
|
slot |
Process the discovery of a remote assistant.
|
slot |
Process the loss of a discovered remote assistant.
|
virtual |
Process the changes that were accepted in the configuration widget.
Reimplemented from DtAssistantMgr.
|
slot |
Processes the removal of existing connections.
|
slot |
Processes an update to existing connections or the discovery of new connections.
|
slot |
Processes the acceptance of a connection query dialog.
|
staticprotected |
Callback to process a connection query message from a component.
|
protectedvirtual |
Called by the callback function to process connection query messages.
|
slot |
Processes the rejection of a connection query dialog.
|
protected |
Processes the results of a connection query.
|
slot |
Processes the addition of a new user defined connection that has not yet been accepted.
|
slot |
Selects the proper RTI Setting from the combo box.
|
protectedvirtual |
Process the addition of new connections.
|
protectedvirtual |
Process the removal of connections.
|
virtualslot |
Refresh instantiated conn query widgets with the latest configurations from the RID Info manager.
|
protectedvirtual |
Removes the set of connections to all connection query widgets.
|
slot |
Removes a port that will not be allowed to use in choosing a connection.
|
protected |
Process a request to set the connection and config chosen to be used automatically in the future.
|
protectedvirtual |
Refreshes the RID lisp in the configuration with the latest from disk.
|
slot |
Enables or disables the "Start rtiexec" functionality based on the given connection.
|
signal |
Signal to show the RID Configuration page.
|
signal |
Signal to start an rtiexec with given configuration.
|
signal |
Signal to start an rti forwarder with given configuration.
|
virtual |
Performs tasks that need to be completed periodically.
Reimplemented from DtAssistantMgr.
|
virtual |
Updates the stored configuration from the results of widget.
Sets connInfo and config with the currently selected connection information. Returns true if the connection was made the chosen connection.
|
virtual |
Forces the configuration widget to be updated.
Reimplemented from DtAssistantMgr.
|
virtual |
Updates the given connection query widget with the latest RTI connections from the cache.
Will preserve the current selection in the dialog if preserveSelection is true.
|
protected |
Clock for determining when local interfaces should be checked.
|
protected |
The manager that keeps track of all local RTI components.
|
protected |
The set of components that have been told to try to use the current chosen connection.
|
protected |
Connection configuration widget to be inserted into the assistant configuration dialog.
|
protected |
The manager that keeps track of all active and inactive connections.
|
protected |
|
protected |
The queue which holds connection query messages.
Only one may be processed at a time, but this should not prevent the processing of other messages.
|
protected |
|
protected |
The dialog which queries the user for LRC connection information.
|
protected |
The dialog that informs users that no network interfaces were found.
|
protected |
The manager that keeps track of all RID configurations.
|
protected |
The dialog which queries the user for rtiexec or Forwarder connection information.