KEYZY C++ Client Library 1.9.0
To develop software that is compiled with a C++ compiler and utilizes the KEYZY service (www.keyzy.io)
Loading...
Searching...
No Matches
KeyzyLicenseActivator.h
Go to the documentation of this file.
1#ifndef KEYZY_LICENSE_ACTIVATOR_H
2#define KEYZY_LICENSE_ACTIVATOR_H
3
8
12
13namespace Keyzy
14{
15 class KeyzyLicenseProvider;
16
21 {
22 // Constructors - Destructors
23 public:
30
31 // Activations - Deactivations
32 public:
37 LicenseStatus activateOnline(const std::string& serialNumber);
38
43
51 LicenseStatus activateSemiOnline(const std::string& serialNumber);
52
60
66
74 LicenseStatus activateOffline(const std::string& licenseFilePath);
75
81
96 LicenseStatus activateClientTrial(const std::tm& endTime);
97
104
105 // Upgrade
106 public:
121 LicenseStatus upgradeLicense(const std::string& targetSerial);
122
136 LicenseStatus upgradeLicense(const std::string& sourceSerial,
137 const std::string& targetSerial);
138
139 std::shared_ptr<KeyzyLicenseValidator> getLicenseValidator();
140 std::shared_ptr<LicenseDepositHandler> getLicenseDepositHandler();
141
142 private:
143 std::shared_ptr<KeyzyLicenseProvider> _licenseProvider;
144 std::unique_ptr<KeyzyLicenseManager> _licenseManager;
145 std::shared_ptr<KeyzyLicenseValidator> _licenseValidator;
146 std::shared_ptr<LicenseDepositHandler> _licenseDepositHandler;
147 };
148} // Keyzy
149
150#endif // KEYZY_LICENSE_ACTIVATOR_H
License management: download/store license files, serial numbers, trials, and upgrades.
License validation (online and offline) and access to license fields (info, SKU, dealer,...
LicenseStatus
Definition KeyzyTypes.h:110
Deposit of offline-distributed (dealer) licenses.
LicenseStatus deactivateSemiOnline()
LicenseStatus upgradeLicense(const std::string &targetSerial)
LicenseStatus deactivateOnline()
LicenseStatus activateClientTrial(const std::tm &endTime)
LicenseStatus activateOffline(const std::string &licenseFilePath)
LicenseStatus activateSemiOnline()
LicenseStatus upgradeLicense(const std::string &sourceSerial, const std::string &targetSerial)
KeyzyLicenseActivator(const ProductData &productData)
LicenseStatus activateOnline(const std::string &serialNumber)
LicenseStatus activateSemiOnline(const std::string &serialNumber)
Your product's identity and credentials — construct one and pass it to KeyzyLicenseActivator to authe...
Definition KeyzyTypes.h:32