COma2Dcf Class Reference

class COma2Dcf : public CDcfCommon

Encapsulates an OMA DRM 2.0 DCF file

DrmDcf.lib
Since
Series 60 3.0

Inherits from

Public Member Functions
~COma2Dcf ()
TInt CheckUniqueId (const TDesC &)
IMPORT_C void GetHashL ()
void GetPartIdsL ( RPointerArray < HBufC8 > &)
IMPORT_C TBool IsValidDcf (const TDesC8 &)
IMPORT_C COma2Dcf * NewL (const RFile &, TInt )
TInt OpenPart (const TDesC &)
TInt OpenPart ( TInt )
void ParseTextualHeadersL (const TDesC8 &)
void ReadBoxSizeAndTypeL ( TInt , TInt &, TUint32 &, TInt &)
void ReadCommonHeadersL ( TInt , TInt &)
void ReadContainerL ( TInt , TInt &)
void ReadContentObjectL ( TInt , TInt &)
void ReadDiscreteMediaHeaderL ( TInt , TInt &)
void ReadExtendedHeadersL ( TInt , TInt )
void ReadMutableInfoL ( TInt , TInt &)
void ReadPartsL (void)
void RewriteMutableInfoL (const TDesC8 &, RPointerArray < HBufC8 > &)
IMPORT_C void SetRightsObjectsL ( RPointerArray < HBufC8 > &)
IMPORT_C void SetTransactionIdL (const TDesC8 &)
Protected Member Functions
COma2Dcf ()
void ConstructL (const RFile &, TInt )
Private Member Functions
void ParseUserDataSubBoxesL (const TDesC8 &)
TInt ReadOneTextualHeaderL (const TDesC8 &, const TDesC8 &, HBufC8 *&, TInt &)
void ReadOneUserDataBoxL (const TDesC8 &, const TDesC8 &, HBufC8 *&)
void ReadPartInfoL (COma2DcfPartInfo *, TInt )
void ReadUserDataL ( TInt , TInt &)
void SetHeaderWithParameterL (const TDesC8 &, HBufC8 *&, HBufC8 *&)
void VerifyTypeL ( TUint32 , TUint32 )
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CDcfCommon::CDcfCommon()
CDcfCommon::ConstructL(const RFile &)
CDcfCommon::ConstructL(const TDesC8 &)
CDcfCommon::NewL(const RFile &)
CDcfCommon::NewL(const TDesC &,RFs *)
CDcfCommon::~CDcfCommon()
Public Attributes
HBufC8 * iAlbumTitle
TUint8 iAlbumTrack
HBufC8 * iAuthor
HBufC8 * iClassificationInfo
HBufC8 * iContentLocation
HBufC8 * iContentUrl
HBufC8 * iContentVersion
HBufC8 * iCopyRight
HBufC8 * iCoverUri
TEncryptionPadding iEncrytionPadding
HBufC8 * iGenre
TEncryptionMethod iGkEncryptionMethod
HBufC8 * iGroupId
HBufC8 * iGroupKey
HBufC8 * iInfoUri
HBufC8 * iKeyword
HBufC8 * iLocInfoAdditionalNotes
HBufC8 * iLocInfoAstronomicalBody
HBufC8 * iLocInfoName
HBufC8 * iLyricsURL
COma2DcfPartInfo * iMutablePart
RPointerArray < COma2DcfPartInfo > iParts
HBufC8 * iPerformer
TPreview iPreview
TBool iPreviewOverridesSilentRefresh
HBufC8 * iPreviewParameter
HBufC8 * iRatingInfo
TUint16 iRecordingYear
RPointerArray < HBufC8 > iRightsObjects
HBufC8 * iSilentParameter
TSilentRefresh iSilentRefresh
HBufC8 * iTextualHeaders
HBufC8 * iTransactionTracking
HBufC8 * iUserData
Private Attributes
TBool iUserDataLanguageDefined
Inherited Attributes
CDcfCommon::iContentID
CDcfCommon::iData
CDcfCommon::iDataLength
CDcfCommon::iDescription
CDcfCommon::iEncryptionMethod
CDcfCommon::iFile
CDcfCommon::iIconUri
CDcfCommon::iLength
CDcfCommon::iMimeType
CDcfCommon::iOffset
CDcfCommon::iPadding
CDcfCommon::iPlainTextLength
CDcfCommon::iPlainTextLengthValid
CDcfCommon::iRightsIssuerURL
CDcfCommon::iTitle
CDcfCommon::iVersion

Constructor & Destructor Documentation

COma2Dcf()

COma2Dcf ( ) [protected]

C++ default constructor.

~COma2Dcf()

