| 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
LicenseDepositHandler.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 KeyzyLicenseDepositHandler.h
5 Created: 26 May 2023 12:55:33pm
6 Author: Volkan Ozyilmaz
7
8 ==============================================================================
9*/
10
11#ifndef KEYZY_LICENSE_DEPOSIT_HANDLER_H
12#define KEYZY_LICENSE_DEPOSIT_HANDLER_H
13
18
19#include "KeyzyTypes.h"
20#include <memory>
21
22 namespace Keyzy {
23
24 class KeyzyLicenseProvider;
25
29 class LicenseDepositHandler
30{
31 public:
37 LicenseDepositHandler(std::shared_ptr<KeyzyLicenseProvider> licenseProvider);
38 ~LicenseDepositHandler();
39
59 LicenseStatus registerTrial(LicenseInfo& licenseInfo,
60 const std::string& skuNumber,
61 const std::string& name = std::string(),
62 const std::string& email = std::string());
63
81 LicenseStatus registerOfflineDistributedLicense(const std::string& serialNumber,
82 const std::string& name = std::string(),
83 const std::string& email = std::string());
84
85 private:
86 std::shared_ptr<KeyzyLicenseProvider> _licenseProvider;
87};
88
89}
90
91#endif // KEYZY_LICENSE_DEPOSIT_HANDLER_H
KeyzyTypes.h
Public types for the Keyzy client SDK: LicenseStatus, LicenseType, ProductData, License.
Keyzy::LicenseStatus
LicenseStatus
Definition KeyzyTypes.h:110
Keyzy::LicenseDepositHandler::LicenseDepositHandler
LicenseDepositHandler(std::shared_ptr< KeyzyLicenseProvider > licenseProvider)
Keyzy::LicenseDepositHandler::registerOfflineDistributedLicense
LicenseStatus registerOfflineDistributedLicense(const std::string &serialNumber, const std::string &name=std::string(), const std::string &email=std::string())
Keyzy::LicenseDepositHandler::registerTrial
LicenseStatus registerTrial(LicenseInfo &licenseInfo, const std::string &skuNumber, const std::string &name=std::string(), const std::string &email=std::string())
Keyzy::LicenseInfo
License details filled in by the SDK: SKU, product code, licensee name/email, type,...
Definition KeyzyTypes.h:92