ImagingTools Core SDK
Public Member Functions | List of all members
imtlic::ILicenseControllerabstract

#include <ILicenseController.h>

Inheritance diagram for imtlic::ILicenseController:
imtlic::CLicenseControllerComp

Public Member Functions

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
 

Detailed Description

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.

Member Function Documentation

◆ CheckLicense() [1/2]

virtual bool imtlic::ILicenseController::CheckLicense ( const QByteArray &  key) const
pure virtual

Check if a license key is valid.

Parameters
keyLicense 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
keyLicense key to validate
licensePathPath 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
licenseFilePathPath to the license file to import
logPtrOptional message consumer for logging import operations
Returns
true if the license was successfully imported, false otherwise