CFx SDK Documentation  2020SP3
FxLicenseInfo.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 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 
150  virtual int IsProductKeyValid(const CFxString & productKey) const = 0;
151 
152  /*
153  Checks the quoted license key , returns true or false.
154  True : license key is valid and error = 0.
155  False : license key is invalid and error = user definied.
156  */
157  virtual int IsActivationCodeValid( const CFxString& sActivationCode ) const = 0;
158 
165  virtual int SaveActivationCode( const CFxString & sActivationCode ) = 0;
166 
172  virtual CFxString GetLicensePath() const = 0;
173 
179  virtual int GetRoamingLicenseMaxDays() const = 0;
180 
186  virtual int GetRoamingLicenseMaxShares() const = 0;
187 
193  virtual int GetRoamingLicenseMaxCount() const = 0;
194 
200  virtual int GetRoamingProductMaxCount() const = 0;
201 
207  virtual int GetRoamingProductCurrentCount() const = 0;
208 
214  virtual bool IsRoaming() const = 0;
215 
221  virtual int GetError() const = 0;
222 
228  virtual CFxString GetGde() const = 0;
229 
235  virtual CFxString GetVersion() const = 0;
236 
242  virtual bool IsPrerelease() const = 0;
243 
249  virtual bool AllowsDongleActivation() const = 0;
250 
256  virtual bool InAppleSandbox() const = 0;
257 
263  virtual bool IsExtendedApiEnabled() const = 0;
264 
270  virtual bool IsMFCUIEnabled() const = 0;
271 
277  virtual bool IsLispEnabled() const = 0;
278 
283  virtual void DisableLisp() = 0;
284 
289  virtual void EnableLisp() = 0;
290 
296  virtual bool IsFibersEnabled() const = 0;
297 
303  virtual bool IsDWFEnabled() const = 0;
304 
309  virtual void DisableDWF() = 0;
310 
316  virtual bool IsDWFSaveEnabled() const = 0;
317 
323  virtual bool IsSHPEnabled() const = 0;
324 
329  virtual void CleanUp() = 0;
330 
331 
337  virtual bool ValidateDongle() const = 0;
338 };
339 
341 
342 #include "FxPragmaPop.h"
CFxLicenseInfo::IsLispEnabled
virtual bool IsLispEnabled() const =0
CFxLicenseInfo::DisableDWF
virtual void DisableDWF()=0
CFxLicenseInfo::GetGde
virtual CFxString GetGde() const =0
FxPragmaPop.h
CFxLicenseInfo::IsDWFEnabled
virtual bool IsDWFEnabled() const =0
CFxLicenseInfo::CFxLicenseInfo
CFxLicenseInfo(void)
CFxLicenseInfo::CheckInLicense
virtual int CheckInLicense()=0
CFxLicenseInfo::ValidateDongle
virtual bool ValidateDongle() const =0
CFxLicenseInfo::SaveActivationCode
virtual int SaveActivationCode(const CFxString &sActivationCode)=0
CFxLicenseInfo::GetRoamingLicenseMaxShares
virtual int GetRoamingLicenseMaxShares() const =0
CFxLicenseInfo::IsTrialVersion
virtual bool IsTrialVersion() const =0
DDKERNEL.h
CFxLicenseInfo::GetLicensePath
virtual CFxString GetLicensePath() const =0
CFxLicenseInfo::IsPrerelease
virtual bool IsPrerelease() const =0
CFxLicenseInfo::GetHostID
virtual CFxString GetHostID(bool bComputerHostID) const =0
CFxLicenseInfo::EnableLisp
virtual void EnableLisp()=0
CFxLicenseInfo::IsUnregisteredVersion
virtual bool IsUnregisteredVersion() const =0
CFxLicenseInfo::IsFullVersion
virtual bool IsFullVersion() const =0
OdString.h
CFxLicenseInfo::GetRoamingProductMaxCount
virtual int GetRoamingProductMaxCount() const =0
CFxString
Definition: FxString.h:48
CFxLicenseInfo::IsNetworkConnectionLost
virtual bool IsNetworkConnectionLost() const =0
CFxLicenseInfo::GetLicenseOptions
virtual CFxString GetLicenseOptions() const =0
CFxLicenseInfo::AllowsDongleActivation
virtual bool AllowsDongleActivation() const =0
CFxLicenseInfo::InAppleSandbox
virtual bool InAppleSandbox() const =0
CFxLicenseInfo::IsTrialExpired
virtual bool IsTrialExpired() const =0
CFxLicenseInfo::IsDWFSaveEnabled
virtual bool IsDWFSaveEnabled() const =0
CFxLicenseInfo::IsExtendedApiEnabled
virtual bool IsExtendedApiEnabled() const =0
CFxLicenseInfo::IsRoaming
virtual bool IsRoaming() const =0
CFxLicenseInfo::IsMFCUIEnabled
virtual bool IsMFCUIEnabled() const =0
DDKERNEL_API
#define DDKERNEL_API
Definition: DDKERNEL.h:32
CFxLicenseInfo::IsLicenseHealthy
virtual bool IsLicenseHealthy() const =0
CFxLicenseInfo::GetLicenseType
virtual int GetLicenseType() const =0
CFxLicenseInfo::DisableLisp
virtual void DisableLisp()=0
CFxLicenseInfo::IsFibersEnabled
virtual bool IsFibersEnabled() const =0
CFxLicenseInfo::IsActivationCodeValid
virtual int IsActivationCodeValid(const CFxString &sActivationCode) const =0
CFxLicenseInfo::GetVersion
virtual CFxString GetVersion() const =0
CFxLicenseInfo::~CFxLicenseInfo
virtual ~CFxLicenseInfo(void)
CFxLicenseInfo::IsSHPEnabled
virtual bool IsSHPEnabled() const =0
GetFxLicenseInfo
DDKERNEL_API CFxLicenseInfo * GetFxLicenseInfo()
CFxLicenseInfo::CheckOutLicense
virtual int CheckOutLicense()=0
CFxLicenseInfo::CleanUp
virtual void CleanUp()=0
CFxLicenseInfo::GetRoamingLicenseMaxDays
virtual int GetRoamingLicenseMaxDays() const =0
CFxLicenseInfo::IsLicenseCheckedOut
virtual bool IsLicenseCheckedOut() const =0
CFxLicenseInfo::GetRoamingProductCurrentCount
virtual int GetRoamingProductCurrentCount() const =0
FxPragmaPush.h
CFxLicenseInfo::GetRoamingLicenseMaxCount
virtual int GetRoamingLicenseMaxCount() const =0
CFxLicenseInfo::GetLicenseDays
virtual int GetLicenseDays() const =0
CFxLicenseInfo::GetError
virtual int GetError() const =0
CFxLicenseInfo
Definition: FxLicenseInfo.h:33
CFxLicenseInfo::IsProductKeyValid
virtual int IsProductKeyValid(const CFxString &productKey) const =0