1 #ifndef LS_LICENSE_MANAGER_H
2 #define LS_LICENSE_MANAGER_H
6 #pragma warning( push )
7 #pragma warning( disable : 4251 )
12 namespace LicenseSpring
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
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.