COma2Dcf Class Reference
class COma2Dcf : public CDcfCommon
|
Encapsulates an OMA DRM 2.0 DCF file
DrmDcf.lib
-
Since
-
Series 60 3.0
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
&)
|
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
)
|
Constructor & Destructor Documentation
~COma2Dcf()
IMPORT_C
|
~COma2Dcf
|
(
|
)
|
[virtual]
|
Member Functions Documentation
CheckUniqueId(const TDesC &)
TInt
|
CheckUniqueId
|
(
|
const
TDesC
&
|
aUniqueId
|
)
|
[virtual]
|
?member_description.
-
Since
-
Series ?XX ?SeriesXX_version
ConstructL(const RFile &, TInt)
void
|
ConstructL
|
(
|
const
RFile
&
|
aFile,
|
|
TInt
|
aPart
|
|
)
|
[protected]
|
Symbian 2nd phase constructor.
GetHashL()
IMPORT_C void
|
GetHashL
|
(
|
)
|
|
GetPartIdsL(RPointerArray< HBufC8 > &)
IsValidDcf(const TDesC8 &)
IMPORT_C
TBool
|
IsValidDcf
|
(
|
const
TDesC8
&
|
aDcfFragment
|
)
|
[static]
|
NewL(const RFile &, TInt)
OpenPart(const TDesC &)
TInt
|
OpenPart
|
(
|
const
TDesC
&
|
aUniqueId
|
)
|
[virtual]
|
ParseTextualHeadersL(const TDesC8 &)
void
|
ParseTextualHeadersL
|
(
|
const
TDesC8
&
|
aMemoryBlock
|
)
|
|
ParseUserDataSubBoxesL(const TDesC8 &)
void
|
ParseUserDataSubBoxesL
|
(
|
const
TDesC8
&
|
aMemoryBlock
|
)
|
[private]
|
ReadBoxSizeAndTypeL(TInt, TInt &, TUint32 &, TInt &)
ReadCommonHeadersL(TInt, TInt &)
void
|
ReadCommonHeadersL
|
(
|
TInt
|
aOffset,
|
|
TInt
&
|
aSize
|
|
)
|
|
ReadContainerL(TInt, TInt &)
void
|
ReadContainerL
|
(
|
TInt
|
aOffset,
|
|
TInt
&
|
aSize
|
|
)
|
|
ReadContentObjectL(TInt, TInt &)
void
|
ReadContentObjectL
|
(
|
TInt
|
aOffset,
|
|
TInt
&
|
aSize
|
|
)
|
|
ReadDiscreteMediaHeaderL(TInt, TInt &)
void
|
ReadDiscreteMediaHeaderL
|
(
|
TInt
|
aOffset,
|
|
TInt
&
|
aSize
|
|
)
|
|
ReadExtendedHeadersL(TInt, TInt)
void
|
ReadExtendedHeadersL
|
(
|
TInt
|
aOffset,
|
|
TInt
|
aEndOfBox
|
|
)
|
|
ReadMutableInfoL(TInt, TInt &)
void
|
ReadMutableInfoL
|
(
|
TInt
|
aOffset,
|
|
TInt
&
|
aSize
|
|
)
|
|
ReadOneTextualHeaderL(const TDesC8 &, const TDesC8 &, HBufC8 *&, TInt &)
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]
|
ReadPartInfoL(COma2DcfPartInfo *, TInt)
void
|
ReadPartInfoL
|
(
|
COma2DcfPartInfo *
|
aPart,
|
|
TInt
|
aOffset
|
|
)
|
[private]
|
Parameters
COma2DcfPartInfo * aPart
|
|
TInt
aOffset
|
|
ReadUserDataL(TInt, TInt &)
void
|
ReadUserDataL
|
(
|
TInt
|
aOffset,
|
|
TInt
&
|
aSize
|
|
)
|
[private]
|
RewriteMutableInfoL(const TDesC8 &, RPointerArray< HBufC8 > &)
SetHeaderWithParameterL(const TDesC8 &, HBufC8 *&, HBufC8 *&)
void
|
SetHeaderWithParameterL
|
(
|
const
TDesC8
&
|
aValue,
|
|
HBufC8
*&
|
aMethod,
|
|
HBufC8
*&
|
aParameter
|
|
)
|
[private]
|
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 > &)
SetTransactionIdL(const TDesC8 &)
IMPORT_C void
|
SetTransactionIdL
|
(
|
const
TDesC8
&
|
aTransactionId
|
)
|
|
VerifyTypeL(TUint32, TUint32)
Parameters
TUint32
aType
|
the type value to be verified
|
TUint32
aRefType
|
the reference type
|
Member Data Documentation
HBufC8 * iClassificationInfo
HBufC8 * iContentLocation
TEncryptionPadding
iEncrytionPadding
TEncryptionPadding
|
iEncrytionPadding
|
TEncryptionMethod
iGkEncryptionMethod
TEncryptionMethod
|
iGkEncryptionMethod
|
HBufC8 * iLocInfoAdditionalNotes
HBufC8
*
|
iLocInfoAdditionalNotes
|
HBufC8 * iLocInfoAstronomicalBody
HBufC8
*
|
iLocInfoAstronomicalBody
|
COma2DcfPartInfo * iMutablePart
COma2DcfPartInfo *
|
iMutablePart
|
RPointerArray< COma2DcfPartInfo > iParts
TBool
iPreviewOverridesSilentRefresh
TBool
|
iPreviewOverridesSilentRefresh
|
HBufC8 * iPreviewParameter
RPointerArray< HBufC8 > iRightsObjects
HBufC8 * iSilentParameter
TSilentRefresh
iSilentRefresh
TSilentRefresh
|
iSilentRefresh
|
HBufC8 * iTransactionTracking
TBool
iUserDataLanguageDefined
TBool
|
iUserDataLanguageDefined
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.