1#ifndef LS_PRODUCT_DETAILS_H
2#define LS_PRODUCT_DETAILS_H
7#pragma warning( disable : 4251 )
23 using ptr_t = std::shared_ptr<ProductDetails>;
77 bool m_isTrialAllowed;
79 uint32_t m_trialPeriod;
80 uint32_t m_floatingTimeout;
81 std::string m_productName;
82 std::string m_productCode;
84 std::string m_metadata;
85 std::string m_latestVersion;
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
LSAuthMethod
Product authorization method.
std::shared_ptr< InstallationFile > ptr_t
Class that encapsulates information about a product.
uint32_t trialPeriod() const
Getter for trial period value in days.
bool isVMAllowed() const
Checks if running the product on virtual machines is allowed.
static ProductDetails fromJsonString(const std::string &jsonString)
Helper method, creates ProductDetails object from JSON string.
const std::string & latestVersion() const
Getter for latest product version.
bool isTrialAllowed() const
Checks whether trial license is allowed for this product or not.
ProductDetails()
Default constructor, creates empty (invalid) Product details.
uint32_t floatingLicenseTimeout() const
Getter for floating licenses in minutes.
LSAuthMethod authorizationMethod() const
Getter for product authorization method.
const std::string & productName() const
Getter for product name.
InstallationFile::ptr_t installationFile() const
Getter for product installation file.
std::shared_ptr< ProductDetails > ptr_t
const std::string & productCode() const
Getter for product code.
bool isEqual(const ProductDetails &other) const
Compare this object to other.
const std::string & metadata() const
Getter for product metadata.