1 #ifndef LS_CONFIGURATION_H 2 #define LS_CONFIGURATION_H 6 #pragma warning( push ) 7 #pragma warning( disable : 4251 ) 20 using ptr_t = std::shared_ptr<Configuration>;
35 static ptr_t Create(
const std::string& apiKey,
36 const std::string& sharedKey,
37 const std::string& productCode,
38 const std::string& appName,
39 const std::string& appVersion,
44 const std::string& getApiKey()
const;
48 const std::string& getSharedKey()
const;
52 const std::string& getProductCode()
const;
56 const std::string& getAppName()
const;
60 const std::string& getAppVersion()
const;
65 const std::string& getCustomerAccount()
const;
70 void setCustomerAccount(
const std::string& accountCode );
74 const std::string& getAirGapPublicKey()
const;
78 void setAirGapPublicKey(
const std::string& key );
83 const std::wstring& getLicenseFilePath()
const;
91 const std::string& getHardwareID();
96 void setHardwareID(
const std::string& deviceId );
104 bool isCollectNetworkInfoEnabled()
const;
108 bool isLoggingEnabled()
const;
112 bool isGuardFileEnabled()
const;
117 bool isSSLCheckEnabled()
const;
122 bool isNativeTLSEnabled()
const;
126 uint32_t getGracePeriod()
const;
131 long getNetworkTimeout()
const;
135 void setNetworkTimeout(
long timeoutValue );
143 uint32_t getLicenseSpringAPIVersion()
const;
147 const std::string& getSdkVersion()
const;
151 const std::string& getOsVersion()
const;
155 const std::string& getHostName()
const;
159 const std::string& getIP()
const;
163 const std::string& getMAC()
const;
171 bool isVMDetectionEnabled()
const;
183 const std::string& getDetectedVMName()
const;
191 const std::string& getAlternateServiceUrl()
const;
195 const std::string& getAlternateKey()
const;
200 const std::string& getUserInfo()
const;
204 void setUserInfo(
const std::string& customInfo );
207 std::string m_apiKey;
208 std::string m_sharedKey;
209 std::string m_productCode;
210 std::string m_customerAccount;
211 std::string m_appName;
212 std::string m_appVersion;
213 std::string m_userInfo;
214 std::string m_airGapPublicKey;
220 #pragma warning( pop ) 223 #endif // LS_CONFIGURATION_H Class for storing a device's network information.
std::shared_ptr< Configuration > ptr_t
std::shared_ptr< CryptoProvider > ptr_t
Class for storing useful settings that the Configuration object will inherit.
Class for configuring application.
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 ...