![]() |
LicenseSpring C++ SDK 7.31.0
Easily add Software Licensing to your application
|
Class that encapsulates information about a product. More...
#include <LicenseSpring/ProductDetails.h>
Public Types | |
using | ptr_t = std::shared_ptr< ProductDetails > |
Public Member Functions | |
ProductDetails () | |
Default constructor, creates empty (invalid) Product details. | |
bool | isTrialAllowed () const |
Checks whether trial license is allowed for this product or not. | |
bool | isVMAllowed () const |
Checks if running the product on virtual machines is allowed. | |
uint32_t | trialPeriod () const |
Getter for trial period value in days. | |
uint32_t | floatingLicenseTimeout () const |
Getter for floating licenses in minutes. | |
const std::string & | productName () const |
Getter for product name. | |
const std::string & | productCode () const |
Getter for product code. | |
LSAuthMethod | authorizationMethod () const |
Getter for product authorization method. | |
const std::string & | metadata () const |
Getter for product metadata. | |
const std::string & | latestVersion () const |
Getter for latest product version. | |
InstallationFile::ptr_t | installationFile () const |
Getter for product installation file. | |
bool | isEqual (const ProductDetails &other) const |
Compare this object to other. | |
Static Public Member Functions | |
static ProductDetails | fromJsonString (const std::string &jsonString) |
Helper method, creates ProductDetails object from JSON string. | |
Class that encapsulates information about a product.
Product information can be obtained through the backend using BaseManager::getProductDetails()
Definition at line 20 of file ProductDetails.h.
using LicenseSpring::ProductDetails::ptr_t = std::shared_ptr<ProductDetails> |
Definition at line 23 of file ProductDetails.h.
LicenseSpring::ProductDetails::ProductDetails | ( | ) |
Default constructor, creates empty (invalid) Product details.
bool LicenseSpring::ProductDetails::isTrialAllowed | ( | ) | const |
Checks whether trial license is allowed for this product or not.
bool LicenseSpring::ProductDetails::isVMAllowed | ( | ) | const |
Checks if running the product on virtual machines is allowed.
uint32_t LicenseSpring::ProductDetails::trialPeriod | ( | ) | const |
Getter for trial period value in days.
uint32_t LicenseSpring::ProductDetails::floatingLicenseTimeout | ( | ) | const |
Getter for floating licenses in minutes.
const std::string & LicenseSpring::ProductDetails::productName | ( | ) | const |
Getter for product name.
const std::string & LicenseSpring::ProductDetails::productCode | ( | ) | const |
Getter for product code.
LSAuthMethod LicenseSpring::ProductDetails::authorizationMethod | ( | ) | const |
Getter for product authorization method.
const std::string & LicenseSpring::ProductDetails::metadata | ( | ) | const |
Getter for product metadata.
const std::string & LicenseSpring::ProductDetails::latestVersion | ( | ) | const |
Getter for latest product version.
InstallationFile::ptr_t LicenseSpring::ProductDetails::installationFile | ( | ) | const |
Getter for product installation file.
bool LicenseSpring::ProductDetails::isEqual | ( | const ProductDetails & | other | ) | const |
Compare this object to other.
|
static |
Helper method, creates ProductDetails object from JSON string.