CMTPMetaData Class Reference

class CMTPMetaData : public CBase

Defines the MTP meta-data base class.

Inherits from

Public Member Functions
~CMTPMetaData ()
IMPORT_C TInt CompareTPathHash (const TPathHash &, const TPathHash &)
IMPORT_C const TDesC & DesC ( TUint )
IMPORT_C const CDesCArray & DesCArray ( TUint )
IMPORT_C TAny * GetExtendedInterface ( TUid )
IMPORT_C const RArray < TPathHash > & GetHashPathArray ()
IMPORT_C void GetIntArrayL ( TUint , RArray < TInt > &)
IMPORT_C void GetUintArrayL ( TUint , RArray < TUint > &)
IMPORT_C TInt Int ( TUint )
IMPORT_C const RArray < TInt > & IntArray ( TUint )
IMPORT_C void SetDesCArrayL ( TUint , const CDesCArrayFlat &)
IMPORT_C void SetDesCArrayL ( TUint , const CDesCArraySeg &)
IMPORT_C void SetDesCL ( TUint , const TDesC &)
IMPORT_C void SetHashPath (const TDesC16 &, TUint )
IMPORT_C void SetInt ( TUint , TInt )
IMPORT_C void SetIntArrayL ( TUint , const RArray < TInt > &)
IMPORT_C void SetUint ( TUint , TUint )
IMPORT_C void SetUintArrayL ( TUint , const RArray < TUint > &)
IMPORT_C TUint Uint ( TUint )
IMPORT_C const RArray < TUint > & UintArray ( TUint )
Protected Member Functions
CMTPMetaData (const TElementMetaData *, TUint )
void ConstructL ()
void ConstructL (const CMTPMetaData &)
Private Member Functions
CMTPMetaData ()
void CopyL (const CDesCArray &, CDesCArray &)
void CopyL (const RArray < TInt > &, RArray < TInt > &)
void CopyL (const RArray < TUint > &, RArray < TUint > &)
void DeleteIntArray ( TUint )
void DeleteUintArray ( TUint )
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()
Protected Member Enumerations
enum TType {
EUndefined  = 0, EDesC  = 1, EDesCArray  = 2, EInt  = 3, EIntArray  = 4, EUint  = 5, EUintArray  = 6
}
Private Member Enumerations
enum TDesCArrayType { EDesCArrayFlat  = 0, EDesCArraySeg  = 1 }
Private Attributes
const TUint KGranularity
const RArray < TElementMetaData > iElements
RPointerArray < HBufC > iElementsDesC
RPointerArray < CDesCArray > iElementsDesCArray
RArray < TInt > iElementsDesCArrayType
RArray < TInt > iElementsInt
RPointerArray < TAny > iElementsIntArray
RArray < TUint > iElementsUint
RPointerArray < TAny > iElementsUintArray
TAny * iExtensionData
TAny * iExtensionInterfaces
RArray < TPathHash > iPathHash

Constructor & Destructor Documentation

CMTPMetaData(const TElementMetaData *, TUint)

CMTPMetaData ( const TElementMetaData * aElements,
TUint aCount
) [protected]

Constructor.

Parameters

const TElementMetaData * aElements
TUint aCount

CMTPMetaData()

CMTPMetaData ( ) [private]

Default constructor.

~CMTPMetaData()

IMPORT_C ~CMTPMetaData ( ) [virtual]

Destructor.

Member Functions Documentation

CompareTPathHash(const TPathHash &, const TPathHash &)

IMPORT_C TInt CompareTPathHash ( const TPathHash & ,
const TPathHash &
) [static]

Parameters

const TPathHash &
const TPathHash &

ConstructL()

void ConstructL ( ) [protected]
Second phase constructor.
leave
One of the system wide error code, if a processing failure occurs.

ConstructL(const CMTPMetaData &)

void ConstructL ( const CMTPMetaData & aFrom ) [protected]
Second phase copy constructor.
leave
One of the system wide error code, if a processing failure occurs.

Parameters

const CMTPMetaData & aFrom The source meta-data.

CopyL(const CDesCArray &, CDesCArray &)

void CopyL ( const CDesCArray & aFrom,
CDesCArray & aTo
) [private]
Copies the specified array contents.
leave
One of the system wide error code, if a processing failure occurs.

Parameters

const CDesCArray & aFrom The source array.
CDesCArray & aTo The target array.

CopyL(const RArray< TInt > &, RArray< TInt > &)

void CopyL ( const RArray < TInt > & aFrom,
RArray < TInt > & aTo
) [private]
Copies the specified array contents.
leave
One of the system wide error code, if a processing failure occurs.

Parameters

const RArray < TInt > & aFrom The source array.
RArray < TInt > & aTo The target array.

CopyL(const RArray< TUint > &, RArray< TUint > &)

void CopyL ( const RArray < TUint > & aFrom,
RArray < TUint > & aTo
) [private]
Copies the specified array contents.
leave
One of the system wide error code, if a processing failure occurs.

Parameters

const RArray < TUint > & aFrom The source array.
RArray < TUint > & aTo The target array.

DeleteIntArray(TUint)

void DeleteIntArray ( TUint aIdx ) [private]

Deletes the specified IntArray.

Parameters

TUint aIdx The iElementsIntArray index.

DeleteUintArray(TUint)

void DeleteUintArray ( TUint aIdx ) [private]

Deletes the specified IntArray.

Parameters

TUint aIdx The iElementsIntArray index.

DesC(TUint)

IMPORT_C const TDesC & DesC ( TUint aId ) const
Provides the value of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.

Parameters

TUint aId The element identifier.

DesCArray(TUint)

