| 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
KeyzyLicenseManager.h
Go to the documentation of this file.
1#ifndef KEYZY_LICENSE_MANAGER_H
2#define KEYZY_LICENSE_MANAGER_H
3
8
9#include "KeyzyTypes.h"
10#include <memory>
11
12 namespace Keyzy
13{
14 class KeyzyLicenseProvider;
15
19 class KeyzyLicenseManager
20 {
21 public:
27 KeyzyLicenseManager(std::shared_ptr<KeyzyLicenseProvider> licenseProvider);
28 ~KeyzyLicenseManager();
29
36 bool setSerialNumber(const std::string& serial_number);
37
44 bool setLicenseFile(const std::string& license_file_path);
45
51 LicenseStatus downloadLicenseFile() noexcept;
52
59 LicenseStatus downloadLicenseFile(const std::string& serial_number) noexcept;
60
67 LicenseStatus upgradeLicense(const std::string& source_serial,
68 const std::string& target_serial) noexcept;
69
76 bool setTrialLicense(std::tm dueDate);
77
82 bool deleteSerialNumber();
83
88 bool deleteLicenseFile();
89
94 bool deleteTrialLicense();
95
96 private:
97 std::shared_ptr<KeyzyLicenseProvider> _licenseProvider;
98 };
99} // Keyzy
100
101#endif // KEYZY_LICENSE_MANAGER_H
KeyzyTypes.h
Public types for the Keyzy client SDK: LicenseStatus, LicenseType, ProductData, License.
Keyzy::LicenseStatus
LicenseStatus
Definition KeyzyTypes.h:110
Keyzy::KeyzyLicenseManager::deleteSerialNumber
bool deleteSerialNumber()
Keyzy::KeyzyLicenseManager::KeyzyLicenseManager
KeyzyLicenseManager(std::shared_ptr< KeyzyLicenseProvider > licenseProvider)
Keyzy::KeyzyLicenseManager::setTrialLicense
bool setTrialLicense(std::tm dueDate)
Set trial license.
Keyzy::KeyzyLicenseManager::setSerialNumber
bool setSerialNumber(const std::string &serial_number)
Keyzy::KeyzyLicenseManager::setLicenseFile
bool setLicenseFile(const std::string &license_file_path)
Keyzy::KeyzyLicenseManager::downloadLicenseFile
LicenseStatus downloadLicenseFile() noexcept
Keyzy::KeyzyLicenseManager::deleteTrialLicense
bool deleteTrialLicense()
Keyzy::KeyzyLicenseManager::upgradeLicense
LicenseStatus upgradeLicense(const std::string &source_serial, const std::string &target_serial) noexcept
Keyzy::KeyzyLicenseManager::deleteLicenseFile
bool deleteLicenseFile()