CDRMLicenseChecker Class Reference

class CDRMLicenseChecker : public CBase

Check and decrypt protected data files encrypted by the license manager.

DRMLicenseChecker.lib
Since
Series 60 2.5

Inherits from

Constructor & Destructor Documentation

CDRMLicenseChecker()

CDRMLicenseChecker ( ) [private]

C++ default constructor.

~CDRMLicenseChecker()

IMPORT_C ~CDRMLicenseChecker ( ) [virtual]

Destructor.

Member Functions Documentation

CheckLicense(const TDesC &, HBufC8 *&)

IMPORT_C TInt CheckLicense ( const TDesC & aDataFile,
HBufC8 *& aDataBuffer
)

This function performs a license check by decrypting a data file and returning the decrypted contents of the data file. A license check can only succeed if a rights object associated with the calling application exists and sufficient rights are present. If the license check fails, an error is returned.

Since
Series 60 2.6

Parameters

const TDesC & aDataFile
HBufC8 *& aDataBuffer

CheckLicenseL(const TDesC &, HBufC8 *&)

void CheckLicenseL ( const TDesC & aDataFile,
HBufC8 *& aDataBuffer
) [private]

Leaving version of CheckLicense

Since
Series 60 3.0

Parameters

const TDesC & aDataFile
HBufC8 *& aDataBuffer

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

NewL()

IMPORT_C CDRMLicenseChecker * NewL ( ) [static]

Two-phased constructor.

Member Enumerations Documentation

Enum anonymous

Enumerators

ENoRights = -100000
ERightsExpired = -100001