KEYZY C++ Client Library 1.10.2
To develop software that is compiled with a C++ compiler and utilizes the KEYZY service (www.keyzy.io)
Loading...
Searching...
No Matches
KeyzyLicenseValidator.h
Go to the documentation of this file.
1#ifndef KEYZY_LICENSE_VALIDATOR_H
2#define KEYZY_LICENSE_VALIDATOR_H
3
8
9#include "KeyzyTypes.h"
10
11namespace vk
12{
13 class AuthSys2;
14}
15
16namespace Keyzy
17{
18 class KeyzyLicenseProvider;
19
24 {
25 public:
31 KeyzyLicenseValidator(std::shared_ptr<KeyzyLicenseProvider> licenseProvider);
33
41
49
66 [[deprecated("Client-only trials have no server-side protection; use LicenseDepositHandler::registerTrial() instead")]]
68
77 [[deprecated("Client-only trials are deprecated; use getDaysLeft() with server-side trials instead")]]
78 unsigned long long getDaysToExpireTrial();
79
84 std::string getHostIdHash();
85
90 std::string getHostIdHashLegacy();
91
96 std::string getLicenseeName();
97
102 std::string getLicenseeEmail();
103
108 std::string getVersion();
109
114 std::string getSku();
115
120 std::string getLicenseType();
121
127
134 std::int64_t getStartTime();
135
144 std::int64_t getEndTime();
145
156 std::uint64_t getDaysLeft();
157
167 std::uint64_t getDaysTotal();
168
175 std::string getInfo();
176
184 std::string getDealerName();
185
186 private:
187 std::shared_ptr<KeyzyLicenseProvider> _licenseProvider;
188 std::unique_ptr<vk::AuthSys2> _AuthSys;
189 std::string _licenseeName;
190 std::string _licenseeEmail;
191 std::string _versionCode;
192 std::string _sku;
193 std::string _licenseType;
194 std::int64_t _startTime;
195 std::int64_t _endTime; //*!< If the license type is perpetual, it represents offline_license_life. If Offline License Life is set to 0 on KEYZY dashboard, it returns 315522000 as default value */
196 std::string _info;
197 std::string _dealerName;
198 };
199} // Keyzy
200
201#endif // KEYZY_LICENSE_VALIDATOR_H
Public types for the Keyzy client SDK: LicenseStatus, LicenseType, ProductData, License.
LicenseType
Definition KeyzyTypes.h:265
LicenseStatus
Definition KeyzyTypes.h:200
std::uint64_t getDaysTotal()
LicenseStatus validateOnline() noexcept
LicenseStatus validateOffline() noexcept
LicenseType getLicenseTypeEnum()
unsigned long long getDaysToExpireTrial()
LicenseStatus validateTrialLicense() noexcept
KeyzyLicenseValidator(std::shared_ptr< KeyzyLicenseProvider > licenseProvider)
std::string getHostIdHashLegacy()