1 #ifndef LS_EXTENDED_OPTIONS_H 2 #define LS_EXTENDED_OPTIONS_H 6 #pragma warning( push ) 7 #pragma warning( disable : 4251 ) 30 void setIp(
const std::string& ip );
34 const std::string& ip()
const;
38 void setMac(
const std::string& mac );
42 const std::string& mac()
const;
46 void setHostName(
const std::string& hostName );
50 const std::string& hostName()
const;
53 std::string m_localIP;
54 std::string m_hostName;
55 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,
bool throwExceptions =
false );
89 void setProxyUri(
const std::string& uri );
93 const std::string& getProxyUri()
const;
97 void setUser(
const std::string& user );
101 const std::string& getUser()
const;
105 void setPassword(
const std::string& password );
109 const std::string& getPassword()
const;
113 bool isValid()
const;
116 std::string m_proxyUri;
118 std::string m_password;
138 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;
175 void collectNetworkInfo(
bool collect );
179 bool isCollectNetworkInfoEnabled()
const;
187 void enableLogging(
bool enable );
191 bool isLoggingEnabled()
const;
197 void enableGuardFile(
bool enable );
201 bool isGuardFileEnabled()
const;
207 void enableVMDetection(
bool enable );
211 bool isVMDetectionEnabled()
const;
217 void enableSSLCheck(
bool enable );
221 bool isSSLCheckEnabled()
const;
229 void setUseNativeTLS(
bool value );
234 bool isNativeTLSEnabled()
const;
240 void enableLicenseCorruptionCheck(
bool enable );
245 bool isLicenseCorruptionCheckEnabled()
const;
251 void setGracePeriod( uint32_t value );
255 uint32_t getGracePeriod()
const;
260 void setNetworkTimeout(
long timeout );
264 long getNetworkTimeout()
const;
269 void setConnectTimeout(
long timeout );
273 long getConnectTimeout()
const;
286 void overrideNetworkInfo(
const NetworkInfo& networkInfo );
305 void setAlternateServiceURL(
const std::string& URL );
309 const std::string& getAlternateServiceURL()
const;
314 void setAlternateKey(
const std::string& key );
319 void setAlternateKey(
const std::vector<int32_t>& key );
325 void setAlternateKey(
const int32_t* key, std::size_t size );
329 const std::string& getAlternateKey()
const;
332 std::wstring m_licenseFilePath;
333 std::string m_hardwareID;
334 std::string m_serviceURL;
336 bool m_collectNetworkInfo;
337 bool m_enableVMDetection;
338 bool m_enableGuardFile;
339 bool m_enableSSLCheck;
341 bool m_enableLicenseCorruptionCheck;
342 uint32_t m_gracePeriod;
343 long m_networkTimeout;
344 long m_connectTimeout;
354 #pragma warning( pop ) 357 #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.
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...