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

#include <ILicenseStatus.h>

Inherits istd::IChangeable.

Public Types

enum  LicenseStatusFlags {
  LSF_LICENSE_VALID = 1 , LSF_LICENSE_INVALID = 2 , LSF_NO_LICENSE = 4 , LSF_LICENSE_EXPIRED = 8 ,
  LSF_GOODWILL = 16
}
 

Public Member Functions

virtual int GetLicenseStatusFlags () const =0
 
virtual void SetLicenseStatusFlags (int licenseStatusFlags)=0
 
virtual QString GetLicenseLocation () const =0
 
virtual void SetLicenseLocation (const QString &licenseLocation)=0
 
virtual int GetGoodwillRemainingDays () const =0
 
virtual void SetGoodwillRemainingDays (int days)=0
 

Detailed Description

Interface for license validation status information.

This interface provides information about the current status of a license, including validity, expiration, and goodwill period information.

Definition at line 21 of file ILicenseStatus.h.

Member Enumeration Documentation

◆ LicenseStatusFlags

Enumerator
LSF_LICENSE_VALID 

License is valid and can be used.

LSF_LICENSE_INVALID 

License is invalid and cannot be used.

LSF_NO_LICENSE 

No license information is available.

LSF_LICENSE_EXPIRED 

License has expired and is no longer valid.

LSF_GOODWILL 

License is in goodwill mode (grace period after expiration).

Definition at line 24 of file ILicenseStatus.h.

Member Function Documentation

◆ GetGoodwillRemainingDays()

virtual int imtlic::ILicenseStatus::GetGoodwillRemainingDays ( ) const
pure virtual

Get the number of remaining days in the goodwill period. Goodwill period is a grace period after license expiration.

Returns
Number of days remaining in goodwill period

◆ GetLicenseLocation()

virtual QString imtlic::ILicenseStatus::GetLicenseLocation ( ) const
pure virtual

Get the file system location of the license file.

Returns
Path to the license file

◆ GetLicenseStatusFlags()

virtual int imtlic::ILicenseStatus::GetLicenseStatusFlags ( ) const
pure virtual

Get the current status flags of the license. Flags can be combined using bitwise OR.

Returns
Combination of LicenseStatusFlags values

◆ SetGoodwillRemainingDays()

virtual void imtlic::ILicenseStatus::SetGoodwillRemainingDays ( int  days)
pure virtual

Set the number of remaining days in the goodwill period.

Parameters
daysNumber of days remaining

◆ SetLicenseLocation()

virtual void imtlic::ILicenseStatus::SetLicenseLocation ( const QString &  licenseLocation)
pure virtual

Set the file system location of the license file.

Parameters
licenseLocationPath to the license file

◆ SetLicenseStatusFlags()

virtual void imtlic::ILicenseStatus::SetLicenseStatusFlags ( int  licenseStatusFlags)
pure virtual

Set the status flags of the license.

Parameters
licenseStatusFlagsCombination of LicenseStatusFlags values