1 #ifndef LS_EXTENDED_OPTIONS_H
2 #define LS_EXTENDED_OPTIONS_H
6 #pragma warning( push )
7 #pragma warning( disable : 4251 )
15 namespace LicenseSpring
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 );
77 void setProxyUri(
const std::string& uri );
81 const std::string& getProxyUri()
const;
85 void setUser(
const std::string& user );
89 const std::string& getUser()
const;
93 void setPassword(
const std::string& password );
97 const std::string& getPassword()
const;
101 bool isValid()
const;
104 std::string m_proxyUri;
106 std::string m_password;
126 const std::string& hardwareID,
135 void setLicenseFilePath(
const std::wstring& filePath );
140 const std::wstring& getLicenseFilePath()
const;
144 void setHardwareID(
const std::string& ID );
148 const std::string& getHardwareID()
const;
163 void collectNetworkInfo(
bool collect );
167 bool isCollectNetworkInfoEnabled()
const;
175 void enableLogging(
bool enable );
179 bool isLoggingEnabled()
const;
185 void enableGuardFile(
bool enable );
189 bool isGuardFileEnabled()
const;
195 void enableVMDetection(
bool enable );
199 bool isVMDetectionEnabled()
const;
205 void enableSSLCheck(
bool enable );
209 bool isSSLCheckEnabled()
const;
217 void setUseNativeTLS(
bool value );
222 bool isNativeTLSEnabled()
const;
228 void setGracePeriod( uint32_t value );
232 uint32_t getGracePeriod()
const;
237 void setNetworkTimeout(
long timeout );
241 long getNetworkTimeout()
const;
254 void overrideNetworkInfo(
const NetworkInfo& networkInfo );
273 void setAlternateServiceURL(
const std::string& URL );
277 const std::string& getAlternateServiceURL()
const;
282 void setAlternateKey(
const std::string& key );
287 void setAlternateKey(
const std::vector<int32_t>& key );
293 void setAlternateKey(
const int32_t* key, std::size_t size );
297 const std::string& getAlternateKey()
const;
300 std::wstring m_licenseFilePath;
301 std::string m_hardwareID;
302 std::string m_serviceURL;
304 bool m_collectNetworkInfo;
305 bool m_enableVMDetection;
306 bool m_enableGuardFile;
307 bool m_enableSSLCheck;
309 uint32_t m_gracePeriod;
310 long m_networkTimeout;
320 #pragma warning( pop )
323 #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 ...