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

PODTypes.h
Go to the documentation of this file.
1 #ifndef LS_POD_TYPES_H
2 #define LS_POD_TYPES_H
3
4 #ifdef _MSC_VER
5 #pragma once
6 #endif
7
9 enum LSAuthMethod
10 {
11 AuthMethodUnknown = 0,
12 AuthMethodKeyBased = 1,
13 AuthMethodUserBased = 2
14 };
15
16
18 enum LSFeatureType
19 {
20 FeatureTypeNone,
21 FeatureTypeActivation,
22 FeatureTypeConsumption
23 };
24
25
27 enum LSLicenseType
28 {
29 LicenseTypePerpetual,
30 LicenseTypeSubscription,
31 LicenseTypeTimeLimited,
32 LicenseTypeConsumption,
33 LicenseTypeUnknown = 100
34 };
35
37 enum LSConsumptionPeriod
38 {
39 ConsumptionPeriodNone = 0,
40 ConsumptionPeriodDaily,
41 ConsumptionPeriodWeekly,
42 ConsumptionPeriodMonthly,
43 ConsumptionPeriodAnnually
44 };
45
47 enum LSErrorCode
48 {
49 eNoError = 0,
50 eUnknownError,
51 eStdError,
52 eGeneralLSError,
53 eInitializationError,
54 eLicenseNotFound,
55 eLicenseExpired,
56 eLicenseDisabled,
57 eLicenseInactive,
58 eActivationFailed,
59 eServerError,
60 eDeviceError,
61 eVersionError,
62 eProductError,
63 eNoInternetError,
64 eNetworkTimeoutError,
65 eNotEnoughConsumptionError,
66 eProductMismatchError,
67 eSignatureMismatchError,
68 eLocalLicenseError,
69 eClockTamperedError,
70 eInvalidCredential,
71 eLicenseSpringInternalError,
72 eMissingEmailError,
73 eInvalidOrderIDError,
74 eInvalidLicenseFeatureError,
75 eLicenseNoAvailableActivations,
76 eVMNotAllowed,
77 eMaxFloatingReached,
78 eLicenseNotFloating,
79 eDeviceBlacklisted,
80 ePasswordChangeNotAllowed,
81 eTrialNotAllowed,
82 eCannotBeActivatedNow,
83 eSSOError,
84 eSSOTokenError,
85 eBorrowLicenseError,
86 eBorrowingNotAllowed,
87 eAuthorizationError,
88 eVMDNotAvailable,
89 eInvalidApiKey,
90 eReadOnlyApiKey,
91 eRevokedApiKey,
92 eApiKeyProductNotAllowed,
93 eFloatingTimeoutExpired,
94 eWatchdogError,
95 eInvalidConfirmationCode,
96 eRequestDateHeaderInvalid,
97 eInvalidLicenseFeatureCode,
98 eFeatureNotFloating,
99 eFloatingFeatureDeviceNotInUse
100 };
101
103 enum DeviceIDAlgorithm
104 {
106 Default = 0,
109 Gen2,
112 CloudPlatformsId,
115 AutoId,
118 WinCSProductId,
121 WinCryptographyId,
124 AutoIdGen2,
127 AutoIdWinCloud
128 };
129
130 #endif // LS_POD_TYPES_H
eTrialNotAllowed
Getting trial licenses is restricted by product license policy.
Definition: PODTypes.h:81
LSConsumptionPeriod
LSConsumptionPeriod
Consumption period.
Definition: PODTypes.h:37
LSErrorCode
LSErrorCode
LicenseSpring Error codes enum.
Definition: PODTypes.h:47
eUnknownError
Unknown error encountered.
Definition: PODTypes.h:50
ConsumptionPeriodAnnually
Annually consumption reset.
Definition: PODTypes.h:43
AuthMethodUnknown
Invalid method.
Definition: PODTypes.h:11
eRequestDateHeaderInvalid
Request DateTime header is invalid, please set correct date time on target device,.
Definition: PODTypes.h:96
eSSOError
Customer account not found or SSO is not set up properly.
Definition: PODTypes.h:83
eCannotBeActivatedNow
Current date is behind license start date.
Definition: PODTypes.h:82
LSLicenseType
LSLicenseType
License type.
Definition: PODTypes.h:27
ConsumptionPeriodWeekly
Weekly consumption reset.
Definition: PODTypes.h:41
eLicenseSpringInternalError
Internal SDK error, please contact support or try to update SDK.
Definition: PODTypes.h:71
ConsumptionPeriodDaily
Daily consumption reset.
Definition: PODTypes.h:40
eLocalLicenseError
SDK could not read or write license to the storage.
Definition: PODTypes.h:68
LicenseTypeConsumption
Consumption License type.
Definition: PODTypes.h:32
eSignatureMismatchError
Server signature is not valid.
Definition: PODTypes.h:67
eBorrowLicenseError
Borrowing period is not valid (it is bigger than max possible)
Definition: PODTypes.h:85
eInvalidConfirmationCode
Air gap confirmation code is invalid.
Definition: PODTypes.h:95
eFeatureNotFloating
License feature that should be released is not a floating feature.
Definition: PODTypes.h:98
LSAuthMethod
LSAuthMethod
Product authorization method.
Definition: PODTypes.h:9
LicenseTypePerpetual
Perpetual License type.
Definition: PODTypes.h:29
eLicenseNoAvailableActivations
The license has already been activated maximum number of times.
Definition: PODTypes.h:75
eActivationFailed
Internal server error.
Definition: PODTypes.h:58
eLicenseNotFound
License not found.
Definition: PODTypes.h:54
AutoId
Device ID algorithm with auto-detection of the platform.
Definition: PODTypes.h:115
eInvalidCredential
Username does not exist or wrong password provided.
Definition: PODTypes.h:70
eInvalidOrderIDError
Order with specified ID already exists and ShouldAppend flag set to false.
Definition: PODTypes.h:73
eFloatingTimeoutExpired
Floating license borrowing period or floating timeout expired.
Definition: PODTypes.h:93
FeatureTypeNone
Invalid type.
Definition: PODTypes.h:20
eNoError
No error, everything is ok.
Definition: PODTypes.h:49
eNoInternetError
Problems with Internet connection.
Definition: PODTypes.h:63
AuthMethodKeyBased
Authorization method based on license keys.
Definition: PODTypes.h:12
eClockTamperedError
Detected that system clock has been set back.
Definition: PODTypes.h:69
eMissingEmailError
Missing email in API call for user-based product, probably attempt to get trial license with empty em...
Definition: PODTypes.h:72
eNetworkTimeoutError
Request to the backend has timed out.
Definition: PODTypes.h:64
eVMDNotAvailable
Windows only, in case VM detection dll not found or tempered.
Definition: PODTypes.h:88
ePasswordChangeNotAllowed
Password change is restricted by product policy.
Definition: PODTypes.h:80
eWatchdogError
Failed to set license watchdog.
Definition: PODTypes.h:94
AuthMethodUserBased
Authorization method based on user credentials.
Definition: PODTypes.h:13
eFloatingFeatureDeviceNotInUse
Device was never used to check out a floating feature.
Definition: PODTypes.h:99
eInitializationError
Invalid Configuration settings.
Definition: PODTypes.h:53
eInvalidLicenseFeatureCode
Feature code not found on license.
Definition: PODTypes.h:97
eDeviceBlacklisted
Device has been added to the blacklist by admin on LicenseSpring platform.
Definition: PODTypes.h:79
AutoIdGen2
Device ID algorithm with auto-detection of the platform.
Definition: PODTypes.h:124
LicenseTypeTimeLimited
TimeLimited License type.
Definition: PODTypes.h:31
Default
Default device ID calculation algorithm.
Definition: PODTypes.h:106
eMaxFloatingReached
Reached max users count for floating license.
Definition: PODTypes.h:77
AutoIdWinCloud
Device ID algorithm with auto-detection of the platform, meant for Windows cloud instances.
Definition: PODTypes.h:127
eInvalidLicenseFeatureError
Feature does not exist or wrong feature type.
Definition: PODTypes.h:74
eStdError
C++ standard exception encountered.
Definition: PODTypes.h:51
eLicenseNotFloating
The license is not floating.
Definition: PODTypes.h:78
eApiKeyProductNotAllowed
Provided api key does not allow access to configured product.
Definition: PODTypes.h:92
eLicenseDisabled
License disabled.
Definition: PODTypes.h:56
CloudPlatformsId
Cloud platforms instance ID algorithm.
Definition: PODTypes.h:112
LicenseTypeSubscription
Subscription License type.
Definition: PODTypes.h:30
WinCryptographyId
Alternative device ID algorithm for Windows.
Definition: PODTypes.h:121
eReadOnlyApiKey
Provided api key is read_only.
Definition: PODTypes.h:90
DeviceIDAlgorithm
DeviceIDAlgorithm
Type of Device ID algorithm used by the SDK.
Definition: PODTypes.h:103
eGeneralLSError
General LicenseSpring error.
Definition: PODTypes.h:52
WinCSProductId
Alternative device ID algorithm for Windows.
Definition: PODTypes.h:118
eLicenseInactive
Could not activate license.
Definition: PODTypes.h:57
eVersionError
App version not found on the backend.
Definition: PODTypes.h:61
eNotEnoughConsumptionError
Consumption license or feature run out of resources.
Definition: PODTypes.h:65
eDeviceError
Device from which the call is made is not licensed (Hardware ID mismatch)
Definition: PODTypes.h:60
eInvalidApiKey
Provided api key is not valid.
Definition: PODTypes.h:89
LicenseTypeUnknown
Unknown (invalid) License type.
Definition: PODTypes.h:33
ConsumptionPeriodMonthly
Monthly consumption reset.
Definition: PODTypes.h:42
eLicenseExpired
License Expired.
Definition: PODTypes.h:55
FeatureTypeConsumption
Consumption feature type.
Definition: PODTypes.h:22
LSFeatureType
LSFeatureType
Product feature type.
Definition: PODTypes.h:18
eVMNotAllowed
Running on Virtual machine not allowed.
Definition: PODTypes.h:76
eProductMismatchError
License product code doesn&#39;t correspond to configuration product code.
Definition: PODTypes.h:66
eProductError
Product not found on the backend.
Definition: PODTypes.h:62
eSSOTokenError
Token for SSO is not valid or expired.
Definition: PODTypes.h:84
eBorrowingNotAllowed
License borrowing is not allowed by license policy.
Definition: PODTypes.h:86
eRevokedApiKey
Provided api key is revoked.
Definition: PODTypes.h:91
FeatureTypeActivation
Activation feature type.
Definition: PODTypes.h:21
Gen2
Generation 2 of device ID algorithm for Windows.
Definition: PODTypes.h:109
ConsumptionPeriodNone
No consumption period, consumption reset disabled.
Definition: PODTypes.h:39
eAuthorizationError
Authorization failed.
Definition: PODTypes.h:87
eServerError
Internal server error.
Definition: PODTypes.h:59