| 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
9#include "KeyzyLicenseManager.h"
10#include "KeyzyLicenseValidator.h"
11#include "LicenseDepositHandler.h"
12
13 namespace Keyzy
14{
15 class KeyzyLicenseProvider;
16
20 class KeyzyLicenseActivator
21 {
22 // Constructors - Destructors
23 public:
28 KeyzyLicenseActivator(const ProductData& productData);
29 ~KeyzyLicenseActivator();
30
31 // Activations - Deactivations
32 public:
37 LicenseStatus activateOnline(const std::string& serialNumber);
38
42 LicenseStatus deactivateOnline();
43
51 LicenseStatus activateSemiOnline(const std::string& serialNumber);
52
59 LicenseStatus activateSemiOnline();
60
65 LicenseStatus deactivateSemiOnline();
66
74 LicenseStatus activateOffline(const std::string& licenseFilePath);
75
80 bool deactivateOffline();
81
96 LicenseStatus activateClientTrial(const std::tm& endTime);
97
103 bool deactivateClientTrial();
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
KeyzyLicenseManager.h
License management: download/store license files, serial numbers, trials, and upgrades.
KeyzyLicenseValidator.h
License validation (online and offline) and access to license fields (info, SKU, dealer,...
Keyzy::LicenseStatus
LicenseStatus
Definition KeyzyTypes.h:110
LicenseDepositHandler.h
Deposit of offline-distributed (dealer) licenses.
Keyzy::KeyzyLicenseActivator::deactivateSemiOnline
LicenseStatus deactivateSemiOnline()
Keyzy::KeyzyLicenseActivator::upgradeLicense
LicenseStatus upgradeLicense(const std::string &targetSerial)
Keyzy::KeyzyLicenseActivator::deactivateClientTrial
bool deactivateClientTrial()
Keyzy::KeyzyLicenseActivator::deactivateOnline
LicenseStatus deactivateOnline()
Keyzy::KeyzyLicenseActivator::activateClientTrial
LicenseStatus activateClientTrial(const std::tm &endTime)
Keyzy::KeyzyLicenseActivator::activateOffline
LicenseStatus activateOffline(const std::string &licenseFilePath)
Keyzy::KeyzyLicenseActivator::activateSemiOnline
LicenseStatus activateSemiOnline()
Keyzy::KeyzyLicenseActivator::upgradeLicense
LicenseStatus upgradeLicense(const std::string &sourceSerial, const std::string &targetSerial)
Keyzy::KeyzyLicenseActivator::KeyzyLicenseActivator
KeyzyLicenseActivator(const ProductData &productData)
Keyzy::KeyzyLicenseActivator::activateOnline
LicenseStatus activateOnline(const std::string &serialNumber)
Keyzy::KeyzyLicenseActivator::activateSemiOnline
LicenseStatus activateSemiOnline(const std::string &serialNumber)
Keyzy::KeyzyLicenseActivator::deactivateOffline
bool deactivateOffline()
Keyzy::ProductData
Your product's identity and credentials — construct one and pass it to KeyzyLicenseActivator to authe...
Definition KeyzyTypes.h:32