IMPORT_C const CDesCArray & DesCArray ( TUint aId )
Provides the value of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.

Parameters

TUint aId The element identifier.

GetExtendedInterface(TUid)

IMPORT_C TAny * GetExtendedInterface ( TUid aInterfaceUid )

Provides an MTP object manager's object meta data record extension interface implementation for the specified interface Uid.

Parameters

TUid aInterfaceUid Unique identifier for the extension interface being requested.

GetHashPathArray()

IMPORT_C const RArray < TPathHash > & GetHashPathArray ( )

GetIntArrayL(TUint, RArray< TInt > &)

IMPORT_C void GetIntArrayL ( TUint aId,
RArray < TInt > & aValue
)
Provides a copy of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aId The element identifier.
RArray < TInt > & aValue On successful completion, a copy of the element value.

GetUintArrayL(TUint, RArray< TUint > &)

IMPORT_C void GetUintArrayL ( TUint aId,
RArray < TUint > & aValue
)
Provides a copy of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aId The element identifier.
RArray < TUint > & aValue On successful completion, a copy of the element value.

Int(TUint)

IMPORT_C TInt Int ( TUint aId ) const
Provides the value of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.

Parameters

TUint aId The element identifier.

IntArray(TUint)

IMPORT_C const RArray < TInt > & IntArray ( TUint aId ) const
Provides the value of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.

Parameters

TUint aId The element identifier.

SetDesCArrayL(TUint, const CDesCArrayFlat &)

IMPORT_C void SetDesCArrayL ( TUint aId,
const CDesCArrayFlat & aValue
)
Sets the value of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aId The element identifier.
const CDesCArrayFlat & aValue The element value.

SetDesCArrayL(TUint, const CDesCArraySeg &)

IMPORT_C void SetDesCArrayL ( TUint aId,
const CDesCArraySeg & aValue
)
Sets the value of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aId The element identifier.
const CDesCArraySeg & aValue The element value.

SetDesCL(TUint, const TDesC &)

IMPORT_C void SetDesCL ( TUint aId,
const TDesC & aValue
)
Sets the value of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aId The element identifier.
const TDesC & aValue The element value.

SetHashPath(const TDesC16 &, TUint)

IMPORT_C void SetHashPath ( const TDesC16 & aExclusionPath,
TUint aIndex
)

Parameters

const TDesC16 & aExclusionPath
TUint aIndex

SetInt(TUint, TInt)

IMPORT_C void SetInt ( TUint aId,
TInt aValue
)
Sets the value of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.

Parameters

TUint aId The element identifier.
TInt aValue The element value.

SetIntArrayL(TUint, const RArray< TInt > &)

IMPORT_C void SetIntArrayL ( TUint aId,
const RArray < TInt > & aValue
)
Sets the value of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aId The element identifier.
const RArray < TInt > & aValue The element value.

SetUint(TUint, TUint)

IMPORT_C void SetUint ( TUint aId,
TUint aValue
)
Sets the value of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.

Parameters

TUint aId The element identifier.
TUint aValue The element value.

SetUintArrayL(TUint, const RArray< TUint > &)

IMPORT_C void SetUintArrayL ( TUint aId,
const RArray < TUint > & aValue
)
Sets the value of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aId The element identifier.
const RArray < TUint > & aValue The element value.

Uint(TUint)

IMPORT_C TUint Uint ( TUint aId ) const
Provides the value of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.

Parameters

TUint aId The element identifier.

UintArray(TUint)

IMPORT_C const RArray < TUint > & UintArray ( TUint aId ) const
Provides the value of the specified element.
panic
CMTPMetaData 0 In debug builds, if the specified element is not of the requested type.

Parameters

TUint aId The element identifier.

Member Enumerations Documentation

Enum TDesCArrayType

The CDesCArray element data type identifiers.

Enumerators

EDesCArrayFlat = 0

CDesCArrayFlat .

EDesCArraySeg = 1

CDesCArraySeg .

Enum TType

The meta-data element data type identifiers.

Enumerators

EUndefined = 0

Unknown (null).

EDesC = 1

TDesC .

EDesCArray = 2

CDesCArray .

EInt = 3

TInt .

EIntArray = 4

Rarray<TInt>.

EUint = 5

TUint .

EUintArray = 6

Rarray<TUint>.

Member Data Documentation

const TUint KGranularity

const TUint KGranularity [private, static]

The default array granularity

const RArray< TElementMetaData > iElements

const RArray < TElementMetaData > iElements [private]

The element meta-data.

RPointerArray< HBufC > iElementsDesC

RPointerArray < HBufC > iElementsDesC [private]

The DesC element data.

RPointerArray< CDesCArray > iElementsDesCArray

RPointerArray < CDesCArray > iElementsDesCArray [private]

The DesCArray element data.

RArray< TInt > iElementsDesCArrayType

RArray < TInt > iElementsDesCArrayType [private]

The TDesCArrayType type element data.

RArray< TInt > iElementsInt

RArray < TInt > iElementsInt [private]

The Int element data.

RPointerArray< TAny > iElementsIntArray

RPointerArray < TAny > iElementsIntArray [private]

The IntArray element data.

RArray< TUint > iElementsUint

RArray < TUint > iElementsUint [private]

The Uint element data.

RPointerArray< TAny > iElementsUintArray

RPointerArray < TAny > iElementsUintArray [private]

The UintArray element data.

TAny * iExtensionData

TAny * iExtensionData [private]

The extended data object pointer.

TAny * iExtensionInterfaces

TAny * iExtensionInterfaces [private]

The extended interface object pointer.

RArray< TPathHash > iPathHash

RArray < TPathHash > iPathHash [private]