IMPORT_C ~COma2Dcf ( ) [virtual]

Destructor.

Member Functions Documentation

CheckUniqueId(const TDesC &)

TInt CheckUniqueId ( const TDesC & aUniqueId ) [virtual]
?member_description.
Since
Series ?XX ?SeriesXX_version

Parameters

const TDesC & aUniqueId

ConstructL(const RFile &, TInt)

void ConstructL ( const RFile & aFile,
TInt aPart
) [protected]

Symbian 2nd phase constructor.

Parameters

const RFile & aFile
TInt aPart

GetHashL()

IMPORT_C void GetHashL ( )

GetPartIdsL(RPointerArray< HBufC8 > &)

void GetPartIdsL ( RPointerArray < HBufC8 > & aPartList ) [virtual]

Parameters

RPointerArray < HBufC8 > & aPartList

IsValidDcf(const TDesC8 &)

IMPORT_C TBool IsValidDcf ( const TDesC8 & aDcfFragment ) [static]

Parameters

const TDesC8 & aDcfFragment

NewL(const RFile &, TInt)

IMPORT_C COma2Dcf * NewL ( const RFile & aFile,
TInt aPart = 0
) [static]

Two-phased constructor.

Parameters

const RFile & aFile
TInt aPart = 0

OpenPart(const TDesC &)

TInt OpenPart ( const TDesC & aUniqueId ) [virtual]

Parameters

const TDesC & aUniqueId

OpenPart(TInt)

TInt OpenPart ( TInt aPart ) [virtual]

Parameters

TInt aPart

ParseTextualHeadersL(const TDesC8 &)

void ParseTextualHeadersL ( const TDesC8 & aMemoryBlock )

Parameters

const TDesC8 & aMemoryBlock

ParseUserDataSubBoxesL(const TDesC8 &)

void ParseUserDataSubBoxesL ( const TDesC8 & aMemoryBlock ) [private]

Parameters

const TDesC8 & aMemoryBlock

ReadBoxSizeAndTypeL(TInt, TInt &, TUint32 &, TInt &)

void ReadBoxSizeAndTypeL ( TInt aOffset,
TInt & aSize,
TUint32 & aType,
TInt & aHeaderSize
)

Parameters

TInt aOffset
TInt & aSize
TUint32 & aType
TInt & aHeaderSize

ReadCommonHeadersL(TInt, TInt &)

void ReadCommonHeadersL ( TInt aOffset,
TInt & aSize
)

Parameters

TInt aOffset
TInt & aSize

ReadContainerL(TInt, TInt &)

void ReadContainerL ( TInt aOffset,
TInt & aSize
)

Parameters

TInt aOffset
TInt & aSize

ReadContentObjectL(TInt, TInt &)

void ReadContentObjectL ( TInt aOffset,
TInt & aSize
)

Parameters

TInt aOffset
TInt & aSize

ReadDiscreteMediaHeaderL(TInt, TInt &)

void ReadDiscreteMediaHeaderL ( TInt aOffset,
TInt & aSize
)

Parameters

TInt aOffset
TInt & aSize

ReadExtendedHeadersL(TInt, TInt)

void ReadExtendedHeadersL ( TInt aOffset,
TInt aEndOfBox
)

Parameters

TInt aOffset
TInt aEndOfBox

ReadMutableInfoL(TInt, TInt &)

void ReadMutableInfoL ( TInt aOffset,
TInt & aSize
)

Parameters

TInt aOffset
TInt & aSize

ReadOneTextualHeaderL(const TDesC8 &, const TDesC8 &, HBufC8 *&, TInt &)

TInt ReadOneTextualHeaderL ( const TDesC8 & aBlock,
const TDesC8 & aName,
HBufC8 *& aBuf,
TInt & aError
) [private]

ReadOneTextualHeaderL

Parameters

const TDesC8 & aBlock header buffer
const TDesC8 & aName Textual header name
HBufC8 *& aBuf Buffer to save value, if not found, it should be NULL, previous data is discarded
TInt & aError KErrNone if the header was found, otherwise KErrNotFound or other errors

ReadOneUserDataBoxL(const TDesC8 &, const TDesC8 &, HBufC8 *&)

void ReadOneUserDataBoxL ( const TDesC8 & aBlock,
const TDesC8 & aName,
HBufC8 *& aBuf
) [private]

Parameters

const TDesC8 & aBlock
const TDesC8 & aName
HBufC8 *& aBuf

ReadPartInfoL(COma2DcfPartInfo *, TInt)

void ReadPartInfoL ( COma2DcfPartInfo * aPart,
TInt aOffset
) [private]

Parameters

