#include <cel_license.h>
This class manages the cartridges.
For more information, see CartridgeManager.
virtual void Celartem::License::CartridgeManager::commit |
( |
const String & |
inGuid | ) |
|
|
pure virtual |
Commit the reserve identified by the GUID.
- Parameters
-
inGuid | A GUID which identifies the reserve. |
static String Celartem::License::CartridgeManager::createCartridge |
( |
const String & |
inUnencryptedScript | ) |
|
|
static |
Create a cartridge from unencrypted script.
This method is reserved for internal use.
For internal usage, see documents in cel_baselib/opt/licenseSystem
.
virtual void Celartem::License::CartridgeManager::getActivatedProducts |
( |
SimpleArray< String > & |
outProductIds | ) |
|
|
pure virtual |
Obtain the list of activated products.
- Parameters
-
outProductIds | A SimpleArray reference which receives the product IDs. |
static CartridgeManager& Celartem::License::CartridgeManager::getCartridgeManager |
( |
| ) |
|
|
static |
virtual void Celartem::License::CartridgeManager::getProductStatus |
( |
ProductStatus & |
outProductStatus, |
|
|
const String & |
inProductId = NullString |
|
) |
| |
|
pure virtual |
Obtain the product status.
- Parameters
-
outProductStatus | A ProductStatus reference which receives the product status. |
inProductId | Product Id. |
virtual void Celartem::License::CartridgeManager::installCartridge |
( |
const String & |
inCartridgeScript, |
|
|
bool |
inDryRun = false |
|
) |
| |
|
pure virtual |
Install the new cartridge.
- Parameters
-
inCartridgeScript | A cartridge script which describes the new cartridge. |
inDryRun | If this is true , this method just checks internal consistency (validity of the cartridge to install) but not to install it; otherwise this method installs the specified cartridge. |
virtual void Celartem::License::CartridgeManager::reinitializeDataBase |
( |
| ) |
|
|
pure virtual |
Re-initializes the cartridge database.
All the information in the database will be cleared but cartridge installation history is not cleared.
This method is provided for database recovery purpose only and it should not be called for normal purpose.
virtual String Celartem::License::CartridgeManager::reserve |
( |
Feature |
inFeature, |
|
|
size_t |
inCount |
|
) |
| |
|
pure virtual |
Reserve the feature cartridge.
The cartridges reserved by this method should be commited or reverted by calling either of commit or revert methods.
- Parameters
-
inFeature | The feature of the cartridge. |
inCount | The count of the cartridge. |
- Returns
- A GUID which identifies this reserve.
virtual void Celartem::License::CartridgeManager::revert |
( |
const String & |
inGuid | ) |
|
|
pure virtual |
Revert the reserve identified by the GUID.
- Parameters
-
inGuid | A GUID which identifies the reserve. |
The documentation for this class was generated from the following file: