1 #ifndef LS_LICENSE_ID_H 2 #define LS_LICENSE_ID_H 7 #pragma warning(disable : 4251) 42 const std::string &id()
const;
47 const std::string &key()
const;
52 const std::string &user()
const;
57 const std::string &password()
const;
63 uint64_t serverId()
const;
67 void setPassword(
const std::string &password);
80 static LicenseID fromKey(
const std::string &licenseKey,
bool needTrim =
true);
88 static LicenseID fromKey(
const char *licenseKey);
99 const std::string &user,
const std::string &password = std::string(),
bool needTrim =
true);
108 static LicenseID fromUser(
const char *user,
const char *password =
nullptr);
119 static LicenseID fromUser(
const std::string &user, uint64_t serverId,
120 const std::string &password = std::string(),
bool needTrim =
true);
130 static LicenseID fromUser(
const char *user, uint64_t serverId,
const char *password =
nullptr);
135 std::string m_password;
144 #endif // LS_LICENSE_ID_H
Class that represents License identifier.