#include <ILicenseController.h>
|
| virtual bool | ImportLicense (const QString &licenseFilePath, ilog::IMessageConsumer *logPtr=nullptr) const =0 |
| |
| virtual bool | CheckLicense (const QByteArray &key) const =0 |
| |
| virtual bool | CheckLicense (const QByteArray &key, const QString &licensePath) const =0 |
| |
Interface for a license controller on the client side.
The License Controller manages license file operations on the client installation, including importing license files and validating license keys.
- See also
- IProductInstanceInfo
Definition at line 22 of file ILicenseController.h.
◆ CheckLicense() [1/2]
| virtual bool imtlic::ILicenseController::CheckLicense |
( |
const QByteArray & |
key | ) |
const |
|
pure virtual |
Check if a license key is valid.
- Parameters
-
| key | License key to validate |
- Returns
- true if the key is valid, false otherwise
◆ CheckLicense() [2/2]
| virtual bool imtlic::ILicenseController::CheckLicense |
( |
const QByteArray & |
key, |
|
|
const QString & |
licensePath |
|
) |
| const |
|
pure virtual |
Check if a license key is valid for a specific license file.
- Parameters
-
| key | License key to validate |
| licensePath | Path to the license file |
- Returns
- true if the key is valid for the license file, false otherwise
◆ ImportLicense()
| virtual bool imtlic::ILicenseController::ImportLicense |
( |
const QString & |
licenseFilePath, |
|
|
ilog::IMessageConsumer * |
logPtr = nullptr |
|
) |
| const |
|
pure virtual |
Import a license file into the system. This activates new licenses on the client installation.
- Parameters
-
| licenseFilePath | Path to the license file to import |
| logPtr | Optional message consumer for logging import operations |
- Returns
- true if the license was successfully imported, false otherwise