| KEYZY C++ Client Library 1.7.0 To develop software that is compiled with a C++ compiler and utilizes the KEYZY service (www.keyzy.io)

Loading...
Searching...
No Matches
KeyzyTypes.h
1#ifndef KEYZY_TYPES_H
2#define KEYZY_TYPES_H
3
4#include <string>
5#include <ctime>
6
7 namespace Keyzy
8{
25 struct ProductData
26 {
27 ProductData() : _useHostIdInOffilneActivation(true) {}
28
29 ProductData(std::string appId, std::string apiKey, std::string productCode,
30 std::string cryptionKey, bool useHostIdInOfflineActivation = true)
31 : _appId(appId)
32 , _apiKey(apiKey)
33 , _productCode(productCode)
34 , _cryptionKey(cryptionKey)
35 , _useHostIdInOffilneActivation(useHostIdInOfflineActivation) {}
36
37 std::string _appId;
38 std::string _apiKey;
39 std::string _productCode;
40 std::string _cryptionKey;
41 bool _useHostIdInOffilneActivation;
42 };
43
84 struct LicenseInfo
85 {
86 std::string _skuNumber;
87 std::string _productCode;
88 std::string _licenseeName;
89 std::string _licenseeEmail;
90 std::string _versionCode;
91 std::string _licenseType;
92 std::int64_t _startTime = 315522000;
93 std::int64_t _endTime = 315522000;
94 std::string _info;
95 std::string _serialNumber;
96 };
97
102 enum class LicenseStatus
103 {
104 VALID,
105 EXPIRED,
106 INVALID,
107 NOT_AUTHORIZED, // Server
108 SERIAL_INVALID, // Server
109 PRODUCT_NOT_EXIST, // Server
110 PRODUCT_NOT_EXIST_FOR_USER, // Server
111 PRODUCT_NOT_ACTIVE, // Server
112 SKU_NOT_EXIST, // Server
113 SKU_NOT_ACTIVE, // Server
114 REACHED_MAX_NUMBER_OF_HOST, // Server
115 PRODUCT_NOT_EXIST_FOR_SKU, // Server
116 ACTIVATION_DEACTIVATED, // Server
117 SUBSCRIPTION_LICENSE_EXPIRED, // Server
118 SUBSCRIPTION_LICENSE_NOT_STARTED, // Server
119 TRIAL_LICENSE_EXPIRED, // Server
120 TRIAL_LICENSE_NOT_STARTED, // Server
121 CANNOT_KEEP_SERIAL, // Client Online Activation
122 CANNOT_KEEP_LICENSE_FILE, // Client Offline Activation
123 ACTIVATION_DELETED, // Server
124 CLIENT_SERIAL_DOES_NOT_EXIST, // Client
125 CONNECTION_ERROR, // Network or Firewall error. Internet connection is intermittent Or Firewall On. Client
126 TOO_MANY_REQUESTS, // The client sends too many requests. Server
127 NO_ACTIVE_SUBSCRIPTION, // The account holder has a subscription issue in KEYZY
128 CURRENT_LICENSE_DOES_NOT_EXIST, // Server - Upgrade license
129 UPGRADE_LICENSE_DOES_NOT_EXIST, // Server - Upgrade license
130 UPGRADE_LICENSE_DOES_NOT_MATCH, // Server - Upgrade license
131 ANOTHER_TRIAL_LICENSE_ALREADY_ACTIVATED, // Server
132 SKU_NUMBER_VALIDATION, // Server
133 PRODUCT_CODE_VALIDATION, // Server
134 NAME_VALIDATION, // Server
135 EMAIL_VALIDATION, // Server
136 NO_FREE_LICENSES, // Server
137 NAME_OR_EMAIL_VALIDATION, // Server - Register Offline Distributed License
138 LICENSE_NOT_EXIST_NOT_ASSIGNED_DEALER_ALREADY_DEPOSITED // Server - Register Offline Distributed License
139 };
140
144 enum class LicenseType
145 {
146 NOTYPE,
147 PERPETUAL,
148 TRIAL,
149 SUBSCRIPTION
150 };
151
152}; // Keyzy
153
154#endif // KEYZY_TYPES_H
Keyzy::LicenseInfo
Definition KeyzyTypes.h:85
Keyzy::LicenseInfo::_skuNumber
std::string _skuNumber
Definition KeyzyTypes.h:86
Keyzy::LicenseInfo::_versionCode
std::string _versionCode
Definition KeyzyTypes.h:90
Keyzy::LicenseInfo::_licenseeEmail
std::string _licenseeEmail
Definition KeyzyTypes.h:89
Keyzy::LicenseInfo::_info
std::string _info
Definition KeyzyTypes.h:94
Keyzy::LicenseInfo::_licenseType
std::string _licenseType
Definition KeyzyTypes.h:91
Keyzy::LicenseInfo::_productCode
std::string _productCode
Definition KeyzyTypes.h:87
Keyzy::LicenseInfo::_endTime
std::int64_t _endTime
Definition KeyzyTypes.h:93
Keyzy::LicenseInfo::_serialNumber
std::string _serialNumber
Definition KeyzyTypes.h:95
Keyzy::LicenseInfo::_licenseeName
std::string _licenseeName
Definition KeyzyTypes.h:88
Keyzy::LicenseInfo::_startTime
std::int64_t _startTime
Definition KeyzyTypes.h:92
Keyzy::ProductData::_apiKey
std::string _apiKey
Definition KeyzyTypes.h:38
Keyzy::ProductData::_appId
std::string _appId
Definition KeyzyTypes.h:37
Keyzy::ProductData::_productCode
std::string _productCode
Definition KeyzyTypes.h:39
Keyzy::ProductData::_cryptionKey
std::string _cryptionKey
Definition KeyzyTypes.h:40
Keyzy::ProductData::_useHostIdInOffilneActivation
bool _useHostIdInOffilneActivation
Definition KeyzyTypes.h:41