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;
140 static std::vector<std::string> ListAvailableKeys();
145 void setTargetSerial(
const std::string &serial);
149 const std::string &getTargetSerial()
const;
153 void setPin(
const std::string &pin);
157 const std::string &getPin()
const;
160 std::string m_targetSerial;
179 ExtendedOptions(
const std::wstring &licenseFilePath,
const std::string &hardwareID,
189 void setLicenseFilePath(
const std::wstring &filePath);
194 const std::wstring &getLicenseFilePath()
const;
198 void setHardwareID(
const std::string &ID);
202 const std::string &getHardwareID()
const;
218 void collectNetworkInfo(
bool collect);
222 bool isCollectNetworkInfoEnabled()
const;
231 void enableLogging(
bool enable);
235 bool isLoggingEnabled()
const;
241 void enableGuardFile(
bool enable);
245 bool isGuardFileEnabled()
const;
251 void enableVMDetection(
bool enable);
255 bool isVMDetectionEnabled()
const;
262 void enableSSLCheck(
bool enable);
266 bool isSSLCheckEnabled()
const;
274 void setUseNativeTLS(
bool value);
279 bool isNativeTLSEnabled()
const;
286 void enableLicenseCorruptionCheck(
bool enable);
291 bool isLicenseCorruptionCheckEnabled()
const;
297 void enableHardwareKey(
bool enable);
302 bool isHardwareKeyEnabled()
const;
309 void setGracePeriod(uint32_t value);
313 uint32_t getGracePeriod()
const;
318 void setNetworkTimeout(
long timeout);
322 long getNetworkTimeout()
const;
327 void setConnectTimeout(
long timeout);
331 long getConnectTimeout()
const;
344 void overrideNetworkInfo(
const NetworkInfo &networkInfo);
364 void setAlternateServiceURL(
const std::string &URL);
368 const std::string &getAlternateServiceURL()
const;
375 void setAlternateKey(
const std::string &key);
380 void setAlternateKey(
const std::vector<int32_t> &key);
386 void setAlternateKey(
const int32_t *key, std::size_t size);
390 const std::string &getAlternateKey()
const;
403 std::wstring m_licenseFilePath;
404 std::string m_hardwareID;
405 std::string m_serviceURL;
407 bool m_collectNetworkInfo;
408 bool m_enableVMDetection;
409 bool m_enableGuardFile;
410 bool m_enableSSLCheck;
412 bool m_enableLicenseCorruptionCheck;
413 bool m_enableHardwareKey;
414 uint32_t m_gracePeriod;
415 long m_networkTimeout;
416 long m_connectTimeout;
430 #endif // LS_EXTENDED_OPTIONS_H