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

Loading...
Searching...
No Matches
KeyzyLicenseActivator.h
1#ifndef KEYZY_LICENSE_ACTIVATOR_H
2#define KEYZY_LICENSE_ACTIVATOR_H
3
4#include "KeyzyLicenseManager.h"
5#include "KeyzyLicenseValidator.h"
6#include "LicenseDepositHandler.h"
7
8 namespace Keyzy
9{
10 class KeyzyLicenseProvider;
11
15 class KeyzyLicenseActivator
16 {
17 // Constructors - Destructors
18 public:
23 KeyzyLicenseActivator(const ProductData& productData);
24 ~KeyzyLicenseActivator();
25
26 // Activations - Deactivations
27 public:
32 LicenseStatus activateOnline(const std::string& serialNumber);
33
37 LicenseStatus deactivateOnline();
38
46 LicenseStatus activateSemiOnline(const std::string& serialNumber);
47
54 LicenseStatus activateSemiOnline();
55
60 LicenseStatus deactivateSemiOnline();
61
69 LicenseStatus activateOffline(const std::string& licenseFilePath);
70
75 bool deactivateOffline();
76
91 LicenseStatus activateClientTrial(const std::tm& endTime);
92
98 bool deactivateClientTrial();
99
100 // Upgrade
101 public:
116 LicenseStatus upgradeLicense(const std::string& targetSerial);
117
131 LicenseStatus upgradeLicense(const std::string& sourceSerial,
132 const std::string& targetSerial);
133
134 std::shared_ptr<KeyzyLicenseValidator> getLicenseValidator();
135 std::shared_ptr<LicenseDepositHandler> getLicenseDepositHandler();
136
137 private:
138 std::shared_ptr<KeyzyLicenseProvider> _licenseProvider;
139 std::unique_ptr<KeyzyLicenseManager> _licenseManager;
140 std::shared_ptr<KeyzyLicenseValidator> _licenseValidator;
141 std::shared_ptr<LicenseDepositHandler> _licenseDepositHandler;
142 };
143} // Keyzy
144
145#endif // KEYZY_LICENSE_ACTIVATOR_H
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
Definition KeyzyTypes.h:26