#include <cel_license.h>
Public Member Functions | |
virtual void | setLicenseScript (const String &inLicense)=0 |
virtual void | setLicenseTarget (void *target, const String &inCookie)=0 |
virtual void * | getLicenseTarget () const =0 |
virtual void | disableLicenseSystem ()=0 |
virtual String | getLicenseScript () const =0 |
virtual String | getProductId () const =0 |
virtual String | getProductDescription () const =0 |
virtual ActivationScheme | getActivationScheme (Feature inFeature) const =0 |
virtual String | getMachineId () const =0 |
virtual String | getStatusString (bool inHumanReadable, const String &inProductId=NullString) const =0 |
virtual void | setActivationServerUrl (const String &inActivationServerUrl)=0 |
virtual String | getActivationServerUrl () const =0 |
Static Public Member Functions | |
static LicenseManager & | getLicenseManager () |
static String | getStatusStringFromProductStatus (bool inHumanReadable, const String &inMachineId, const ProductStatus &inProductStatus) |
static String | getProductStatusFromString (const String &inStatusString, ProductStatus &outProductStatus) |
static String | createLicenseScript (const String &inUnencryptedScript) |
static String | getFeatureName (Feature inFeature) |
LicenseManager manages an license script for a certain product and provide applications with the nifty string based properties which can be used by the applications.
For more information, see License System.
|
static |
Create a license script from unencrypted script.
This method is reserved for internal use.
For internal usage, see documents in cel_baselib/opt/licenseSystem
.
|
pure virtual |
Disables license system. This method is reserved for internal use.
|
pure virtual |
Determine whether a feature is currently enabled or not.
inFeature | A feature to get the activation scheme. |
|
pure virtual |
Get the activation server URL.
Get Feature Name.
inFeature | A feature to get name. |
|
static |
Get the LicenseManager instance.
|
pure virtual |
Get the current license script.
|
pure virtual |
Get the target of license.
NULL
for no explicit license target.
|
pure virtual |
Get the machine ID corresponding to this machine.
|
pure virtual |
Get the product description.
|
pure virtual |
Get the product ID.
|
static |
Obtain information from non-human-readable form of the status string, which is returned by getStatusString.
inStatusString | The string returned by getStatusString. |
outProductStatus | On return, product status in the status string. |
|
pure virtual |
Get a string which describes the current status of \ref LicenseManager instance. \param inHumanReadable \c true to generate human readable string; otherwise this method returns a machine readable but not human readable string. \param inProductId The target product Id. If this is \ref NullString, this method returns the status of current product. \return A status string. This method can used to create a valid address of cartridge licensing site. The following sample illustrates this:
|
static |
Get a string which describes the current status from the input information.
inHumanReadable | true to generate human readable string; otherwise this method returns a machine readable but not human readable string. |
inMachineId | The machine ID to embed into the string. |
inProductStatus | The product status to embed into the string. |
|
pure virtual |
Set the activation server URL.
inActivationServerUrl | The activation server URL. |
|
pure virtual |
Initializes the LicenseManager instance with the specified license script.
inLicense | A license script provided by Celartem Software Authority. If this string is NullString, then this method tries to obtain the embedded license string from the application binary. |
|
pure virtual |
Set the target of license.
target | Platform dependent handle/context of the license check target. This target is checked for license validity. |
inCookie | The cookie which verifies the module who calls this method is authorized to do so. If you're an authorized software developer, you can obtain the cookie from Celartem Technology Inc. |