| KEYZY C++ Client Library 1.7.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
1#ifndef KEYZY_LICENSE_MANAGER_H
2#define KEYZY_LICENSE_MANAGER_H
3
4#include "KeyzyTypes.h"
5#include <memory>
6
7 namespace Keyzy
8{
9 class KeyzyLicenseProvider;
10
14 class KeyzyLicenseManager
15 {
16 public:
22 KeyzyLicenseManager(std::shared_ptr<KeyzyLicenseProvider> licenseProvider);
23 ~KeyzyLicenseManager();
24
31 bool setSerialNumber(const std::string& serial_number);
32
39 bool setLicenseFile(const std::string& license_file_path);
40
46 LicenseStatus downloadLicenseFile() noexcept;
47
54 LicenseStatus downloadLicenseFile(const std::string& serial_number) noexcept;
55
62 LicenseStatus upgradeLicense(const std::string& source_serial,
63 const std::string& target_serial) noexcept;
64
71 bool setTrialLicense(std::tm dueDate);
72
77 bool deleteSerialNumber();
78
83 bool deleteLicenseFile();
84
89 bool deleteTrialLicense();
90
91 private:
92 std::shared_ptr<KeyzyLicenseProvider> _licenseProvider;
93 };
94} // Keyzy
95
96#endif // KEYZY_LICENSE_MANAGER_H
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()