1 #ifndef LS_LICENSE_ID_H
2 #define LS_LICENSE_ID_H
6 #pragma warning( push )
7 #pragma warning( disable : 4251 )
13 namespace LicenseSpring
39 const std::string& id()
const;
43 const std::string& key()
const;
47 const std::string& user()
const;
52 const std::string& password()
const;
56 void setPassword(
const std::string& password );
67 static LicenseID fromKey(
const std::string& licenseKey,
bool needTrim =
true );
74 static LicenseID fromKey(
const char* licenseKey );
83 static LicenseID fromUser(
const std::string& user,
const std::string& password = std::string(),
84 bool needTrim =
true );
92 static LicenseID fromUser(
const char* user,
const char* password =
nullptr );
97 std::string m_password;
102 #pragma warning( pop )
105 #endif // LS_LICENSE_ID_H
#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.