COma1DcfCreator Class Reference

class COma1DcfCreator : public CBase

Accessing content and rights.

COma1DcfCreator.dll
Since
Series 60 2.0

Inherits from

Constructor & Destructor Documentation

COma1DcfCreator(void)

IMPORT_C COma1DcfCreator ( void ) [protected]

C++ default constructor.

Parameters

void

~COma1DcfCreator(void)

IMPORT_C ~COma1DcfCreator ( void ) [virtual]

Destructor.

Parameters

void

Member Functions Documentation

ConstructL(void)

IMPORT_C void ConstructL ( void ) [private]

By default Symbian 2nd phase constructor is private.

Parameters

void

EncryptContentL(HBufC8 *&, const TDesC8 &, CDRMRights *)

IMPORT_C void EncryptContentL ( HBufC8 *& aContent,
const TDesC8 & aMIMEType,
CDRMRights * aRightsObject = NULL
)

EncryptContentL

Takes a memory buffer with plain text closed content and turns it into a DCF by adding the necessary headers.

Since
3.0

Parameters

HBufC8 *& aContent
const TDesC8 & aMIMEType
CDRMRights * aRightsObject = NULL

EncryptContentToFileL(const TDesC8 &, const TDesC &, const TDesC8 &, CDRMRights *)

IMPORT_C void EncryptContentToFileL ( const TDesC8 & aContent,
const TDesC & aFileName,
const TDesC8 & aMIMEType,
CDRMRights * aRightsObject = NULL
)

EncryptContentToFileL

Takes a memory buffer with plain text closed content and turns it into a DCF by adding the necessary headers.

Since
3.0

Parameters

const TDesC8 & aContent
const TDesC & aFileName
const TDesC8 & aMIMEType
CDRMRights * aRightsObject = NULL

EncryptFileL(const TDesC &, const TDesC &, const TDesC8 &, CDRMRights *)

IMPORT_C void EncryptFileL ( const TDesC & aFileName,
const TDesC & aDCFFileName,
const TDesC8 & aMIMEType,
CDRMRights * aRightsObject = NULL
)

EncryptFileL

Takes the name of a file with plain text closed content and turns it into a DCF by adding the necessary headers.

Since
3.0

Parameters

const TDesC & aFileName
const TDesC & aDCFFileName
const TDesC8 & aMIMEType
CDRMRights * aRightsObject = NULL

EncryptFinalizeL()

IMPORT_C void EncryptFinalizeL ( )

EncryptFinalizeL

finalize the encryption

Since
2.0

EncryptInitializeL(RWriteStream &, const TDesC8 &, CDRMRights *)

IMPORT_C void EncryptInitializeL ( RWriteStream & anOutput,
const TDesC8 & aMIMEType,
CDRMRights * aRightsObject
)

Parameters

RWriteStream & anOutput
const TDesC8 & aMIMEType
CDRMRights * aRightsObject

EncryptUpdateL(const TDesC8 &)

IMPORT_C void EncryptUpdateL ( const TDesC8 & aMessageData )

EncryptUpdateL

add processed content into stream

Since
2.5

Parameters

const TDesC8 & aMessageData

GetBytesWritten(void)

IMPORT_C TUint GetBytesWritten ( void )

GetBytesWritten

Returns the number of bytes written in the encryption process

Since
3.0

Parameters

void

NewL(void)

IMPORT_C COma1DcfCreator * NewL ( void ) [static]

Two-phased constructor.

Parameters

void

Member Data Documentation

TUint iBytesWritten

TUint iBytesWritten [private]

HBufC8 * iEncryptionBuffer

HBufC8 * iEncryptionBuffer [private]

RWriteStream * iEncryptionStream

RWriteStream * iEncryptionStream [private]

TBuf8< KDCFKeySize > iIv

TBuf8 < KDCFKeySize > iIv [private]

RDRMRightsClient iRdb

RDRMRightsClient iRdb [private]

TBuf8< KDCFKeySize > iRemainder

TBuf8 < KDCFKeySize > iRemainder [private]