MAK RTIspy API Documentation for HLA 1516
 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 };

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)