1 #ifndef LS_LICENSE_ID_H 2 #define LS_LICENSE_ID_H 6 #pragma warning( push ) 7 #pragma warning( disable : 4251 ) 39 const std::string& id()
const;
43 const std::string& key()
const;
47 const std::string& user()
const;
52 const std::string& password()
const;
57 uint64_t serverId()
const;
61 void setPassword(
const std::string& password );
72 static LicenseID fromKey(
const std::string& licenseKey,
bool needTrim =
true );
79 static LicenseID fromKey(
const char* licenseKey );
88 static LicenseID fromUser(
const std::string& user,
const std::string& password = std::string(),
89 bool needTrim =
true);
97 static LicenseID fromUser(
const char* user,
const char* password =
nullptr );
107 static LicenseID fromUser(
const std::string& user, uint64_t serverId,
108 const std::string& password = std::string(),
bool needTrim =
true);
117 static LicenseID fromUser(
const char* user, uint64_t serverId,
const char* password =
nullptr );
122 std::string m_password;
128 #pragma warning( pop ) 131 #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.