CDRMLicenseManager Class Reference

class CDRMLicenseManager : public CBase

Processes protected installation packages for use by the license checker.

DRMLicenseManager.lib
Since
Series 60 2.5

Inherits from

Constructor & Destructor Documentation

CDRMLicenseManager()

CDRMLicenseManager()[private]

C++ default constructor.

~CDRMLicenseManager()

IMPORT_C~CDRMLicenseManager()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

EncryptDataFileL(TDRMDataFile *, const TDesC &, CZipFileMember *)

voidEncryptDataFileL(TDRMDataFile *aDataFile,
const TDesC &aDestination,
CZipFileMember *aZipMember
)[protected]

Encrypts a single data file.

Since
Series 60 2.5

Parameters

TDRMDataFile * aDataFile
const TDesC & aDestination
CZipFileMember * aZipMember

ExtractSISFileL(const TDesC &, const TDesC &)

IMPORT_C TIntExtractSISFileL(const TDesC &aZIPFile,
const TDesC &aDestination
)

Extracts the SIS file from within the PIP file and stores it in a defined location.

Since
Series 60 2.6

Parameters

const TDesC & aZIPFile
const TDesC & aDestination

ExtractSISFileL(RFile &, const TDesC &)

IMPORT_C TIntExtractSISFileL(RFile &aZIPFile,
const TDesC &aDestination
)

This is the file handle based equivalent of the ExtractSISFileL function.

Since
Series 60 3.0

Parameters

RFile & aZIPFile
const TDesC & aDestination

GetSISMemberL(void)

IMPORT_C CZipFileMember *GetSISMemberL(void)

Returns the SIS member contained in a PIP file.

Since
Series 60 2.5

Parameters

void

NewL()

IMPORT_C CDRMLicenseManager *NewL()[static]

Two-phased constructor.

ProcessDataFilesL(const TDesC &)

TInt ProcessDataFilesL(const TDesC &aDestination)[protected]

Process all data files by encrypting them and writing them to their target locations.

Since
Series 60 2.5

Parameters

const TDesC & aDestination

ProcessL(const TDesC &, const TDesC &)

IMPORT_C TIntProcessL(const TDesC &aZIPFile,
const TDesC &aDestination
)

This function performs the actual processing of a protected installation package. It identifies the data files to be protected by reading the definition file. Each identified data file in the PIP will be encrypted and stored in the location indicated by the definition file. The definition file can refer to these locations relative to the installation destination, which can be given as a separate parameter.

Since
Series 60 2.6

Parameters

const TDesC & aZIPFile
const TDesC & aDestination

ProcessL(RFile &, const TDesC &)

IMPORT_C TIntProcessL(RFile &aZIPFile,
const TDesC &aDestination
)

This is the file handle based equivalent of the ProcessL function

Since
Series 60 3.0

Parameters

RFile & aZIPFile
const TDesC & aDestination

ReadDefinitionFileL(void)

TInt ReadDefinitionFileL(void)[protected]

Reads the definition file from a PIP file

Since
Series 60 2.5

Parameters

void

ReadFileDescription(RZipFileMemberReaderStream *)

TInt ReadFileDescription(RZipFileMemberReaderStream *aStream)[protected]

Reads the description line for one file

Since
Series 60 2.5

Parameters

RZipFileMemberReaderStream * aStream

ReadLine(RZipFileMemberReaderStream *, TDes8 &)

voidReadLine(RZipFileMemberReaderStream *aStream,
TDes8 &aLine
)[protected]

Reads one line from the definition file.

Since
Series 60 2.5

Parameters

RZipFileMemberReaderStream * aStream
TDes8 & aLine

WriteSISMemberL(CZipFileMember *, const TDesC &)

voidWriteSISMemberL(CZipFileMember *aSisMember,
const TDesC &aDestination
)[protected]

Writes the SIS member contents to a file.

Since
Series 60 2.5

Parameters

CZipFileMember * aSisMember
const TDesC & aDestination

Member Enumerations Documentation

Enum anonymous

Enumerators

ENoRights = -100000
ERightsExpired = -100001
EPIPInvalid = -100002
ESISNotFound = -100003

Member Data Documentation

RPointerArray< TDRMDataFile > iDataFiles

RPointerArray< TDRMDataFile >iDataFiles[protected]

RFs * iFs

RFs *iFs[protected]

CDRMRights * iRights

CDRMRights *iRights[protected]

HBufC8 * iRightsIssuer

HBufC8 *iRightsIssuer[protected]

CZipFile * iZipFile

CZipFile *iZipFile[protected]