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
12namespace Keyzy
13{
14 class KeyzyLicenseProvider;
15
20 {
21 public:
27 KeyzyLicenseManager(std::shared_ptr<KeyzyLicenseProvider> licenseProvider);
29
36 bool setSerialNumber(const std::string& serial_number);
37
44 bool setLicenseFile(const std::string& license_file_path);
45
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
83
89
95
96 private:
97 std::shared_ptr<KeyzyLicenseProvider> _licenseProvider;
98 };
99} // Keyzy
100
101#endif // KEYZY_LICENSE_MANAGER_H
Public types for the Keyzy client SDK: LicenseStatus, LicenseType, ProductData, License.
LicenseStatus
Definition KeyzyTypes.h:110
KeyzyLicenseManager(std::shared_ptr< KeyzyLicenseProvider > licenseProvider)
bool setTrialLicense(std::tm dueDate)
Set trial license.
bool setSerialNumber(const std::string &serial_number)
bool setLicenseFile(const std::string &license_file_path)
LicenseStatus downloadLicenseFile() noexcept
LicenseStatus upgradeLicense(const std::string &source_serial, const std::string &target_serial) noexcept