COma2DcfPartInfo * aPart
TInt aOffset

ReadPartsL(void)

void ReadPartsL ( void )

Parameters

void

ReadUserDataL(TInt, TInt &)

void ReadUserDataL ( TInt aOffset,
TInt & aSize
) [private]

Parameters

TInt aOffset
TInt & aSize

RewriteMutableInfoL(const TDesC8 &, RPointerArray< HBufC8 > &)

void RewriteMutableInfoL ( const TDesC8 & aTransactionId,
RPointerArray < HBufC8 > & aRoList
)

Parameters

const TDesC8 & aTransactionId
RPointerArray < HBufC8 > & aRoList

SetHeaderWithParameterL(const TDesC8 &, HBufC8 *&, HBufC8 *&)

void SetHeaderWithParameterL ( const TDesC8 & aValue,
HBufC8 *& aMethod,
HBufC8 *& aParameter
) [private]

SetHeaderWithParameterL

Parameters

const TDesC8 & aValue header value
HBufC8 *& aMethod Buffer to save method value, if not found, it should be NULL, previous data is discarded
HBufC8 *& aParameter Buffer to save paramter value, if not found, it should be NULL, previous data is discarded

SetRightsObjectsL(RPointerArray< HBufC8 > &)

IMPORT_C void SetRightsObjectsL ( RPointerArray < HBufC8 > & aRoList )

Parameters

RPointerArray < HBufC8 > & aRoList

SetTransactionIdL(const TDesC8 &)

IMPORT_C void SetTransactionIdL ( const TDesC8 & aTransactionId )

Parameters

const TDesC8 & aTransactionId

VerifyTypeL(TUint32, TUint32)

void VerifyTypeL ( TUint32 aType,
TUint32 aRefType
) [private]

VerifyTypeL

Parameters

TUint32 aType the type value to be verified
TUint32 aRefType the reference type

Member Data Documentation

HBufC8 * iAlbumTitle

HBufC8 * iAlbumTitle

TUint8 iAlbumTrack

TUint8 iAlbumTrack

HBufC8 * iAuthor

HBufC8 * iAuthor

HBufC8 * iClassificationInfo

HBufC8 * iClassificationInfo

HBufC8 * iContentLocation

HBufC8 * iContentLocation

HBufC8 * iContentUrl

HBufC8 * iContentUrl

HBufC8 * iContentVersion

HBufC8 * iContentVersion

HBufC8 * iCopyRight

HBufC8 * iCopyRight

HBufC8 * iCoverUri

HBufC8 * iCoverUri

TEncryptionPadding iEncrytionPadding

TEncryptionPadding iEncrytionPadding

HBufC8 * iGenre

HBufC8 * iGenre

TEncryptionMethod iGkEncryptionMethod

TEncryptionMethod iGkEncryptionMethod

HBufC8 * iGroupId

HBufC8 * iGroupId

HBufC8 * iGroupKey

HBufC8 * iGroupKey

HBufC8 * iInfoUri

HBufC8 * iInfoUri

HBufC8 * iKeyword

HBufC8 * iKeyword

HBufC8 * iLocInfoAdditionalNotes

HBufC8 * iLocInfoAdditionalNotes

HBufC8 * iLocInfoAstronomicalBody

HBufC8 * iLocInfoAstronomicalBody

HBufC8 * iLocInfoName

HBufC8 * iLocInfoName

HBufC8 * iLyricsURL

HBufC8 * iLyricsURL

COma2DcfPartInfo * iMutablePart

COma2DcfPartInfo * iMutablePart

RPointerArray< COma2DcfPartInfo > iParts

RPointerArray < COma2DcfPartInfo > iParts

HBufC8 * iPerformer

HBufC8 * iPerformer

TPreview iPreview

TPreview iPreview

TBool iPreviewOverridesSilentRefresh

TBool iPreviewOverridesSilentRefresh

HBufC8 * iPreviewParameter

HBufC8 * iPreviewParameter

HBufC8 * iRatingInfo

HBufC8 * iRatingInfo

TUint16 iRecordingYear

TUint16 iRecordingYear

RPointerArray< HBufC8 > iRightsObjects

RPointerArray < HBufC8 > iRightsObjects

HBufC8 * iSilentParameter

HBufC8 * iSilentParameter

TSilentRefresh iSilentRefresh

TSilentRefresh iSilentRefresh

HBufC8 * iTextualHeaders

HBufC8 * iTextualHeaders

HBufC8 * iTransactionTracking

HBufC8 * iTransactionTracking

HBufC8 * iUserData

HBufC8 * iUserData

TBool iUserDataLanguageDefined

TBool iUserDataLanguageDefined [private]