MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
licenseQueryMgr.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2009 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: licenseQueryMgr.h,v $ $Revision: 1.6 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef licenseQueryMgr_H_
10 #define licenseQueryMgr_H_
11 
14 
15 #include "rtiMsConfig.h"
16 #include "assistantMgr.h"
17 #include "assistantLicServerInfo.h"
18 #include "assistantMsgQueue.h"
19 
21 class DtRtiAssistantPeer;
25 class DtLicenseCache;
30 class QSignalMapper;
31 
36 {
37  Q_OBJECT
38 
39 public:
40 
42  DtAssistantLicenseQueryMgr( std::shared_ptr<DtRtiAssistantServer> server,
43  std::shared_ptr<DtRtiAssistantPeer> peer,
44  DtAssistantSignalRouter& signalRouter,
45  std::shared_ptr<DtAssistantComponentMgr> compMgr );
46 
48  virtual ~DtAssistantLicenseQueryMgr();
49 
50 private:
51 
54 
57 
58 public:
59 
61  virtual void tick();
62 
65  virtual void configWidget( DtAssistantConfigWidget** widget, QIcon& icon,
66  QString& name, DtPreferencesPage& pageId );
67 
69  virtual void updateConfigWidget();
70 
71 protected:
72 
75 
76 
80  static void addLicQueryMsgToQueue( const DtAssistantLicQueryMsg& msg, void* usr);
81 
83  virtual void addLicQueryMsgToQueue( const DtAssistantLicQueryMsg& msg );
84 
86  static void processLicQueryMsg(const DtAssistantLicQueryMsg& msg, void* usr);
87 
89  virtual void processLicQueryMsg(const DtAssistantLicQueryMsg& msg);
90 
92  static void processLicServerInfoMsg( const DtAssistantLicServerInfoMsg& msg,
93  void* usr );
94 
97  virtual void processLicServerInfoMsg( const DtAssistantLicServerInfoMsg& msg );
98 
100 
102  virtual void updateLicQuery();
103 
104 signals:
105 
107  void chosenLicServerUpdated( const QString& name, int port );
108 
110  void unlicensedModeChosen( bool );
111 
114  void updateDefaultToUnlicensed( bool );
115 
116 public slots:
117 
119  void processLicQueryResults( int result );
120 
123  void closeLicQueryDialogForId( const DtAssistantComponentInfo* );
124 
127  void addLicenseServerFromComponent(const DtAssistantComponentInfo*);
128 
130  void removeLicenseServer( const MAKRti::DtString& server );
131 
133  void sendLicenseServerUpdate();
134 
136  void clearStoredLicense();
137 
139  void setDefaultToUnlicensed( bool );
140 
142  void updateFromCache();
143 protected:
144 
148 
150  std::shared_ptr<DtAssistantComponentMgr> myCompMgr;
151 
154 
158 
160  {
163  LicenseChosen
164  };
165 
169 
172 
175 
178 
180  std::set<int> myCompsWithLicServers;
181 
182 };
183 
184 #endif
DtLicServerSet myRemovedLicenseServers
Set of removed local license servers since last update was sent.
Definition: licenseQueryMgr.h:177
DtPreferencesPage
Definition: assistantEnums.h:17
DtLicenseChosenState
Definition: licenseQueryMgr.h:159
Widget which allows a user to view and clear the current default license server.
Definition: licServerConfigWidget.h:22
At startup all of the assistant manager classes will register their signals and slots with the signal...
Definition: assistantSignalRouter.h:29
DtLicenseChosenState myLicenseChosenState
Whether a license is chosen, unlicensed mode is chosen, or nothing is chosen.
Definition: licenseQueryMgr.h:168
std::shared_ptr< DtAssistantComponentMgr > myCompMgr
The manager that keeps track of all local RTI components.
Definition: licenseQueryMgr.h:150
Stores the information on a license server known by the Assistant.
Definition: assistantLicServerInfo.h:19
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...
Definition: assistantMgr.h:72
Definition: licenseQueryMgr.h:161
std::set< int > myCompsWithLicServers
The set of components we&#39;ve received license servers from.
Definition: licenseQueryMgr.h:180
Stores information on any RTI components.
Definition: compInfo.h:25
Base class for all classes which perform management activities for the Assistant. ...
Definition: assistantMgr.h:31
Dialog used to request the user to provide new license information when a component cannot establish ...
Definition: licQueryDialog.h:21
This file contains the declaration of DtAssistantMgr.
DtRtiAssistantPeer manages the sharing of information between one Assistant to other Assistants using...
Definition: rtiAssistantPeer.h:82
Manages the server connections of the RTI Assistant.
Definition: rtiAssistantServer.h:45
DtLicServerInfo myChosenLicenseServer
The currently chosen license server.
Definition: licenseQueryMgr.h:171
Maintains list of known RTI license servers and processes license queries from RTI components...
Definition: licenseQueryMgr.h:35
DtAssistantMgr & operator=(DtAssistantMgr const &)
Assignment not implemented – Assignment Not Allowed!
Definition: licenseQueryMgr.h:162
DtAssistantLicQueryDialog * myLicQueryDlg
The dialog which queries the user for license information.
Definition: licenseQueryMgr.h:153
virtual void tick()
Performs tasks that need to be completed periodically.
Definition: assistantMgr.h:59
The DtAssistantLicQueryMsg defines a wrapper for the messages sent to and from the Assistant to query...
Definition: assistantLicQueryMsg.h:28
DtLicServerSet myLicenseServers
Set of license servers known to this assistant.
Definition: licenseQueryMgr.h:174
virtual void updateConfigWidget()
Forces the configuration widget to be updated.
Definition: assistantMgr.h:76
std::set< DtLicServerInfo > DtLicServerSet
Definition: assistantLicServerInfo.h:62
#define DT_DLL_ASSISTANTAPP
Definition: rtiMsConfig.h:151
DtAssistantMsgQueue myLicQueryMsgQueue
The queue which holds license query messages.
Definition: licenseQueryMgr.h:147
This file contains the declaration of DtAssistantMsgQueue.
Maintains a queue of RTI Assistant messages.
Definition: assistantMsgQueue.h:27
This file contains the declaration of DtLicServerInfo.
DtAssistantLicServerConfigWidget * myLicConfigWidget
The widget that displays the current preferred license in the configuration dialog.
Definition: licenseQueryMgr.h:157
Processes information on each local RTI component that is connected to this Assistant.
Definition: componentMgr.h:38
The DtAssistantLicServerInfoMsg defines a wrapper for the RTI Assistant information message used by t...
Definition: assistantLicServerInfoMsg.h:31
Widget which can be added as a configuration page to the DtAssistantConfigDialog. ...
Definition: assistantConfigWidget.h:18

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)