| LicenseSpring C++ SDK 7.32.0 Easily add Software Licensing to your application

LicenseHandler.h
Go to the documentation of this file.
1 #ifndef LS_C_LICENSE_HANDLER_H
2 #define LS_C_LICENSE_HANDLER_H
3
4 #include "Configuration.h"
5 #include "ProductDetails.h"
6 #include "Customer.h"
7 #include "InstallationFile.h"
8 #include "LicenseFeature.h"
9 #include "LicenseID.h"
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 LS_API typedef struct LSCustomField
16 {
17 char* name;
18 char* value;
19 int nameSize;
20 int valueSize;
21 } LSCustomField;
22
23 // handler can be casted to LSLicenseHandler*
24 LS_API typedef void ( *LSWatchdogCallback )( const char* message, enum LSErrorCode errorCode, void* handler );
25
26 LS_API typedef struct LSLicenseHandler
27 {
28 // current configuration if present gets deleted automatically
29 void ( *reconfigure )( struct LSLicenseHandler* self, struct LSConfiguration* config );
30
31 // ---------- Requests to the LicenseSpring backend ----------
32 bool ( *isOnline )( struct LSLicenseHandler* self );
33 LSProductDetails* ( *getProductDetails )( struct LSLicenseHandler* self, bool includeLatestVersion );
34 struct LSLicenseID ( *getTrialLicense )( struct LSLicenseHandler* self, LSCustomer* user, const char* licensePolicy );
35 struct LSLicenseID ( *getTrialLicenseByEmail )( struct LSLicenseHandler* self, const char* userEmail );
36 const char* ( *getSSOUrl )( struct LSLicenseHandler* self, const char* accountCode, bool useAuthCode );
37 void ( *activateLicense )( struct LSLicenseHandler* self, struct LSLicenseID licenseID );
38 void ( *activateLicenseViaSSO )( struct LSLicenseHandler* self, const char* authData,
39 const char* accountCode, bool useAuthCode );
40 bool ( *deactivateLicense )( struct LSLicenseHandler* self );
41 bool ( *changePassword )( struct LSLicenseHandler* self, const char* password, const char* newPassword, const char* user );
42 LSInstallationFile* ( *checkLicense )( struct LSLicenseHandler* self );
43 LSInstallationFile* ( *checkLicenseEx )(struct LSLicenseHandler* self, const char* channel, const char* env, bool includeExpiredFeatures );
44 int ( *getVersionList )( struct LSLicenseHandler* self, struct LSLicenseID licenseID, int* lengths, char** versionList );
45 int ( *getVersionListEx )( struct LSLicenseHandler* self, struct LSLicenseID licenseID,
46 const char* channel, const char* env, int* lengths, char** versionList );
47 LSInstallationFile* ( *getInstallFile )( struct LSLicenseHandler* self, struct LSLicenseID licenseID, const char* version );
48 LSInstallationFile* ( *getInstallFileEx )( struct LSLicenseHandler* self, struct LSLicenseID licenseID,
49 const char* version, const char* channel, const char* env );
50 void ( *sendDeviceData )( struct LSLicenseHandler* self, struct LSCustomField* data, int dataSize );
51 void ( *syncConsumption )( struct LSLicenseHandler* self );
52 void ( *syncFeatureConsumption )( struct LSLicenseHandler* self, const char* featureCode );
53 void ( *registerFloatingLicense )( struct LSLicenseHandler* self );
54 void ( *borrowFloatingLicense )( struct LSLicenseHandler* self, uint32_t hours, uint32_t days );
55 void ( *borrowFloatingLicenseTill )(struct LSLicenseHandler* self, const char* borrowEndDateTime );
56 void ( *releaseFloatingLicense )( struct LSLicenseHandler* self );
57 void ( *registerFloatingFeature )( struct LSLicenseHandler* self, const char* featureCode, bool addToWatchdog );
58 void ( *releaseFloatingFeature )( struct LSLicenseHandler* self, const char* featureCode );
59 const char* ( *getAirGapActivationCode )( struct LSLicenseHandler* self, const char* initializationCode, const char* licenseKey );
60 const char* ( *getAirGapDeactivationCode )( struct LSLicenseHandler* self, const char* initializationCode );
61 // ------------------------------------------------------------
62
63 // -------- Local license management and helper methods -------
64 bool ( *isInitialized )( struct LSLicenseHandler* self );
65 bool ( *isLicenseExists )( struct LSLicenseHandler* self );
66 void ( *updateConsumption )( struct LSLicenseHandler* self, int value, bool saveLicense );
67 void ( *updateFeatureConsumption )( struct LSLicenseHandler* self, const char* featureCode, int value, bool saveLicense );
68 void ( *checkLicenseLocal )( struct LSLicenseHandler* self );
69 void ( *clearLocalStorage )( struct LSLicenseHandler* self );
70 void ( *setupLicenseWatchdog )( struct LSLicenseHandler* self, LSWatchdogCallback callback, unsigned long timeout );
71 void ( *resumeLicenseWatchdog )( struct LSLicenseHandler* self );
72 void ( *stopLicenseWatchdog )( struct LSLicenseHandler* self );
73 void ( *setupFeatureWatchdog )( struct LSLicenseHandler* self, LSWatchdogCallback callback, unsigned long timeout );
74 void ( *resumeFeaturewatchdog )( struct LSLicenseHandler* self );
75 void ( *stopFeatureWatchdog )( struct LSLicenseHandler* self );
76 void ( *relinkLicense )( struct LSLicenseHandler* self, enum DeviceIDAlgorithm deviceIdAlgorithm, const char* userPassword );
77 const wchar_t* ( *getDataLocation )( struct LSLicenseHandler* self );
78 void ( *setDataLocation )( struct LSLicenseHandler* self, const wchar_t* path );
79 const wchar_t* ( *getLicenseFileName )( struct LSLicenseHandler* self );
80 void ( *setLicenseFileName )( struct LSLicenseHandler* self, const wchar_t* name );
81 // ------------------------------------------------------------
82
83 // ---------------- Offline license management ----------------
84 const wchar_t* ( *createOfflineActivationFile )( struct LSLicenseHandler* self, struct LSLicenseID licenseID, const wchar_t* activationRequestFile );
85 void ( *activateLicenseOffline )( struct LSLicenseHandler* self, const wchar_t* activationResponseFile );
86 const wchar_t* ( *deactivateLicenseOffline )( struct LSLicenseHandler* self, const wchar_t* deactivationRequestFile );
87 bool ( *updateOffline )( struct LSLicenseHandler* self, const wchar_t* path, bool resetConsumption );
88 void ( *activateAirGapLicense )( struct LSLicenseHandler* self, const char* confirmationCode, const wchar_t* policyFile, const char* licenseKey, unsigned long policyId );
89 void ( *deactivateAirGapLicense )( struct LSLicenseHandler* self, const char* confirmationCode );
90 // ------------------------------------------------------------
91
92 // ----------------------- License data -----------------------
93 bool ( *isLicenseValid )( struct LSLicenseHandler* self );
94 bool ( *isLicenseTrial )( struct LSLicenseHandler* self );
95 bool ( *isLicenseAirGapped )( struct LSLicenseHandler* self );
96 bool ( *isLicenseActive )( struct LSLicenseHandler* self );
97 bool ( *isLicenseEnabled )( struct LSLicenseHandler* self );
98 bool ( *isLicenseExpired )( struct LSLicenseHandler* self );
99 bool ( *isLicenseMaintenanceExpired )( struct LSLicenseHandler* self );
100 bool ( *isLicenseOfflineActivated )( struct LSLicenseHandler* self );
101 bool ( *isLicenseFloating )( struct LSLicenseHandler* self );
102 bool ( *isLicenseBorrowed )( struct LSLicenseHandler* self );
103 bool ( *isLicenseVMAllowed )( struct LSLicenseHandler* self );
104 bool ( *isSubscriptionGracePeriodStarted )( struct LSLicenseHandler* self );
105 bool ( *isGracePeriodStarted )( struct LSLicenseHandler* self );
106 int ( *gracePeriodHoursRemaining )( struct LSLicenseHandler* self );
107 struct tm ( *gracePeriodEndDateTime )( struct LSLicenseHandler* self );
108 struct tm ( *gracePeriodEndDateTimeUTC )( struct LSLicenseHandler* self );
109 int ( *getLicenseTrialPeriod )( struct LSLicenseHandler* self );
110
111 struct LSLicenseID ( *getLicenseID )( struct LSLicenseHandler* self );
112 const char* ( *getLicenseKey )( struct LSLicenseHandler* self );
113 const char* ( *getLicenseUser )( struct LSLicenseHandler* self );
114 const char* ( *getLicenseStatusStr )( struct LSLicenseHandler* self );
115 const char* ( *getLicenseStartDate )( struct LSLicenseHandler* self );
116 const char* ( *getLicenseMetadata )( struct LSLicenseHandler* self );
117 enum LSLicenseType( *getLicenseType )( struct LSLicenseHandler* self );
118 struct tm( *getLicenseExpiryDate )( struct LSLicenseHandler* self );
119 struct tm( *getLicenseExpiryDateUtc )( struct LSLicenseHandler* self );
120 struct tm( *getLicenseMaintenancePeriod )( struct LSLicenseHandler* self );
121 struct tm( *getLicenseMaintenancePeriodUtc )( struct LSLicenseHandler* self );
122 struct tm( *getLicenseLastCheckDate )( struct LSLicenseHandler* self );
123 struct tm( *getLicenseLastCheckDateUtc )( struct LSLicenseHandler* self );
124 struct tm( *getLicenseFloatingEndDateTime )( struct LSLicenseHandler* self );
125 struct tm( *getLicenseFloatingEndDateTimeUtc )( struct LSLicenseHandler* self );
126 int ( *getDaysRemaining )( struct LSLicenseHandler* self );
127 int ( *getMaintenanceDaysRemaining )( struct LSLicenseHandler* self );
128 int ( *getDaysPassedSinceLastCheck )( struct LSLicenseHandler* self );
129 LSCustomer* ( *getLicenseOwner )( struct LSLicenseHandler* self );
130 bool ( *hasLicenseFeatures )( struct LSLicenseHandler* self );
131 struct LSLicenseFeature* ( *getLicenseFeature )( struct LSLicenseHandler* self, const char* featureCode );
132 int ( *getLicenseFeatures )( struct LSLicenseHandler* self, struct LSLicenseFeature* features );
133 bool ( *hasLicenseCustomFields )( struct LSLicenseHandler* self );
134 int ( *getLicenseCustomFields )( struct LSLicenseHandler* self, struct LSCustomField* fields );
135 unsigned long ( *getLicenseTimesActivated )( struct LSLicenseHandler* self );
136 unsigned long ( *getLicenseMaxActivations )( struct LSLicenseHandler* self );
137 unsigned long ( *getLicenseTransferCount )( struct LSLicenseHandler* self );
138 int ( *getLicenseTransferLimit )( struct LSLicenseHandler* self );
139 bool ( *isDeviceTransferAllowed )( struct LSLicenseHandler* self );
140 bool ( *isDeviceTransferLimited )( struct LSLicenseHandler* self );
141 unsigned long ( *getLicensePolicyId )( struct LSLicenseHandler* self );
142
143 // Meaningful only for Subscription license
144 unsigned long ( *getSubscriptionLicenseGracePeriod )( struct LSLicenseHandler* self );
145 struct tm ( *validityWithGracePeriod )( struct LSLicenseHandler* self );
146 struct tm ( *validityWithGracePeriodUtc )( struct LSLicenseHandler* self );
147
148 // Meaningful only for Consumption license
149 int ( *getLicenseTotalConsumption )( struct LSLicenseHandler* self );
150 int ( *getLicenseMaxConsumption )( struct LSLicenseHandler* self );
151 bool ( *isLicenseOveragesAllowed )( struct LSLicenseHandler* self );
152 bool ( *isLicenseUnlimitedConsumptionAllowed )( struct LSLicenseHandler* self );
153 int ( *getLicenseMaxOverages )( struct LSLicenseHandler* self );
154 bool ( *isResetLicenseConsumptionEnabled )( struct LSLicenseHandler* self );
155 enum LSConsumptionPeriod( *getLicenseConsumptionPeriod )( struct LSLicenseHandler* self );
156
157 // Meaningful only for Floating license
158 unsigned long ( *getLicenseFloatingTimeout )( struct LSLicenseHandler* self );
159 unsigned long ( *getLicenseFloatingInUseCount )( struct LSLicenseHandler* self );
160 unsigned long ( *getLicenseMaxFloatingUsers )( struct LSLicenseHandler* self );
161 unsigned long (* getMaxBorrowTime )( struct LSLicenseHandler* self );
162 // ------------------------------------------------------------
163
164 // ---------------------- Error handling ----------------------
165 bool ( *wasError )( struct LSLicenseHandler* self );
166 enum LSErrorCode( *getLastError )( struct LSLicenseHandler* self );
167 const char* ( *getLastErrorMsg )( struct LSLicenseHandler* self );
168 bool ( *isInitializationError )( struct LSLicenseHandler* self );
169 bool ( *isInternalServerError )( struct LSLicenseHandler* self );
170 bool ( *isNetworkTimeoutError )( struct LSLicenseHandler* self );
171 bool ( *isNoInternetError )( struct LSLicenseHandler* self );
172 bool ( *isActivationFailed )( struct LSLicenseHandler* self );
173 bool ( *isLicenseExpiredError )( struct LSLicenseHandler* self );
174 bool ( *isLicenseNotFoundError )( struct LSLicenseHandler* self );
175 bool ( *isLicenseStateError )( struct LSLicenseHandler* self );
176 bool ( *isHardwareIDError )( struct LSLicenseHandler* self );
177 bool ( *isGeneralError )( struct LSLicenseHandler* self );
178 bool ( *isLicenseFeatureError )( struct LSLicenseHandler* self );
179 bool ( *canIgnoreError )( struct LSLicenseHandler* self ); // No Internet, network timeout and server errors can be ignored
180 // ------------------------------------------------------------
181
182 void* inner;
183
184 struct LSConfiguration* currentConfig;
185
186 } LSLicenseHandler;
187
188 // LicenseHandler takes ownership of Configuration, so do not free it
189 LS_API struct LSLicenseHandler* CreateLSLicenseHandler( struct LSConfiguration* config );
190
191 // This function will also free current configuration, you do not need to explicitly call FreeLSConfiguration
192 LS_API void FreeLSLicenseHandler( struct LSLicenseHandler* handler );
193
194 #ifdef __cplusplus
195 } // end extern "C"
196 #endif
197
198 #endif // LS_C_LICENSE_HANDLER_H
LSConsumptionPeriod
LSConsumptionPeriod
Consumption period.
Definition: PODTypes.h:37
LSLicenseHandler::updateConsumption
void(* updateConsumption)(struct LSLicenseHandler *self, int value, bool saveLicense)
Definition: LicenseHandler.h:66
LSCustomField
LS_API struct LSCustomField LSCustomField
LSLicenseHandler::getLicenseFloatingInUseCount
unsigned long(* getLicenseFloatingInUseCount)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:159
LSErrorCode
LSErrorCode
LicenseSpring Error codes enum.
Definition: PODTypes.h:47
LSLicenseHandler::clearLocalStorage
void(* clearLocalStorage)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:69
LSLicenseHandler::isResetLicenseConsumptionEnabled
bool(* isResetLicenseConsumptionEnabled)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:154
LSLicenseType
LSLicenseType
License type.
Definition: PODTypes.h:27
LSLicenseHandler::setupLicenseWatchdog
void(* setupLicenseWatchdog)(struct LSLicenseHandler *self, LSWatchdogCallback callback, unsigned long timeout)
Definition: LicenseHandler.h:70
LSLicenseHandler::getLicenseMaxConsumption
int(* getLicenseMaxConsumption)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:150
LSLicenseHandler::isNetworkTimeoutError
bool(* isNetworkTimeoutError)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:170
LSLicenseHandler::registerFloatingLicense
void(* registerFloatingLicense)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:53
LSCustomField::valueSize
int valueSize
Definition: LicenseHandler.h:20
LSLicenseHandler::isLicenseOfflineActivated
bool(* isLicenseOfflineActivated)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:100
LSLicenseHandler::isGeneralError
bool(* isGeneralError)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:177
LSCustomField::nameSize
int nameSize
Definition: LicenseHandler.h:19
LSLicenseHandler::getLicenseFeatures
int(* getLicenseFeatures)(struct LSLicenseHandler *self, struct LSLicenseFeature *features)
Definition: LicenseHandler.h:132
LSLicenseHandler::resumeLicenseWatchdog
void(* resumeLicenseWatchdog)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:71
LicenseID.h
LSLicenseHandler::getLastError
enum LSErrorCode(* getLastError)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:166
LicenseFeature.h
LSLicenseHandler::changePassword
bool(* changePassword)(struct LSLicenseHandler *self, const char *password, const char *newPassword, const char *user)
Definition: LicenseHandler.h:41
LSLicenseHandler::isLicenseValid
bool(* isLicenseValid)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:93
LSLicenseID
Definition: LicenseID.h:10
LSLicenseHandler::getLicenseMaxActivations
unsigned long(* getLicenseMaxActivations)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:136
LSLicenseHandler::getLicenseTransferCount
unsigned long(* getLicenseTransferCount)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:137
LSLicenseHandler::releaseFloatingLicense
void(* releaseFloatingLicense)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:56
LSLicenseHandler::canIgnoreError
bool(* canIgnoreError)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:179
LSLicenseHandler::getDaysPassedSinceLastCheck
int(* getDaysPassedSinceLastCheck)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:128
LSLicenseHandler::isLicenseStateError
bool(* isLicenseStateError)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:175
LSLicenseHandler::isLicenseMaintenanceExpired
bool(* isLicenseMaintenanceExpired)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:99
LSLicenseHandler::isInternalServerError
bool(* isInternalServerError)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:169
LSLicenseHandler::getMaintenanceDaysRemaining
int(* getMaintenanceDaysRemaining)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:127
LSLicenseHandler::wasError
bool(* wasError)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:165
CreateLSLicenseHandler
LS_API struct LSLicenseHandler * CreateLSLicenseHandler(struct LSConfiguration *config)
LSLicenseHandler::relinkLicense
void(* relinkLicense)(struct LSLicenseHandler *self, enum DeviceIDAlgorithm deviceIdAlgorithm, const char *userPassword)
Definition: LicenseHandler.h:76
LSLicenseHandler
Definition: LicenseHandler.h:26
LSLicenseHandler::setDataLocation
void(* setDataLocation)(struct LSLicenseHandler *self, const wchar_t *path)
Definition: LicenseHandler.h:78
LSLicenseHandler::getMaxBorrowTime
unsigned long(* getMaxBorrowTime)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:161
LSLicenseHandler::borrowFloatingLicenseTill
void(* borrowFloatingLicenseTill)(struct LSLicenseHandler *self, const char *borrowEndDateTime)
Definition: LicenseHandler.h:55
LSLicenseHandler::getVersionList
int(* getVersionList)(struct LSLicenseHandler *self, struct LSLicenseID licenseID, int *lengths, char **versionList)
Definition: LicenseHandler.h:44
LSLicenseHandler::isActivationFailed
bool(* isActivationFailed)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:172
LSLicenseHandler::resumeFeaturewatchdog
void(* resumeFeaturewatchdog)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:74
LSLicenseHandler::activateLicense
void(* activateLicense)(struct LSLicenseHandler *self, struct LSLicenseID licenseID)
Definition: LicenseHandler.h:37
LSLicenseHandler::getLicenseCustomFields
int(* getLicenseCustomFields)(struct LSLicenseHandler *self, struct LSCustomField *fields)
Definition: LicenseHandler.h:134
LSLicenseHandler::getLicenseFloatingTimeout
unsigned long(* getLicenseFloatingTimeout)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:158
LSLicenseHandler::releaseFloatingFeature
void(* releaseFloatingFeature)(struct LSLicenseHandler *self, const char *featureCode)
Definition: LicenseHandler.h:58
LSLicenseHandler::isLicenseAirGapped
bool(* isLicenseAirGapped)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:95
ProductDetails.h
LSConfiguration
Definition: Configuration.h:10
LSLicenseHandler::setLicenseFileName
void(* setLicenseFileName)(struct LSLicenseHandler *self, const wchar_t *name)
Definition: LicenseHandler.h:80
InstallationFile.h
LSLicenseHandler::isLicenseVMAllowed
bool(* isLicenseVMAllowed)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:103
LSLicenseHandler::isLicenseNotFoundError
bool(* isLicenseNotFoundError)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:174
LSLicenseHandler::deactivateLicense
bool(* deactivateLicense)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:40
LSLicenseHandler::isHardwareIDError
bool(* isHardwareIDError)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:176
LSLicenseHandler::checkLicenseLocal
void(* checkLicenseLocal)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:68
LSLicenseHandler::stopFeatureWatchdog
void(* stopFeatureWatchdog)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:75
LSLicenseHandler::hasLicenseFeatures
bool(* hasLicenseFeatures)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:130
LSLicenseHandler::isLicenseExists
bool(* isLicenseExists)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:65
LSLicenseHandler::getLicenseMaxOverages
int(* getLicenseMaxOverages)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:153
LSLicenseHandler::isSubscriptionGracePeriodStarted
bool(* isSubscriptionGracePeriodStarted)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:104
LSLicenseHandler::isDeviceTransferAllowed
bool(* isDeviceTransferAllowed)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:139
DeviceIDAlgorithm
DeviceIDAlgorithm
Type of Device ID algorithm used by the SDK.
Definition: PODTypes.h:103
LSWatchdogCallback
LS_API typedef void(* LSWatchdogCallback)(const char *message, enum LSErrorCode errorCode, void *handler)
Definition: LicenseHandler.h:24
LSInstallationFile
Definition: InstallationFile.h:10
LSCustomField::name
char * name
Definition: LicenseHandler.h:17
LSLicenseHandler::activateAirGapLicense
void(* activateAirGapLicense)(struct LSLicenseHandler *self, const char *confirmationCode, const wchar_t *policyFile, const char *licenseKey, unsigned long policyId)
Definition: LicenseHandler.h:88
LSLicenseHandler::isNoInternetError
bool(* isNoInternetError)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:171
LSLicenseHandler::isLicenseTrial
bool(* isLicenseTrial)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:94
LSLicenseHandler::isLicenseOveragesAllowed
bool(* isLicenseOveragesAllowed)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:151
LSLicenseHandler::getLicenseMaxFloatingUsers
unsigned long(* getLicenseMaxFloatingUsers)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:160
LSLicenseHandler::isLicenseBorrowed
bool(* isLicenseBorrowed)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:102
LSCustomField
Definition: LicenseHandler.h:15
LSLicenseHandler::getLicenseType
enum LSLicenseType(* getLicenseType)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:117
LSLicenseFeature
Definition: LicenseFeature.h:13
LSLicenseHandler::isInitialized
bool(* isInitialized)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:64
LSLicenseHandler::isGracePeriodStarted
bool(* isGracePeriodStarted)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:105
LSCustomField::value
char * value
Definition: LicenseHandler.h:18
LSLicenseHandler::syncFeatureConsumption
void(* syncFeatureConsumption)(struct LSLicenseHandler *self, const char *featureCode)
Definition: LicenseHandler.h:52
LSLicenseHandler::getSubscriptionLicenseGracePeriod
unsigned long(* getSubscriptionLicenseGracePeriod)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:144
LSLicenseHandler::isLicenseExpired
bool(* isLicenseExpired)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:98
LSLicenseHandler::getLicenseConsumptionPeriod
enum LSConsumptionPeriod(* getLicenseConsumptionPeriod)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:155
LSLicenseHandler::isLicenseActive
bool(* isLicenseActive)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:96
LSLicenseHandler::updateFeatureConsumption
void(* updateFeatureConsumption)(struct LSLicenseHandler *self, const char *featureCode, int value, bool saveLicense)
Definition: LicenseHandler.h:67
Configuration.h
LSLicenseHandler::stopLicenseWatchdog
void(* stopLicenseWatchdog)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:72
LSCustomer
Definition: Customer.h:10
LSLicenseHandler
LS_API struct LSLicenseHandler LSLicenseHandler
LSLicenseHandler::setupFeatureWatchdog
void(* setupFeatureWatchdog)(struct LSLicenseHandler *self, LSWatchdogCallback callback, unsigned long timeout)
Definition: LicenseHandler.h:73
LSLicenseHandler::deactivateAirGapLicense
void(* deactivateAirGapLicense)(struct LSLicenseHandler *self, const char *confirmationCode)
Definition: LicenseHandler.h:89
LSLicenseHandler::isLicenseEnabled
bool(* isLicenseEnabled)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:97
LSLicenseHandler::isLicenseFloating
bool(* isLicenseFloating)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:101
LS_API
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Definition: APIDef.h:22
LSLicenseHandler::gracePeriodHoursRemaining
int(* gracePeriodHoursRemaining)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:106
LSLicenseHandler::isLicenseExpiredError
bool(* isLicenseExpiredError)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:173
LSLicenseID::user
const char * user
Definition: LicenseID.h:13
LSLicenseHandler::getLicensePolicyId
unsigned long(* getLicensePolicyId)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:141
FreeLSLicenseHandler
LS_API void FreeLSLicenseHandler(struct LSLicenseHandler *handler)
LSLicenseHandler::isInitializationError
bool(* isInitializationError)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:168
LSLicenseHandler::isLicenseUnlimitedConsumptionAllowed
bool(* isLicenseUnlimitedConsumptionAllowed)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:152
LSProductDetails
Definition: ProductDetails.h:12
LSLicenseHandler::isDeviceTransferLimited
bool(* isDeviceTransferLimited)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:140
LSLicenseHandler::updateOffline
bool(* updateOffline)(struct LSLicenseHandler *self, const wchar_t *path, bool resetConsumption)
Definition: LicenseHandler.h:87
LSLicenseHandler::inner
void * inner
Definition: LicenseHandler.h:182
Customer.h
LSLicenseHandler::registerFloatingFeature
void(* registerFloatingFeature)(struct LSLicenseHandler *self, const char *featureCode, bool addToWatchdog)
Definition: LicenseHandler.h:57
LSLicenseHandler::isLicenseFeatureError
bool(* isLicenseFeatureError)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:178
LSLicenseHandler::getLicenseTransferLimit
int(* getLicenseTransferLimit)(struct LSLicenseHandler *self)
Definition: LicenseHandler.h:138
LSLicenseHandler::borrowFloatingLicense
void(* borrowFloatingLicense)(struct LSLicenseHandler *self, uint32_t hours, uint32_t days)
Definition: LicenseHandler.h:54
LSLicenseHandler::currentConfig
struct LSConfiguration * currentConfig
Definition: LicenseHandler.h:184