1 #ifndef LS_LICENSE_MANAGER_H
2 #define LS_LICENSE_MANAGER_H
6 #pragma warning( push )
7 #pragma warning( disable : 4251 )
20 using ptr_t = std::shared_ptr<LicenseManager>;
67 LicenseID getTrialLicense(
const std::string& userEmail );
80 std::string getSSOUrl(
const std::string& accountCode = std::string(),
bool useAuthCode =
true );
86 std::string getAirGapActivationCode(
const std::string& initializationCode,
const std::string& licenseKey );
97 const License::ptr_t activateAirGapLicense(
const std::string& confirmationCode,
const std::wstring& policyPath,
const std::string& licenseKey, uint32_t policyId );
136 const License::ptr_t activateLicense(
const std::string& authData,
const std::string& accountCode = std::string(),
137 bool useAuthCode =
true );
147 const License::ptr_t activateLicenseOffline(
const std::wstring& activationResponseFile = std::wstring() );
170 bool changePassword(
const std::string& user,
const std::string& password,
const std::string& newPassword );
183 std::vector<std::string> getVersionList(
const LicenseID& licenseID,
200 const std::string& version = std::string(),
207 std::wstring createOfflineActivationFile(
const LicenseID& licenseID,
208 const std::wstring& activationRequestFile = std::wstring() );
217 bool isOnline(
bool throwExceptions =
false )
const;
229 std::vector<LicenseUser::ptr_t> getLicenseUsers(
const Customer& customer );
235 std::vector<LicenseUser::ptr_t> getLicenseUsers(
const std::string& customerEmail );
241 #pragma warning( pop )
244 #endif // LS_LICENSE_MANAGER_H