MAK RTIspy API Documentation for HLA 1.3
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( DtBoost::shared_ptr<DtRtiAssistantServer> server,
43  DtBoost::shared_ptr<DtRtiAssistantPeer> peer,
44  DtAssistantSignalRouter& signalRouter,
45  DtBoost::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  DtBoost::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

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)