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 voidGetHashL()
voidGetPartIdsL(RPointerArray< HBufC8 > &)
IMPORT_C TBoolIsValidDcf(const TDesC8 &)
IMPORT_C COma2Dcf *NewL(const RFile &, TInt)
TInt OpenPart(const TDesC &)
TInt OpenPart(TInt)
voidParseTextualHeadersL(const TDesC8 &)
voidReadBoxSizeAndTypeL(TInt, TInt &, TUint32 &, TInt &)
voidReadCommonHeadersL(TInt, TInt &)
voidReadContainerL(TInt, TInt &)
voidReadContentObjectL(TInt, TInt &)
voidReadDiscreteMediaHeaderL(TInt, TInt &)
voidReadExtendedHeadersL(TInt, TInt)
voidReadMutableInfoL(TInt, TInt &)
voidReadPartsL(void)
voidRewriteMutableInfoL(const TDesC8 &, RPointerArray< HBufC8 > &)
IMPORT_C voidSetRightsObjectsL(RPointerArray< HBufC8 > &)
IMPORT_C voidSetTransactionIdL(const TDesC8 &)
Protected Member Functions
COma2Dcf()
voidConstructL(const RFile &, TInt)
Private Member Functions
voidParseUserDataSubBoxesL(const TDesC8 &)
TInt ReadOneTextualHeaderL(const TDesC8 &, const TDesC8 &, HBufC8 *&, TInt &)
voidReadOneUserDataBoxL(const TDesC8 &, const TDesC8 &, HBufC8 *&)
voidReadPartInfoL(COma2DcfPartInfo *, TInt)
voidReadUserDataL(TInt, TInt &)
voidSetHeaderWithParameterL(const TDesC8 &, HBufC8 *&, HBufC8 *&)
voidVerifyTypeL(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)

voidConstructL(const RFile &aFile,
TIntaPart
)[protected]

Symbian 2nd phase constructor.

Parameters

const RFile & aFile
TInt aPart

GetHashL()

IMPORT_C voidGetHashL()

GetPartIdsL(RPointerArray< HBufC8 > &)

voidGetPartIdsL(RPointerArray< HBufC8 > &aPartList)[virtual]

Parameters

RPointerArray< HBufC8 > & aPartList

IsValidDcf(const TDesC8 &)

IMPORT_C TBoolIsValidDcf(const TDesC8 &aDcfFragment)[static]

Parameters

const TDesC8 & aDcfFragment

NewL(const RFile &, TInt)

IMPORT_C COma2Dcf *NewL(const RFile &aFile,
TIntaPart = 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(TIntaPart)[virtual]

Parameters

TInt aPart

ParseTextualHeadersL(const TDesC8 &)

voidParseTextualHeadersL(const TDesC8 &aMemoryBlock)

Parameters

const TDesC8 & aMemoryBlock

ParseUserDataSubBoxesL(const TDesC8 &)

voidParseUserDataSubBoxesL(const TDesC8 &aMemoryBlock)[private]

Parameters

const TDesC8 & aMemoryBlock

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

voidReadBoxSizeAndTypeL(TIntaOffset,
TInt &aSize,
TUint32 &aType,
TInt &aHeaderSize
)

Parameters

TInt aOffset
TInt & aSize
TUint32 & aType
TInt & aHeaderSize

ReadCommonHeadersL(TInt, TInt &)

voidReadCommonHeadersL(TIntaOffset,
TInt &aSize
)

Parameters

TInt aOffset
TInt & aSize

ReadContainerL(TInt, TInt &)

voidReadContainerL(TIntaOffset,
TInt &aSize
)

Parameters

TInt aOffset
TInt & aSize

ReadContentObjectL(TInt, TInt &)

voidReadContentObjectL(TIntaOffset,
TInt &aSize
)

Parameters

TInt aOffset
TInt & aSize

ReadDiscreteMediaHeaderL(TInt, TInt &)

voidReadDiscreteMediaHeaderL(TIntaOffset,
TInt &aSize
)

Parameters

TInt aOffset
TInt & aSize

ReadExtendedHeadersL(TInt, TInt)

voidReadExtendedHeadersL(TIntaOffset,
TIntaEndOfBox
)

Parameters

TInt aOffset
TInt aEndOfBox

ReadMutableInfoL(TInt, TInt &)

voidReadMutableInfoL(TIntaOffset,
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 & aBlockheader buffer
const TDesC8 & aNameTextual header name
HBufC8 *& aBufBuffer to save value, if not found, it should be NULL, previous data is discarded
TInt & aErrorKErrNone if the header was found, otherwise KErrNotFound or other errors

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

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

Parameters

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

ReadPartInfoL(COma2DcfPartInfo *, TInt)

voidReadPartInfoL(COma2DcfPartInfo *aPart,
TIntaOffset
)[private]

Parameters

COma2DcfPartInfo * aPart
TInt aOffset

ReadPartsL(void)

voidReadPartsL(void)

Parameters

void

ReadUserDataL(TInt, TInt &)

voidReadUserDataL(TIntaOffset,
TInt &aSize
)[private]

Parameters

TInt aOffset
TInt & aSize

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

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

Parameters

const TDesC8 & aTransactionId
RPointerArray< HBufC8 > & aRoList

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

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

SetHeaderWithParameterL

Parameters

const TDesC8 & aValueheader value
HBufC8 *& aMethodBuffer to save method value, if not found, it should be NULL, previous data is discarded
HBufC8 *& aParameterBuffer to save paramter value, if not found, it should be NULL, previous data is discarded

SetRightsObjectsL(RPointerArray< HBufC8 > &)

IMPORT_C voidSetRightsObjectsL(RPointerArray< HBufC8 > &aRoList)

Parameters

RPointerArray< HBufC8 > & aRoList

SetTransactionIdL(const TDesC8 &)

IMPORT_C voidSetTransactionIdL(const TDesC8 &aTransactionId)

Parameters

const TDesC8 & aTransactionId

VerifyTypeL(TUint32, TUint32)

voidVerifyTypeL(TUint32aType,
TUint32aRefType
)[private]

VerifyTypeL

Parameters

TUint32 aTypethe type value to be verified
TUint32 aRefTypethe 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]