| LicenseSpring C++ SDK 7.32.0 Easily add Software Licensing to your application

Loading...
Searching...
No Matches
License.h
Go to the documentation of this file.
1#ifndef LS_LICENSE_H
2#define LS_LICENSE_H
3
4#ifdef _MSC_VER
5#pragma once
6#pragma warning( push )
7#pragma warning( disable : 4251 )
8#endif
9
10#include <vector>
11#include <functional>
12#include "LicenseType.h"
13#include "CustomField.h"
14#include "InstallationFile.h"
15#include "LicenseID.h"
16#include "LicenseFeature.h"
17#include "DeviceVariable.h"
18#include "Customer.h"
19#include "ProductDetails.h"
20#include "LicenseUser.h"
21#include "Exceptions.h"
22
23#pragma push_macro("check") // Workaround for Unreal Engine
24#undef check
25
26 namespace LicenseSpring
27{
29 using LicenseWatchdogCallback = std::function<void( const LicenseSpringException& ex )>;
30
33 class LS_API License
34 {
35 public:
36 using ptr_t = std::shared_ptr<License>;
37
39 virtual ~License() {};
40
43 virtual const LicenseID& id() const = 0;
44
47 virtual const std::string& key() const = 0;
48
51 virtual const std::string& user() const = 0;
52
55 virtual LicenseType type() const = 0;
56
59 virtual Customer owner() const = 0;
60
64 virtual LicenseUser::ptr_t licenseUser() const = 0;
65
70 virtual ProductDetails productDetails() const = 0;
71
74 virtual std::string status() const = 0;
75
78 virtual bool isActive() const = 0;
79
82 virtual bool isEnabled() const = 0;
83
86 virtual bool isValid() const = 0;
87
90 virtual bool isTrial() const = 0;
91
94 virtual bool isAirGapped() const = 0;
95
99 virtual uint32_t policyId() const = 0;
100
103 virtual bool isOfflineActivated() const = 0;
104
108 virtual bool isVMAllowed() const = 0;
109
112 virtual bool isFloating() const = 0;
113
117 virtual bool isBorrowed() const = 0;
118
122 virtual bool isSubscriptionGracePeriodStarted() const = 0;
123
126 virtual bool isGracePeriodStarted() const = 0;
127
130 virtual tm gracePeriodEndDateTime() const = 0;
131
134 virtual tm gracePeriodEndDateTimeUTC() const = 0;
135
138 virtual int gracePeriodHoursRemaining() const = 0;
139
143 virtual uint32_t trialPeriod() const = 0;
144
148 virtual uint32_t maxFloatingUsers() const = 0;
149
154 virtual uint32_t floatingInUseCount() const = 0;
155
158 virtual uint32_t floatingTimeout() const = 0;
159
163 virtual const std::string& floatingClientId() const = 0;
164
167 virtual tm validityPeriod() const = 0;
168
171 virtual tm validityPeriodUtc() const = 0;
172
176 virtual tm validityWithGracePeriod() const = 0;
177
181 virtual tm validityWithGracePeriodUtc() const = 0;
182
186 virtual uint32_t subscriptionGracePeriod() const = 0;
187
191 virtual uint32_t maxBorrowTime() const = 0;
192
195 virtual tm maintenancePeriod() const = 0;
196
199 virtual tm maintenancePeriodUtc() const = 0;
200
203 virtual tm lastCheckDate() const = 0;
204
207 virtual tm lastCheckDateUtc() const = 0;
208
212 virtual tm floatingEndDateTime() const = 0;
213
217 virtual tm floatingEndDateTimeUtc() const = 0;
218
222 virtual const std::string& startDate() const = 0;
223
226 virtual const std::string& metadata() const = 0;
227
232 virtual LicenseFeature feature( const std::string& featureCode ) const = 0;
233
236 virtual std::vector<LicenseFeature> features() const = 0;
237
240 virtual std::vector<CustomField> customFields() const = 0;
241
245 virtual const std::vector<CustomField>& userData() const = 0;
246
251 virtual std::string userData( const std::string& key ) const = 0;
252
258 virtual void addUserData( const CustomField& data, bool saveLicense = true ) = 0;
259
263 virtual void removeUserData( const std::string& key = std::string(), bool saveLicense = true ) = 0;
264
267 virtual int32_t totalConsumption() const = 0;
268
271 virtual int32_t maxConsumption() const = 0;
272
275 virtual int32_t maxOverages() const = 0;
276
279 virtual bool isOveragesAllowed() const = 0;
280
283 virtual bool isUnlimitedConsumptionAllowed() const = 0;
284
287 virtual ConsumptionPeriod consumptionPeriod() const = 0;
288
291 virtual bool isResetConsumptionEnabled() const = 0;
292
295 virtual uint32_t timesActivated() const = 0;
296
299 virtual uint32_t maxActivations() const = 0;
300
303 virtual uint32_t transferCount() const = 0;
304
307 virtual int32_t transferLimit() const = 0;
308
311 virtual bool isDeviceTransferAllowed() const = 0;
312
315 virtual bool isDeviceTransferLimited() const = 0;
316
320 virtual bool isAutoReleaseSet() const = 0;
321
324 virtual void setAutoRelease( bool autoRelease ) = 0;
325
331 virtual void updateConsumption( int32_t value = 1, bool saveLicense = true ) = 0;
332
339 virtual void updateFeatureConsumption( const std::string& featureCode, int32_t value = 1, bool saveLicense = true ) = 0;
340
341 // Local checks
345 virtual bool isExpired() const = 0;
346
349 virtual bool isMaintenancePeriodExpired() const = 0;
350
354 virtual int daysRemainingUtc() const = 0;
355
359 virtual int daysRemaining() const = 0;
360
363 virtual int maintenanceDaysRemaining() const = 0;
364
367 static const int MaxDaysRemainingValue;
368
371 virtual int daysPassedSinceLastCheck() const = 0;
372
380 virtual void localCheck() = 0;
381
382 // Requests to LicenseSpring server
383
396 virtual bool deactivate( bool removeLocalData = false ) = 0;
397
402 virtual bool changePassword( const std::string& password, const std::string& newPassword ) = 0; // may throw exceptions
403
416 virtual InstallationFile::ptr_t check( const InstallFileFilter& filter = InstallFileFilter(), bool includeExpiredFeatures = false ) = 0;
417
430 virtual bool syncConsumption( int32_t requestOverage = -1 ) = 0;
431
444 virtual bool syncFeatureConsumption( const std::string& featureCode = std::string() ) = 0;
445
455 virtual void addDeviceVariable( const std::string& name, const std::string& value,
456 bool saveLicense = true ) = 0;
457
464 virtual void addDeviceVariable( const DeviceVariable& variable, bool saveLicense = true ) = 0;
465
469 virtual void addDeviceVariables( const std::vector<DeviceVariable>& variables ) = 0;
470
477 virtual bool sendDeviceVariables() = 0;
478
486 virtual std::vector<DeviceVariable> getDeviceVariables( bool getFromBackend = false ) = 0;
487
491 virtual DeviceVariable deviceVariable( const std::string& name ) const = 0;
492
496 virtual const std::string& deviceVariableValue( const std::string& name ) const = 0;
497
503 virtual void setupLicenseWatchdog( LicenseWatchdogCallback callback, uint32_t timeout = 0 ) = 0;
504
508 virtual void resumeLicenseWatchdog() = 0;
509
512 virtual void stopLicenseWatchdog() = 0;
513
518 virtual void setupFeatureWatchdog(LicenseWatchdogCallback callback, uint32_t timeout = 0 ) = 0;
519
523 virtual void resumeFeatureWatchdog() = 0;
524
527 virtual void stopFeatureWatchdog() = 0;
528
534 virtual void registerFloatingLicense() = 0;
535
544 virtual void releaseFloatingLicense( bool throwExceptions = false ) = 0;
545
556 virtual void borrow( uint32_t hours, uint32_t days = 0 ) = 0;
557
567 virtual void borrow( const std::string& borrowEndDateTime = std::string() ) = 0;
568
572 virtual std::wstring deactivateOffline( const std::wstring& deactivationRequestFile = std::wstring() ) = 0;
573
582 virtual bool updateOffline( const std::wstring& path, bool resetConsumption = false ) = 0;
583
588 virtual void unlinkFromDevice() = 0;
589
593 virtual std::string getAirGapDeactivationCode( const std::string& initializationCode ) = 0;
594
598 virtual void deactivateAirGap( const std::string& confirmationCode ) = 0;
599
602 virtual bool isLicenseBelongsToThisDevice( DeviceIDAlgorithm deviceIDAlgorithm ) = 0;
603
605 virtual bool checkLicenseBelongsToThisDevice() = 0;
606
611 virtual void registerFloatingFeature( const std::string& featureCode, bool addToWatchdog = true ) = 0;
612
618 virtual void releaseFloatingFeature( const std::string& featureCode ) = 0;
619 };
620
622 std::string LS_API TmToString( const tm& dateTime, const std::string& format = std::string( "%d-%m-%Y" ) );
623
624} // namespace LicenseSpring
625
626#pragma pop_macro("check")
627
628#ifdef _MSC_VER
629#pragma warning( pop )
630#endif
631
632#endif // LS_LICENSE_H
LS_API
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Definition APIDef.h:22
CustomField.h
Customer.h
DeviceVariable.h
Exceptions.h
InstallationFile.h
LicenseFeature.h
LicenseID.h
LicenseType.h
LicenseUser.h
DeviceIDAlgorithm
DeviceIDAlgorithm
Type of Device ID algorithm used by the SDK.
Definition PODTypes.h:104
ProductDetails.h
LicenseSpring::ConsumptionPeriod
Class used for encapsulating LSConsumptionPeriod and converting cosumption period to/from string.
Definition ConsumptionPeriod.h:11
LicenseSpring::CustomField
Class for storing key-value data field.
Definition CustomField.h:18
LicenseSpring::Customer
Class that encapsulates information about a customer.
Definition Customer.h:18
LicenseSpring::DeviceVariable
Class for storing key-value device variable.
Definition DeviceVariable.h:19
LicenseSpring::InstallationFile::ptr_t
std::shared_ptr< InstallationFile > ptr_t
Definition InstallationFile.h:54
LicenseSpring::LicenseFeature
Class that encapsulates information about license feature.
Definition LicenseFeature.h:21
LicenseSpring::License
Class that encapsulates license information.
Definition License.h:34
LicenseSpring::License::deactivateAirGap
virtual void deactivateAirGap(const std::string &confirmationCode)=0
Verify Confirmation code and deactivate air gap license.
LicenseSpring::License::isVMAllowed
virtual bool isVMAllowed() const =0
Checker for whether the license is allowed to work under virtual machine or not.
LicenseSpring::License::validityPeriod
virtual tm validityPeriod() const =0
Getter for license validity period in local time.
LicenseSpring::License::deviceVariableValue
virtual const std::string & deviceVariableValue(const std::string &name) const =0
Get device variable value by name.
LicenseSpring::License::subscriptionGracePeriod
virtual uint32_t subscriptionGracePeriod() const =0
Getter for grace period of the Subscription license in hours.
LicenseSpring::License::isBorrowed
virtual bool isBorrowed() const =0
Checker for whether the license is borrowed.
LicenseSpring::License::owner
virtual Customer owner() const =0
Getter for license owner.
LicenseSpring::License::gracePeriodHoursRemaining
virtual int gracePeriodHoursRemaining() const =0
How many hours remaining till grace period ends.
LicenseSpring::License::totalConsumption
virtual int32_t totalConsumption() const =0
Returns license current total consumption.
LicenseSpring::License::checkLicenseBelongsToThisDevice
virtual bool checkLicenseBelongsToThisDevice()=0
Checks if license belongs to any of the DeviceIDAlgorithm values.
LicenseSpring::License::releaseFloatingFeature
virtual void releaseFloatingFeature(const std::string &featureCode)=0
Release a floating feature and free a floating slot.
LicenseSpring::License::setupLicenseWatchdog
virtual void setupLicenseWatchdog(LicenseWatchdogCallback callback, uint32_t timeout=0)=0
Setup and run license watchdog, a background thread which periodically checks the license.
LicenseSpring::License::borrow
virtual void borrow(const std::string &borrowEndDateTime=std::string())=0
Borrow floating license till provided end date time.
LicenseSpring::License::maintenancePeriod
virtual tm maintenancePeriod() const =0
Getter for license maintenance period in local time.
LicenseSpring::License::registerFloatingFeature
virtual void registerFloatingFeature(const std::string &featureCode, bool addToWatchdog=true)=0
Register a floating feature and occupy a floating slot.
LicenseSpring::License::lastCheckDateUtc
virtual tm lastCheckDateUtc() const =0
Getter for license last check date in UTC.
LicenseSpring::License::ptr_t
std::shared_ptr< License > ptr_t
Definition License.h:36
LicenseSpring::License::maxBorrowTime
virtual uint32_t maxBorrowTime() const =0
Maximum borrowing period in hours.
LicenseSpring::License::addDeviceVariable
virtual void addDeviceVariable(const std::string &name, const std::string &value, bool saveLicense=true)=0
Add new or update existing device variable to license daata.
LicenseSpring::License::validityPeriodUtc
virtual tm validityPeriodUtc() const =0
Getter for license validity period in UTC.
LicenseSpring::License::releaseFloatingLicense
virtual void releaseFloatingLicense(bool throwExceptions=false)=0
Revoke floating license, typically should be called at the end of app execution.
LicenseSpring::License::isMaintenancePeriodExpired
virtual bool isMaintenancePeriodExpired() const =0
Compare system date time with maintenance period time.
LicenseSpring::License::licenseUser
virtual LicenseUser::ptr_t licenseUser() const =0
Getter for license user, it's a person assigned to the license.
LicenseSpring::License::maxFloatingUsers
virtual uint32_t maxFloatingUsers() const =0
Getter for max simultaneous license users (devices or instances).
LicenseSpring::License::isActive
virtual bool isActive() const =0
Checker for if the license is active.
LicenseSpring::License::floatingEndDateTimeUtc
virtual tm floatingEndDateTimeUtc() const =0
Floating license validity end date time in UTC.
LicenseSpring::License::customFields
virtual std::vector< CustomField > customFields() const =0
Getter for list of custom fields associated with the license.
LicenseSpring::License::floatingTimeout
virtual uint32_t floatingTimeout() const =0
Getter for timeout of the floating license in minutes.
LicenseSpring::License::id
virtual const LicenseID & id() const =0
Getter for license ID.
LicenseSpring::License::maxActivations
virtual uint32_t maxActivations() const =0
How many times license can be activated.
LicenseSpring::License::updateFeatureConsumption
virtual void updateFeatureConsumption(const std::string &featureCode, int32_t value=1, bool saveLicense=true)=0
Increase or decrease feature consumption by given value.
LicenseSpring::License::updateConsumption
virtual void updateConsumption(int32_t value=1, bool saveLicense=true)=0
Increase or decrease license consumption by given value.
LicenseSpring::License::isOveragesAllowed
virtual bool isOveragesAllowed() const =0
Checks if overage is allowed for Consumption license.
LicenseSpring::License::isDeviceTransferLimited
virtual bool isDeviceTransferLimited() const =0
Checks if the license allows only limited number of transfers between devices.
LicenseSpring::License::stopFeatureWatchdog
virtual void stopFeatureWatchdog()=0
Stops feature watchdog background thread.
LicenseSpring::License::consumptionPeriod
virtual ConsumptionPeriod consumptionPeriod() const =0
Returns period of time after which consumption is reset.
LicenseSpring::License::syncFeatureConsumption
virtual bool syncFeatureConsumption(const std::string &featureCode=std::string())=0
Sync Consumption Feature(s) with the backend, if code not provided sync all consumption features.
LicenseSpring::License::unlinkFromDevice
virtual void unlinkFromDevice()=0
Unlinks license from cuurent device ID.
LicenseSpring::License::updateOffline
virtual bool updateOffline(const std::wstring &path, bool resetConsumption=false)=0
Update license data accordingly to provided file.
LicenseSpring::License::addDeviceVariable
virtual void addDeviceVariable(const DeviceVariable &variable, bool saveLicense=true)=0
Add new or update existing device variable to license daata.
LicenseSpring::License::policyId
virtual uint32_t policyId() const =0
Policy id of the license.
LicenseSpring::License::stopLicenseWatchdog
virtual void stopLicenseWatchdog()=0
Stops license watchdog background thread.
LicenseSpring::License::setAutoRelease
virtual void setAutoRelease(bool autoRelease)=0
Sets auto release flag. Meaningful only for floating license.
LicenseSpring::License::productDetails
virtual ProductDetails productDetails() const =0
Getter for product details.
LicenseSpring::License::validityWithGracePeriod
virtual tm validityWithGracePeriod() const =0
Getter for license validity period including grace period in local time.
LicenseSpring::License::isOfflineActivated
virtual bool isOfflineActivated() const =0
Checker for if license is offline activated.
LicenseSpring::License::maintenancePeriodUtc
virtual tm maintenancePeriodUtc() const =0
Getter for license maintenance period in UTC.
LicenseSpring::License::sendDeviceVariables
virtual bool sendDeviceVariables()=0
Send current device variables list to the backend (see device variables on the platform)
LicenseSpring::License::registerFloatingLicense
virtual void registerFloatingLicense()=0
Register floating license using floatingClientId.
LicenseSpring::License::lastCheckDate
virtual tm lastCheckDate() const =0
Getter for license last check date in local time.
LicenseSpring::License::timesActivated
virtual uint32_t timesActivated() const =0
How many times license already been activated.
LicenseSpring::License::metadata
virtual const std::string & metadata() const =0
Getter for license metadata.
LicenseSpring::License::key
virtual const std::string & key() const =0
Getter for license key.
LicenseSpring::License::getAirGapDeactivationCode
virtual std::string getAirGapDeactivationCode(const std::string &initializationCode)=0
Get air gap Deactivation code.
LicenseSpring::License::MaxDaysRemainingValue
static const int MaxDaysRemainingValue
Maximum value for daysRemaining, e.g. in case of perpetual license.
Definition License.h:367
LicenseSpring::License::isExpired
virtual bool isExpired() const =0
Compare system date time with license validity date time.
LicenseSpring::License::maxConsumption
virtual int32_t maxConsumption() const =0
Returns license maximum consumption.
LicenseSpring::License::isEnabled
virtual bool isEnabled() const =0
Checker for if the license is enabled.
LicenseSpring::License::feature
virtual LicenseFeature feature(const std::string &featureCode) const =0
Getter method for license feature.
LicenseSpring::License::status
virtual std::string status() const =0
Getter for license status.
LicenseSpring::License::deactivateOffline
virtual std::wstring deactivateOffline(const std::wstring &deactivationRequestFile=std::wstring())=0
Creates offline deactivation file request.
LicenseSpring::License::isLicenseBelongsToThisDevice
virtual bool isLicenseBelongsToThisDevice(DeviceIDAlgorithm deviceIDAlgorithm)=0
Checks if license belongs to this DeviceIDAlgorithm.
LicenseSpring::License::changePassword
virtual bool changePassword(const std::string &password, const std::string &newPassword)=0
Change password for user based license.
LicenseSpring::License::type
virtual LicenseType type() const =0
Getter for license type.
LicenseSpring::License::isSubscriptionGracePeriodStarted
virtual bool isSubscriptionGracePeriodStarted() const =0
Check if grace period started for subscription license.
LicenseSpring::License::resumeLicenseWatchdog
virtual void resumeLicenseWatchdog()=0
Resume background thread, you can call this within your callback in order to resume periodic license ...
LicenseSpring::License::isGracePeriodStarted
virtual bool isGracePeriodStarted() const =0
Check if grace period started for a license.
LicenseSpring::License::startDate
virtual const std::string & startDate() const =0
Getter method license start date.
LicenseSpring::License::getDeviceVariables
virtual std::vector< DeviceVariable > getDeviceVariables(bool getFromBackend=false)=0
Get device variables from the local license or from the backend.
LicenseSpring::License::resumeFeatureWatchdog
virtual void resumeFeatureWatchdog()=0
Resume background thread, you can call this within your callback in order to resume periodic feature ...
LicenseSpring::License::daysRemaining
virtual int daysRemaining() const =0
Almost the same as UTC counterpart, but days counter will be changed on local midnight.
LicenseSpring::License::floatingInUseCount
virtual uint32_t floatingInUseCount() const =0
Getter for current floatings slots in use count, including this user (instance).
LicenseSpring::License::isAirGapped
virtual bool isAirGapped() const =0
Checker for if the license is air gapped.
LicenseSpring::License::isFloating
virtual bool isFloating() const =0
Checker for whether the license is floating or not.
LicenseSpring::License::validityWithGracePeriodUtc
virtual tm validityWithGracePeriodUtc() const =0
Getter for license validity period including grace period in UTC.
LicenseSpring::License::isUnlimitedConsumptionAllowed
virtual bool isUnlimitedConsumptionAllowed() const =0
Checks if unlimited consumption is allowed for Consumption license.
LicenseSpring::License::maxOverages
virtual int32_t maxOverages() const =0
Returns maximum overage allowed for the license.
LicenseSpring::License::maintenanceDaysRemaining
virtual int maintenanceDaysRemaining() const =0
How many days remaining till end of maintenance days.
LicenseSpring::License::~License
virtual ~License()
Destructor for license.
Definition License.h:39
LicenseSpring::License::transferLimit
virtual int32_t transferLimit() const =0
Maximum number of allowed license transfers between devices.
LicenseSpring::License::daysPassedSinceLastCheck
virtual int daysPassedSinceLastCheck() const =0
How many days passed from last online check.
LicenseSpring::License::gracePeriodEndDateTime
virtual tm gracePeriodEndDateTime() const =0
Getter for grace period end date time in local time.
LicenseSpring::License::syncConsumption
virtual bool syncConsumption(int32_t requestOverage=-1)=0
Sync Consumption license with the server.
LicenseSpring::License::isValid
virtual bool isValid() const =0
Checker for if the license is valid.
LicenseSpring::License::addDeviceVariables
virtual void addDeviceVariables(const std::vector< DeviceVariable > &variables)=0
Add new or update existing device variables to license daata.
LicenseSpring::License::isAutoReleaseSet
virtual bool isAutoReleaseSet() const =0
Returns auto release flag. Meaningful only for floating license.
LicenseSpring::License::isTrial
virtual bool isTrial() const =0
Checker for if the license is a trial.
LicenseSpring::License::isDeviceTransferAllowed
virtual bool isDeviceTransferAllowed() const =0
Checks if license can be transferred between devices.
LicenseSpring::License::isResetConsumptionEnabled
virtual bool isResetConsumptionEnabled() const =0
Checks if consumption reset is allowed for Consumption license.
LicenseSpring::License::floatingClientId
virtual const std::string & floatingClientId() const =0
Getter for floating user (client) or instance id.
LicenseSpring::License::borrow
virtual void borrow(uint32_t hours, uint32_t days=0)=0
Borrow floating license for provided time interval.
LicenseSpring::License::gracePeriodEndDateTimeUTC
virtual tm gracePeriodEndDateTimeUTC() const =0
Getter for grace period end date time in UTC.
LicenseSpring::License::setupFeatureWatchdog
virtual void setupFeatureWatchdog(LicenseWatchdogCallback callback, uint32_t timeout=0)=0
Setup and run feature watchdog, a background thread which periodically checks floating license featur...
LicenseSpring::License::userData
virtual const std::vector< CustomField > & userData() const =0
Returns user data stored within license object.
LicenseSpring::License::addUserData
virtual void addUserData(const CustomField &data, bool saveLicense=true)=0
Adds user data to the license object. This method allows you to store custom data securely inside lic...
LicenseSpring::License::daysRemainingUtc
virtual int daysRemainingUtc() const =0
How many days remaining till license expires.
LicenseSpring::License::deactivate
virtual bool deactivate(bool removeLocalData=false)=0
Sends deactivate license request to the backend.
LicenseSpring::License::trialPeriod
virtual uint32_t trialPeriod() const =0
Trial duration of current license.
LicenseSpring::License::removeUserData
virtual void removeUserData(const std::string &key=std::string(), bool saveLicense=true)=0
Removes user data from the license.
LicenseSpring::License::floatingEndDateTime
virtual tm floatingEndDateTime() const =0
Getter for floating license validity end date time in local time zone.
LicenseSpring::License::features
virtual std::vector< LicenseFeature > features() const =0
Getter for list of license features associated with the license.
LicenseSpring::License::transferCount
virtual uint32_t transferCount() const =0
How many times license has been transferred between devices.
LicenseSpring::License::check
virtual InstallationFile::ptr_t check(const InstallFileFilter &filter=InstallFileFilter(), bool includeExpiredFeatures=false)=0
Online license check, sync the license with the backend, throws exceptions in case of errors.
LicenseSpring::License::localCheck
virtual void localCheck()=0
Check license local without connection to the backend.
LicenseSpring::License::deviceVariable
virtual DeviceVariable deviceVariable(const std::string &name) const =0
Get device variable by name.
LicenseSpring::License::userData
virtual std::string userData(const std::string &key) const =0
Getter for user data by given key.
LicenseSpring::License::user
virtual const std::string & user() const =0
Getter for user.
LicenseSpring::LicenseID
Class that represents License identifier.
Definition LicenseID.h:19
LicenseSpring::LicenseSpringException
Base class for all LicenseSpring exceptions.
Definition Exceptions.h:19
LicenseSpring::LicenseType
Class used for encapsulating the type of license, comparing types of licenses, and converting them to...
Definition LicenseType.h:19
LicenseSpring::LicenseUser::ptr_t
std::shared_ptr< LicenseUser > ptr_t
Definition LicenseUser.h:21
LicenseSpring::ProductDetails
Class that encapsulates information about a product.
Definition ProductDetails.h:21
LicenseSpring
Definition BaseManager.h:16
LicenseSpring::TmToString
std::string LS_API TmToString(const tm &dateTime, const std::string &format=std::string("%d-%m-%Y"))
Helper function, converts datetime to string using given format. See strftime reference for format de...
LicenseSpring::encrypt_character
constexpr Char encrypt_character(const Char character, int index)
Definition EncryptString.h:44
LicenseSpring::LicenseWatchdogCallback
std::function< void(const LicenseSpringException &ex)> LicenseWatchdogCallback
Callback function which being called in case of error in background thread (watchdog thread).
Definition License.h:29
LicenseSpring::InstallFileFilter
Helper struct for filtering installation files by environment and channel.
Definition InstallationFile.h:19