CFx SDK Documentation  2023 SP0
FxLicenseInfo.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2022 by Graebert GmbH.
3 //
4 // Permission to use, copy, modify, and distribute this software in
5 // object code form for any purpose and without fee is hereby granted,
6 // provided that the above copyright notice appears in all copies and
7 // that both that copyright notice and the limited warranty and
8 // restricted rights notice below appear in all supporting
9 // documentation.
10 //
11 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15 // UNINTERRUPTED OR ERROR FREE.
16 
17 #pragma once
18 
19 #include "DDKERNEL.h"
20 
21 #include <OdString.h>
22 
23 #include "FxPragmaPush.h"
24 
25 class CFxString;
26 
33 {
34 public:
35  enum
36  {
37  Unknown_Version = 0,
38  Unregistered_Version = 1,
39  Trial_Version = 2,
40  Full_Version = 3,
41  Floating_Version = 4,
42  Roaming_Version = 5,
43  Dongle_Version = 6,
44  LicenseToGo_Version = 7,
45  Unregistered_Was_Network= 8,
46  Offline_Version = 9,
47  };
48 
50  virtual ~CFxLicenseInfo(void);
51 
57  virtual int CheckOutLicense() = 0;
58 
64  virtual int CheckInLicense() = 0;
65 
71  virtual bool IsLicenseCheckedOut() const = 0;
72 
78  virtual bool IsTrialExpired() const = 0;
79 
85  virtual bool IsLicenseHealthy() const = 0;
86 
92  virtual bool IsNetworkConnectionLost() const = 0;
93 
99  virtual int GetLicenseType() const = 0;
100 
106  virtual bool IsFullVersion() const = 0;
107 
113  virtual bool IsUnregisteredVersion() const = 0;
114 
120  virtual bool IsTrialVersion() const = 0;
121 
127  virtual int GetLicenseDays() const = 0;
128 
134  virtual CFxString GetLicenseOptions() const = 0;
135 
142  virtual CFxString GetHostID( bool bComputerHostID ) const = 0;
143 
149  virtual CFxString GetLicenseHostId() const = 0;
150 
157  virtual int IsProductKeyValid(const CFxString & productKey) const = 0;
158 
159  /*
160  Checks the quoted license key , returns true or false.
161  True : license key is valid and error = 0.
162  False : license key is invalid and error = user definied.
163  */
164  virtual int IsActivationCodeValid( const CFxString& sActivationCode ) const = 0;
165 
172  virtual int SaveActivationCode( const CFxString & sActivationCode ) = 0;
173 
179  virtual CFxString GetLicensePath() const = 0;
180 
186  virtual int GetRoamingLicenseMaxDays() const = 0;
187 
193  virtual int GetRoamingLicenseMaxShares() const = 0;
194 
200  virtual int GetRoamingLicenseMaxCount() const = 0;
201 
207  virtual int GetRoamingProductMaxCount() const = 0;
208 
214  virtual int GetRoamingProductCurrentCount() const = 0;
215 
221  virtual bool IsRoaming() const = 0;
222 
228  virtual int GetError() const = 0;
229 
235  virtual CFxString GetGde() const = 0;
236 
242  virtual CFxString GetVersion() const = 0;
243 
249  virtual bool IsPrerelease() const = 0;
250 
256  virtual bool AllowsDongleActivation() const = 0;
257 
263  virtual bool InAppleSandbox() const = 0;
264 
270  virtual bool IsExtendedApiEnabled() const = 0;
271 
277  virtual bool IsMFCUIEnabled() const = 0;
278 
284  virtual bool IsLispEnabled() const = 0;
285 
290  virtual void DisableLisp() = 0;
291 
296  virtual void EnableLisp() = 0;
297 
303  virtual bool IsFibersEnabled() const = 0;
304 
310  virtual bool IsDWFEnabled() const = 0;
311 
316  virtual void DisableDWF() = 0;
317 
323  virtual bool IsDWFSaveEnabled() const = 0;
324 
330  virtual bool IsSHPEnabled() const = 0;
331 
336  virtual void CleanUp() = 0;
337 
338 
344  virtual bool ValidateDongle() const = 0;
345 };
346 
348 
349 #include "FxPragmaPop.h"
#define DDKERNEL_API
Definition: DDKERNEL.h:32
DDKERNEL_API CFxLicenseInfo * GetFxLicenseInfo()
virtual bool IsLicenseHealthy() const =0
virtual int GetLicenseDays() const =0
virtual int GetRoamingLicenseMaxDays() const =0
virtual void DisableDWF()=0
virtual bool IsMFCUIEnabled() const =0
virtual bool ValidateDongle() const =0
virtual bool IsTrialVersion() const =0
virtual bool IsFullVersion() const =0
virtual bool InAppleSandbox() const =0
virtual void CleanUp()=0
virtual int GetLicenseType() const =0
virtual bool IsLicenseCheckedOut() const =0
virtual int GetRoamingProductCurrentCount() const =0
CFxLicenseInfo(void)
virtual bool IsTrialExpired() const =0
virtual int CheckInLicense()=0
virtual bool IsRoaming() const =0
virtual bool IsFibersEnabled() const =0
virtual void EnableLisp()=0
virtual int GetRoamingProductMaxCount() const =0
virtual int IsActivationCodeValid(const CFxString &sActivationCode) const =0
virtual int IsProductKeyValid(const CFxString &productKey) const =0
virtual int GetRoamingLicenseMaxShares() const =0
virtual int GetError() const =0
virtual CFxString GetHostID(bool bComputerHostID) const =0
virtual bool AllowsDongleActivation() const =0
virtual int CheckOutLicense()=0
virtual CFxString GetGde() const =0
virtual bool IsPrerelease() const =0
virtual CFxString GetLicenseOptions() const =0
virtual int SaveActivationCode(const CFxString &sActivationCode)=0
virtual bool IsExtendedApiEnabled() const =0
virtual CFxString GetVersion() const =0
virtual bool IsUnregisteredVersion() const =0
virtual void DisableLisp()=0
virtual bool IsDWFEnabled() const =0
virtual bool IsSHPEnabled() const =0
virtual CFxString GetLicensePath() const =0
virtual bool IsDWFSaveEnabled() const =0
virtual ~CFxLicenseInfo(void)
virtual bool IsLispEnabled() const =0
virtual int GetRoamingLicenseMaxCount() const =0
virtual CFxString GetLicenseHostId() const =0
virtual bool IsNetworkConnectionLost() const =0