Class managing a licensed product. More...
#include <Inventor/lock/SoLicensedProduct.h>
Classes | |
struct | SbLicenseInfo |
Public Types | |
enum | SbLicenseType { SDK, RT } |
Public Member Functions | |
SbProduct | getProductName () const |
const std::vector< SbString > | getProductVersions () const |
int | getDaysToExpire (const SbString version) |
SbLicenseType | getLicenseType () const |
void | getLicense (const SbString version, SbLicenseInfo &lic) |
void | getExpiredVersions (std::vector< SbString > &vec) |
bool | isTrialProduct () const |
bool | isMasterPassword () const |
SoLicensedProduct manages a licensed product. This class allow to have access to every product versions and licenses.
int SoLicensedProduct::getDaysToExpire | ( | const SbString | version | ) |
Gets number of days before expiration for the given product version.
Returns : 0 if license has expired or never expires >0 if license has not expired -1 if license is invalid
void SoLicensedProduct::getExpiredVersions | ( | std::vector< SbString > & | vec | ) |
Gets all product versions with expired licenses.
void SoLicensedProduct::getLicense | ( | const SbString | version, | |
SbLicenseInfo & | lic | |||
) |
Gets the license of the licensed product for the given version with the longest period of validity.
SbLicenseType SoLicensedProduct::getLicenseType | ( | ) | const |
Gets the product type (RunTime or SDK).
SbProduct SoLicensedProduct::getProductName | ( | ) | const |
Gets the name of the licensed product.
const std::vector<SbString> SoLicensedProduct::getProductVersions | ( | ) | const |
Gets the list of licensed product versions.
bool SoLicensedProduct::isMasterPassword | ( | ) | const |
Returns true if the product has a master password license.
bool SoLicensedProduct::isTrialProduct | ( | ) | const |
Returns true if the product is a trial one, false otherwise.