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>;
69 LicenseID getTrialLicense(
const std::string& userEmail );
83 std::string getSSOUrl(
const std::string& accountCode = std::string(),
bool useAuthCode =
true );
89 std::string getAirGapActivationCode(
const std::string& initializationCode,
const std::string& licenseKey );
100 const License::ptr_t activateAirGapLicense(
const std::string& confirmationCode,
const std::wstring& policyPath,
const std::string& licenseKey, uint32_t policyId );
139 const std::vector<DeviceVariable>& deviceVariables );
161 const License::ptr_t activateLicense(
const std::string& authData,
const std::string& accountCode = std::string(),
162 bool useAuthCode =
true );
172 const License::ptr_t activateLicenseOffline(
const std::wstring& activationResponseFile = std::wstring() );
197 bool changePassword(
const std::string& user,
const std::string& password,
const std::string& newPassword );
211 std::vector<std::string> getVersionList(
const LicenseID& licenseID,
229 const std::string& version = std::string(),
237 std::wstring createOfflineActivationFile(
const LicenseID& licenseID,
238 const std::wstring& activationRequestFile = std::wstring() );
246 std::wstring createOfflineActivationFile(
const LicenseID& licenseID,
247 const std::vector<DeviceVariable>& deviceVariables,
248 const std::wstring& activationRequestFile = std::wstring() );
257 bool isOnline(
bool throwExceptions =
false )
const;
270 std::vector<LicenseUser::ptr_t> getLicenseUsers(
const Customer& customer );
276 std::vector<LicenseUser::ptr_t> getLicenseUsers(
const std::string& customerEmail );
282 std::vector<UserLicensesData::ptr_t> getUserLicenses(
const std::string& username,
const std::string& password );
288 #pragma warning( pop ) 291 #endif // LS_LICENSE_MANAGER_H
std::shared_ptr< Configuration > ptr_t
std::shared_ptr< LicenseStorage > ptr_t
Base class for license management.
Class that encapsulates information about a customer.
std::shared_ptr< License > ptr_t
std::shared_ptr< LicenseManager > ptr_t
DeviceIDAlgorithm
Type of Device ID algorithm used by the SDK.
std::shared_ptr< Customer > ptr_t
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Class that represents License identifier.
Class for performing basic requests to LicenseSpring backend and managing licenses.
std::shared_ptr< InstallationFile > ptr_t
Helper struct for filtering installation files by environment and channel.