MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lrcConnQueryWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: lrcConnQueryWidget.h,v $ $Revision: 1.34 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef lrcConnQueryWidget_H_
13 #define lrcConnQueryWidget_H_
14 
15 #include "rtiMsConfig.h"
16 #include "connQueryWidget.h"
18 #include "assistantInfo.h"
19 #include "widgetDialog.h"
20 
22 class QProgressDialog;
23 
28 {
29  Q_OBJECT
30 
31 public:
32 
34  DtAssistantLrcConnQueryWidget( QWidget* parent = 0, Qt::WindowFlags f=0 );
35 
38 
41  virtual void displayErrorText( bool error );
42 
45  virtual void setStartRtiexecEnabled( bool enable, const QString& reason );
46 
49  virtual bool acceptCurrentSelection();
50 
51  virtual void initializeQtToolTips();
52 
54  virtual void addKnownAssistant(const DtAssistantInfo& assistant);
55 
57  virtual void removeKnownAssistant( const DtAssistantInfo& assistant );
58 
59 public slots:
60 
62  void processStartRtiexec();
63 
66  void cancelStartAndConnect();
67 
68 signals:
69 
71  void startRtiexec( const DtRtiConnectionInfoDataPair& conn,
73  bool isRemote );
74 
76  void updateWindowTitle( const QString& );
77 
81  void requestStartRtiexecEnable( const DtRtiConnectionInfoDataPair& );
82 
83 protected:
84 
88  virtual bool addConnection( const DtRtiConnectionInfoDataPair& conn,
89  const DtRtiConfigurationInfoDataPair& config,
90  DtNameToConnInfoMap::iterator& connIter );
91 
94  virtual void removeConnection( const DtRtiConnectionInfoDataPair& conn );
95 
97  virtual void clearAllConnections();
98 
101  virtual void updateDisplayedConnection( const QString& name,
102  const DtRtiConnectionInfoDataPair& updatedConn,
103  QTreeWidgetItem* connItem );
104 
107  virtual QTreeWidgetItem* findConnInTree( const DtRtiConnectionInfo& conn,
108  DtNameToConnInfoMap::iterator& connIter );
109 
111  virtual void getConnStatusText( const QTreeWidgetItem* item,
112  const DtRtiConnectionInfoDataPair& conn,
114  QString& text );
115 
117  virtual void evaluateConnections();
118 
121  virtual bool checkForValidAddrAndHost( const QString& addrStr,
122  const MAKRti::DtInetAddr& ifAddr, MAKRti::DtInetAddr& addr);
123 
125  virtual void showEvent( QShowEvent* event );
126 
129 
132 
134  virtual bool promptUserForConnInfo( DtRtiConnectionInfoDataPair& conn,
135  const QString& dialogTitle, bool useNameOfGivenConn );
136 
139  virtual void setAcceptEnabledBasedOnConn( const DtRtiConnectionInfoDataPair* conn );
140 
143  virtual void updateDialogBasedOnConn( const DtRtiConnectionInfoDataPair* conn,
144  const DtRtiConfigurationInfoDataPair* config, bool isDisabled );
145 
146 private:
147 
150 
153 
154 protected:
155 
158 
161 
164 
167 
170 
172  QString theErrorText;
173 
175  QString theNormalText;
176 
178  QString theErrorTitle;
179 
181  QString theNormalTitle;
182 
184  QString theVerifiedText;
187  QString theUnknownText;
191  QString theNoHostText;
193 
195  QString theLightweightBranchHeaderText;
201 
202 };
203 
204 
208 {
209  Q_OBJECT
210 
211 public:
212 
214  DtAssistantLrcConnQueryDialog( QWidget* parent = 0, Qt::WindowFlags f=0 );
215 
218 
220  virtual DtAssistantLrcConnQueryWidget* widget();
221 
222 public slots:
223 
225  void processSelectionAccepted();
226 
227 protected:
228 
229  QPushButton* myConnectButton;
230  QPushButton* myCancelButton;
231 
232 };
233 
234 #endif
235 
virtual void addKnownAssistant(const DtAssistantInfo &assistant)
Adds an assistant to the list of known remote assistants.
Widget used to request the user to provide new connection parameters when a component cannot establis...
Definition: connQueryWidget.h:29
This file contains the declaration of DtAssistantInfo.
QString theConflictingText
Text descriptions for each possible connection status.
Definition: lrcConnQueryWidget.h:188
virtual void updateDialogBasedOnConn(const DtRtiConnectionInfoDataPair *conn, const DtRtiConfigurationInfoDataPair *config, bool isDisabled)
Updates the dialog based on the state of the given currently selected connection and configuration...
Definition: connQueryWidget.h:288
QPushButton * myConnectButton
Definition: lrcConnQueryWidget.h:229
virtual void setAcceptEnabledBasedOnConn(const DtRtiConnectionInfoDataPair *conn)=0
Enables or disables the accept button based on the state of the given currently selected connection...
QString theUnknownNetworkInterfaceText
Text descriptions for each possible connection status.
Definition: lrcConnQueryWidget.h:189
QTreeWidgetItem * myRtiexecItem
Top level item for the rtiexec connection type.
Definition: lrcConnQueryWidget.h:163
This file contains the declaration of DtRtiConnectionInfo.
Stores basic information about a remote assistant.
Definition: assistantInfo.h:96
QString theNormalTitle
Title to be displayed when there was no error.
Definition: lrcConnQueryWidget.h:181
std::pair< DtRtiConnectionInfo, DtRtiAssociatedConnectionData > DtRtiConnectionInfoDataPair
Pair of connection with associated data.
Definition: assistantConnectionInfo.h:29
virtual void evaluateConnections()=0
Evaluates connections for conflicts or invalid configuration.
QString theLightweightBranchToolTipText
Connection tree branch headers and tool tips.
Definition: lrcConnQueryWidget.h:197
QPushButton * myCancelButton
Definition: lrcConnQueryWidget.h:230
QString theRtiexecBranchHeaderText
Connection tree branch headers and tool tips.
Definition: lrcConnQueryWidget.h:198
DtAssistantConnQueryWidget & operator=(const DtAssistantConnQueryWidget &)
Assignment operator not implemented.
virtual void getConnStatusText(const QTreeWidgetItem *item, const DtRtiConnectionInfoDataPair &conn, const DtRtiConfigurationInfoDataPair &, QString &text)=0
Gets the connection status text to be used in the tool tip for the given connection.
QString theErrorText
Text to be displayed when there was a connection error.
Definition: lrcConnQueryWidget.h:172
virtual bool promptUserForNewConnInfo(DtRtiConnectionInfoDataPair &conn)=0
Prompts the user for new connection info.
Contains the DtWidgetDialog class declaration.
Contains the DtAssistantConnQueryWidget class declaration.
QString theNormalText
Text to be displayed when there was no error.
Definition: lrcConnQueryWidget.h:175
Dialog that allows a user to enter connection information.
Definition: addLrcConnectionDialog.h:24
virtual void removeConnection(const DtRtiConnectionInfoDataPair &conn)=0
Removes an available connection from the list.
DtAssistantAddLrcConnDialog * myAddConnDialog
Dialog used to set information for a new connection.
Definition: lrcConnQueryWidget.h:157
std::pair< DtRtiConnectionConfigurationInfo, DtRtiAssociatedConfigurationData > DtRtiConfigurationInfoDataPair
Pair of configuration with associated data.
Definition: assistantConnectionConfigurationInfo.h:58
QString theNoHostText
Text descriptions for each possible connection status.
Definition: lrcConnQueryWidget.h:191
virtual bool addConnection(const DtRtiConnectionInfoDataPair &conn, const DtRtiConfigurationInfoDataPair &config, DtNameToConnInfoMap::iterator &connIter)=0
Adds an available connection to the list.
Dialog to hold a DtAssistantLrcConnQueryWidget.
Definition: lrcConnQueryWidget.h:207
Stores the information on an RTI configuration known by the Assistant.
Definition: assistantConnectionConfigurationInfo.h:61
virtual QTreeWidgetItem * findConnInTree(const DtRtiConnectionInfo &conn, DtNameToConnInfoMap::iterator &connIter)=0
Finds the connection item in the tree.
QString theNoNetworkInterfaceText
Text descriptions for each possible connection status.
Definition: lrcConnQueryWidget.h:190
QProgressDialog * myStartAndConnectProgressDlg
A dialog to display progress when starting and connecting to an rtiexec.
Definition: lrcConnQueryWidget.h:166
A generic dialog which houses a single widget.
Definition: widgetDialog.h:21
#define DT_DLL_ASSISTANTAPP
Definition: rtiMsConfig.h:151
DtRtiConnectionInfo myPendingRtiexecConn
The rtiexec connection we are attempting to start and connect to.
Definition: lrcConnQueryWidget.h:169
Widget used to request the user to provide new connection parameters when an LRC cannot establish a c...
Definition: lrcConnQueryWidget.h:27
QString theRtiexecBranchToolTipText
Connection tree branch headers and tool tips.
Definition: lrcConnQueryWidget.h:199
virtual bool promptUserToEditConnInfo(DtRtiConnectionInfoDataPair &conn)=0
Prompts the user to edit connection info.
QString theUnknownText
Text descriptions for each possible connection status.
Definition: lrcConnQueryWidget.h:187
virtual void updateDisplayedConnection(const QString &name, const DtRtiConnectionInfoDataPair &updatedConn, QTreeWidgetItem *connItem)=0
Depending on the type of our current query connection, we update connItem based on updatedConn...
virtual void removeKnownAssistant(const DtAssistantInfo &assistant)
Removes an assistant to the list of known remote assistants.
virtual void clearAllConnections()=0
Clears the entire connection list.
QString theVerifiedForwarderText
Text descriptions for each possible connection status.
Definition: lrcConnQueryWidget.h:186
Stores the information on an RTI connection known by the Assistant.
Definition: assistantConnectionInfo.h:36
QString theErrorTitle
Title to be displayed when there was a connection error.
Definition: lrcConnQueryWidget.h:178
QTreeWidgetItem * myLightweightItem
Top level item for the lightweight connection type.
Definition: lrcConnQueryWidget.h:160

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)