1 #ifndef LS_USER_LICENSE_H 2 #define LS_USER_LICENSE_H 6 #pragma warning( push ) 7 #pragma warning( disable : 4251 ) 24 using ptr_t = std::shared_ptr<UserLicense>;
31 bool isActive()
const;
35 bool isEnabled()
const;
43 bool isUnlimitedActivationsAllowed()
const;
47 bool isOveragesAllowed()
const;
51 bool isFloating()
const;
56 bool isVMAllowed()
const;
60 bool isHardwareKeyAuth()
const;
64 bool isAirGapped()
const;
68 uint32_t maxLicenseUsers()
const;
72 int32_t maxActivations()
const;
76 uint32_t timesActivated()
const;
80 uint32_t transferCount()
const;
84 int32_t transferLimit()
const;
88 uint32_t maxOverages()
const;
92 uint32_t floatingTimeout()
const;
97 uint32_t maxBorrowTime()
const;
101 uint32_t gracePeriod()
const;
105 uint64_t serverId()
const;
109 const std::string& orderStoreId()
const;
114 const std::string& startDate()
const;
118 const std::string& metadata()
const;
134 std::vector<CustomField> customFields()
const;
138 std::vector<LicenseFeature> features()
const;
142 tm validityPeriod()
const;
146 tm maintenancePeriod()
const;
150 static UserLicense fromJsonString(
const std::string& jsonString );
156 bool m_allowUnlimitedActivations;
157 bool m_allowOverages;
159 bool m_isOfflineFloating;
161 bool m_isHardwareKeyAuth;
163 uint32_t m_maxLicenseUsers;
164 int32_t m_maxActivations;
165 uint32_t m_timesActivated;
166 uint32_t m_transferCount;
167 int32_t m_transferLimit;
168 uint32_t m_maxOverages;
169 uint32_t m_floatingTimeout;
170 uint32_t m_maxBorrowTime;
171 uint32_t m_gracePeriod;
173 std::string m_orderStoreId;
174 std::string m_startDate;
175 std::string m_metadata;
177 tm m_maintenancePeriod;
182 std::vector<CustomField> m_customFields;
183 std::vector<LicenseFeature> m_features;
188 #pragma warning( pop ) 191 #endif //LS_USER_LICENSE_H
std::shared_ptr< UserLicense > ptr_t
Class used for encapsulating the type of license, comparing types of licenses, and converting them to...
Class that encapsulates information about a customer.
Contains information about a user-based license for a given user.
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Class that encapsulates information about a product.