MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
addConnectionDialog.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include "rtiMsConfig.h"
13 #include <QDialog>
14 #include <map>
16 
18 class QComboBox;
19 class QLineEdit;
20 
21 typedef std::list<std::pair<QString, QString> > DtHostInterfaceAddrList;
22 typedef std::map<int, DtAssistantInfo> DtIndexToAssistantInfoMap;
23 
27 {
28  Q_OBJECT
29 
30 public:
31 
33  DtAssistantAddConnDialog( DtAssistantConnQueryWidget* parent, Qt::WindowFlags f=0 );
34 
36  virtual ~DtAssistantAddConnDialog();
37 
38 public:
39 
42  virtual void enableDefaultConnName();
43 
46  virtual void disableDefaultConnName();
47 
50  virtual void storeNextDefaultConnNum();
51 
54  virtual void clearDefaultConnNum();
55 
57  virtual bool isLoopbackAddress(const QString& address) const;
58 
60  virtual bool isIpv6Address(const QString& address) const;
61 
64  virtual bool isLoopbackDestination(const QString& address) const;
65 
68  virtual int addAssistantHost(const DtAssistantInfo& assistant);
69 
71  virtual void removeAssistantHost(const DtAssistantInfo& assistant);
72 
73 protected:
74 
77  virtual bool getDefaultRtiexecConnName(QString& name, const QString& host);
78 
81  virtual bool getDefaultLightweightConnName(QString& name);
82 
84  virtual void setNetworkInterfaceAddrs( const QStringList& networkInterfaceAddrs );
85 
87  virtual int compatibleUdpInterface(const QString& udpDestinationAddress, QComboBox* comboBox);
88 
89 public slots:
90 
92  virtual void ipV4Clicked( bool isChecked );
93 
95  virtual void ipV6Clicked( bool isChecked );
96 
98  virtual void resetNetworkInterfaces( int hostIndex );
99 
102  virtual void selectUdpInterface( int intfIndex );
103 
104 protected:
105 
108 
112 
115  std::map<QString, unsigned> myNextDefaultConnNum;
116 
119 
122 
124  bool myUseIPv4;
125 
128 
132 
134  std::vector<QComboBox*> myAddressComboBoxes;
135 
137  QComboBox* myHostNameComboBox;
138 
141 
144 
146 
147  static const QString theDefaultIpv4LoopbackMcastAddr;
149  static const QString theDefaultIpv6LoopbackMcastAddr;
152 
153 
155 
156 };
std::map< QString, unsigned > myNextDefaultConnNum
The next number to use to differentiate connections with the same default name, mapped by name...
Definition: addConnectionDialog.h:115
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.
DtIndexToAssistantInfoMap myComboBoxIndexToAssistantInfos
Definition: addConnectionDialog.h:154
QLineEdit * myUdpAddressLineEdit
The UDP address line edit.
Definition: addConnectionDialog.h:140
static const QString theDefaultIpv4NonLoopbackMcastAddr
Default multicast addresses for loopback and non-loopback interfaces.
Definition: addConnectionDialog.h:148
Stores basic information about a remote assistant.
Definition: assistantInfo.h:96
bool myUseIPv4
Specify which family of addresses to use (if not IPv4 then IPv6)
Definition: addConnectionDialog.h:124
unsigned myDefaultConnNum
The default connection name number currently being used.
Definition: addConnectionDialog.h:118
bool myUseDefaultConnName
Indicates that no user supplied connection name was specified, so the default should be displayed and...
Definition: addConnectionDialog.h:111
std::vector< QComboBox * > myAddressComboBoxes
The network interface combo boxes.
Definition: addConnectionDialog.h:134
bool myInitializeHosts
Indicates host names are being initialized.
Definition: addConnectionDialog.h:127
Base class for a Dialog that allows a user to enter connection information.d.
Definition: addConnectionDialog.h:26
DtAssistantConnQueryWidget * myParent
The parent of this dialog.
Definition: addConnectionDialog.h:107
QString myDefaultConnName
The base string for the default connection name currently being used.
Definition: addConnectionDialog.h:121
bool myNetworkIfIsLoopback
Stores whether the previous network interface was a loopback address.
Definition: addConnectionDialog.h:131
QComboBox * myUdpInterfaceComboBox
The UDP interface combo box.
Definition: addConnectionDialog.h:143
std::list< std::pair< QString, QString > > DtHostInterfaceAddrList
Definition: addConnectionDialog.h:19
static const QString theDefaultIpv4LoopbackMcastAddr
Default multicast addresses for loopback and non-loopback interfaces.
Definition: addConnectionDialog.h:147
QComboBox * myHostNameComboBox
The host name combo box.
Definition: addConnectionDialog.h:137
#define DT_DLL_ASSISTANTAPP
Definition: rtiMsConfig.h:151
std::map< int, DtAssistantInfo > DtIndexToAssistantInfoMap
Definition: addConnectionDialog.h:22
static const QString theDefaultIpv6LoopbackMcastAddr
Default multicast addresses for loopback and non-loopback interfaces.
Definition: addConnectionDialog.h:149
static const QString theDefaultIpv6NonLoopbackMcastAddr
Default multicast addresses for loopback and non-loopback interfaces.
Definition: addConnectionDialog.h:150

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)