Cryptolens Client API for C++
LicenseKeyChecker.hpp
1 #pragma once
2 
3 #include "LicenseKeyInformation.hpp"
4 
5 namespace cryptolens_io {
6 
7 namespace v20190401 {
8 
9 class LicenseKeyInformation;
10 
12  bool status_;
13  LicenseKeyInformation const* key_;
14 
15 public:
16 #ifndef CRYPTOLENS_20190701_ALLOW_IMPLICIT_CONSTRUCTORS
17  explicit
18 #endif
19  LicenseKeyChecker(LicenseKeyInformation const* license_key);
20 
21  explicit operator bool() const;
22 
23  LicenseKeyChecker& has_feature(int feature);
24  LicenseKeyChecker& has_not_feature(int feature);
25  LicenseKeyChecker& has_expired(std::uint64_t now);
26  LicenseKeyChecker& has_not_expired(std::uint64_t now);
29  LicenseKeyChecker& is_on_right_machine(std::string const& machine_code);
30 };
31 
32 } // namespace v20190401
33 
34 namespace v20180502 {
35 
37 
38 } // namespace v20180502
39 
40 namespace latest {
41 
43 
44 } // namespace latest
45 
46 } // namespace cryptolens_io
LicenseKeyChecker & has_expired(std::uint64_t now)
Definition: LicenseKeyChecker.cpp:137
LicenseKeyChecker & is_on_right_machine(std::string const &machine_code)
Definition: LicenseKeyChecker.cpp:188
LicenseKeyChecker & has_not_feature(int feature)
Definition: LicenseKeyChecker.cpp:87
Definition: ActivateError.hpp:5
Definition: LicenseKeyChecker.hpp:11
LicenseKeyChecker & has_feature(int feature)
Definition: LicenseKeyChecker.cpp:38
LicenseKeyChecker & has_not_expired(std::uint64_t now)
Definition: LicenseKeyChecker.cpp:152
LicenseKeyChecker & is_blocked()
Definition: LicenseKeyChecker.cpp:165
LicenseKeyChecker & is_not_blocked()
Definition: LicenseKeyChecker.cpp:176
LicenseKeyChecker(LicenseKeyInformation const *license_key)
Definition: LicenseKeyChecker.cpp:18
Definition: LicenseKeyInformation.hpp:34