1 #ifndef LS_EXTENDED_OPTIONS_H 2 #define LS_EXTENDED_OPTIONS_H 7 #pragma warning(disable : 4251) 31 void setIp(
const std::string &ip);
35 const std::string &ip()
const;
39 void setMac(
const std::string &mac);
43 const std::string &mac()
const;
47 void setHostName(
const std::string &hostName);
51 const std::string &hostName()
const;
54 std::string m_localIP;
55 std::string m_hostName;
56 std::string m_macAddress;
70 ProxySettings(
const std::string &proxy,
const std::string &user,
const std::string &password);
85 bool fetchProxySettings(
const std::string &serviceURL,
const std::string &credentialTarget,
86 bool throwExceptions =
false);
90 void setProxyUri(
const std::string &uri);
94 const std::string &getProxyUri()
const;
98 void setUser(
const std::string &user);
102 const std::string &getUser()
const;
106 void setPassword(
const std::string &password);
110 const std::string &getPassword()
const;
114 bool isValid()
const;
117 std::string m_proxyUri;
119 std::string m_password;
137 ExtendedOptions(
const std::wstring &licenseFilePath,
const std::string &hardwareID,
147 void setLicenseFilePath(
const std::wstring &filePath);
152 const std::wstring &getLicenseFilePath()
const;
156 void setHardwareID(
const std::string &ID);
160 const std::string &getHardwareID()
const;
176 void collectNetworkInfo(
bool collect);
180 bool isCollectNetworkInfoEnabled()
const;
189 void enableLogging(
bool enable);
193 bool isLoggingEnabled()
const;
199 void enableGuardFile(
bool enable);
203 bool isGuardFileEnabled()
const;
209 void enableVMDetection(
bool enable);
213 bool isVMDetectionEnabled()
const;
220 void enableSSLCheck(
bool enable);
224 bool isSSLCheckEnabled()
const;
232 void setUseNativeTLS(
bool value);
237 bool isNativeTLSEnabled()
const;
244 void enableLicenseCorruptionCheck(
bool enable);
249 bool isLicenseCorruptionCheckEnabled()
const;
256 void setGracePeriod(uint32_t value);
260 uint32_t getGracePeriod()
const;
265 void setNetworkTimeout(
long timeout);
269 long getNetworkTimeout()
const;
274 void setConnectTimeout(
long timeout);
278 long getConnectTimeout()
const;
291 void overrideNetworkInfo(
const NetworkInfo &networkInfo);
311 void setAlternateServiceURL(
const std::string &URL);
315 const std::string &getAlternateServiceURL()
const;
322 void setAlternateKey(
const std::string &key);
327 void setAlternateKey(
const std::vector<int32_t> &key);
333 void setAlternateKey(
const int32_t *key, std::size_t size);
337 const std::string &getAlternateKey()
const;
340 std::wstring m_licenseFilePath;
341 std::string m_hardwareID;
342 std::string m_serviceURL;
344 bool m_collectNetworkInfo;
345 bool m_enableVMDetection;
346 bool m_enableGuardFile;
347 bool m_enableSSLCheck;
349 bool m_enableLicenseCorruptionCheck;
350 uint32_t m_gracePeriod;
351 long m_networkTimeout;
352 long m_connectTimeout;
365 #endif // LS_EXTENDED_OPTIONS_H Class for storing a device's network information.
std::shared_ptr< CryptoProvider > ptr_t
Class for storing useful settings that the Configuration object will inherit.
DeviceIDAlgorithm
Type of Device ID algorithm used by the SDK.
Class for storing settings when using a proxy server.