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