CMTPObjectMetaData Class Reference

class CMTPObjectMetaData : public CMTPMetaData

Defines the MTP object meta-data.

Inherits from

Public Member Functions
~CMTPObjectMetaData()
IMPORT_C CMTPObjectMetaData *NewL()
IMPORT_C CMTPObjectMetaData *NewL(TUint, TUint, TUint, const TDesC &)
IMPORT_C CMTPObjectMetaData *NewL(const TDesC &, TUint, TUint, TUint)
IMPORT_C CMTPObjectMetaData *NewLC()
IMPORT_C CMTPObjectMetaData *NewLC(TUint, TUint, TUint, const TDesC &)
IMPORT_C CMTPObjectMetaData *NewLC(const TDesC &, TUint, TUint, TUint)
Private Member Functions
CMTPObjectMetaData()
voidConstructL()
voidConstructL(TUint, TUint, TUint, const TDesC &)
voidConstructL(const TDesC &, TUint, TUint, 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()
CMTPMetaData::CMTPMetaData(const TElementMetaData *,TUint)
CMTPMetaData::CompareTPathHash(const TPathHash &,const TPathHash &)
CMTPMetaData::ConstructL(const CMTPMetaData &)
CMTPMetaData::DesC(TUint)const
CMTPMetaData::DesCArray(TUint)
CMTPMetaData::GetExtendedInterface(TUid)
CMTPMetaData::GetHashPathArray()
CMTPMetaData::GetIntArrayL(TUint,RArray< TInt > &)
CMTPMetaData::GetUintArrayL(TUint,RArray< TUint > &)
CMTPMetaData::Int(TUint)const
CMTPMetaData::IntArray(TUint)const
CMTPMetaData::SetDesCArrayL(TUint,const CDesCArrayFlat &)
CMTPMetaData::SetDesCArrayL(TUint,const CDesCArraySeg &)
CMTPMetaData::SetDesCL(TUint,const TDesC &)
CMTPMetaData::SetHashPath(const TDesC16 &,TUint)
CMTPMetaData::SetInt(TUint,TInt)
CMTPMetaData::SetIntArrayL(TUint,const RArray< TInt > &)
CMTPMetaData::SetUint(TUint,TUint)
CMTPMetaData::SetUintArrayL(TUint,const RArray< TUint > &)
CMTPMetaData::Uint(TUint)const
CMTPMetaData::UintArray(TUint)const
CMTPMetaData::~CMTPMetaData()
Public Member Enumerations
enumTElementId {
EDataProviderId = 0, EFormatCode = 1, EFormatSubCode = 2, EHandle = 3, EModes = 4, EParentHandle = 5, EStorageId = 6, EStorageVolumeId = 7, ESuid = 8, EUserRating = 9, EBuyNow = 10, EPlayCount = 11, EIdentifier = 12, ENonConsumable = 13, EObjectMetaDataUpdate = 14, EName = 15, ENumElements
}
Inherited Enumerations
CMTPMetaData:TType
Private Attributes
const TElementMetaDataKElements

Constructor & Destructor Documentation

CMTPObjectMetaData()

CMTPObjectMetaData()[private]

Constructor.

~CMTPObjectMetaData()

IMPORT_C~CMTPObjectMetaData()

Destructor.

Member Functions Documentation

ConstructL()

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

ConstructL(TUint, TUint, TUint, const TDesC &)

voidConstructL(TUintaDataProviderId,
TUintaFormatCode,
TUintaStorageId,
const TDesC &aSuid
)[private]
Second phase constructor.
leave
One of the system wide error code, if a processing failure occurs.

Parameters

TUint aDataProviderIdThe identifier of the data provider which owns the data object.
TUint aFormatCodeThe MTP object format code of the data object.
TUint aStorageIdThe MTP storage ID of the storage media on which the data object resides.
const TDesC & aSuidA buffer containing the SUID of the data object.

ConstructL(const TDesC &, TUint, TUint, TUint)

voidConstructL(const TDesC &aSuid,
TUintaUserRating,
TUintaBuyNow,
TUintaPlayCount
)[private]
Second phase constructor.
leave
One of the system wide error code, if a processing failure occurs.

Parameters

const TDesC & aSuidA buffer containing the SUID of the data object.
TUint aUserRatinguser rating of the data object.
TUint aBuyNowThe MTP object BuyNow code of the data object.
TUint aPlayCountThe MTP object aPlayCount code of the data object.

NewL()

IMPORT_C CMTPObjectMetaData *NewL()[static]
MTP object manager meta-data factory method. This method creates an empty object meta-data record.
leave
One of the system wide error codes, if a processing failure occurs.

NewL(TUint, TUint, TUint, const TDesC &)

IMPORT_C CMTPObjectMetaData *NewL(TUintaDataProviderId,
TUintaFormatCode,
TUintaStorageId,
const TDesC &aSuid
)[static]
MTP object manager meta-data factory method.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aDataProviderIdThe identifier of the data provider which owns the data object.
TUint aFormatCodeThe MTP object format code of the data object.
TUint aStorageIdThe MTP storage ID of the storage media on which the data object resides.
const TDesC & aSuidA buffer containing the SUID of the data object.

NewL(const TDesC &, TUint, TUint, TUint)

IMPORT_C CMTPObjectMetaData *NewL(const TDesC &aSuid,
TUintaUserRating,
TUintaBuyNow,
TUintaPlayCount
)[static]
MTP object manager meta-data factory method.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

const TDesC & aSuidA buffer containing the SUID of the data object.
TUint aUserRatinguser rating of the data object.
TUint aBuyNowThe MTP object BuyNow code of the data object.
TUint aPlayCountThe MTP object aPlayCount code of the data object.

NewLC()

IMPORT_C CMTPObjectMetaData *NewLC()[static]
MTP object manager meta-data factory method. This method creates an empty object meta-data record. A pointer to the meta-data is placed on the cleanup stack.
leave
One of the system wide error codes, if a processing failure occurs.

NewLC(TUint, TUint, TUint, const TDesC &)

IMPORT_C CMTPObjectMetaData *NewLC(TUintaDataProviderId,
TUintaFormatCode,
TUintaStorageId,
const TDesC &aSuid
)[static]
MTP object manager meta-data factory method. A pointer to the meta-data is placed on the cleanup stack.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

TUint aDataProviderIdThe identifier of the data provider which owns the data object.
TUint aFormatCodeThe MTP object format code of the data object.
TUint aStorageIdThe MTP storage ID of the storage media on which the data object resides.
const TDesC & aSuidA buffer containing the SUID of the data object.

NewLC(const TDesC &, TUint, TUint, TUint)

IMPORT_C CMTPObjectMetaData *NewLC(const TDesC &aSuid,
TUintaUserRating,
TUintaBuyNow,
TUintaPlayCount
)[static]
MTP object manager meta-data factory method. A pointer to the meta-data is placed on the cleanup stack.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

const TDesC & aSuidA buffer containing the SUID of the data object.
TUint aUserRatinguser rating of the data object.
TUint aBuyNowThe MTP object BuyNow code of the data object.
TUint aPlayCountThe MTP object aPlayCount code of the data object.

Member Enumerations Documentation

Enum TElementId

MTP object meta-data element identifiers.

Enumerators

EDataProviderId = 0

The ID of the data provider responsible for the data object. This element is of type TUint.

EFormatCode = 1

The object format code. This element is of type TUint.

EFormatSubCode = 2

The object format sub-code. Currently this field is ignored unless the EFormatCode contains a value of EMTPFormatCodeAssociation, in which case this field should the specify the MTP association type code. This element is of type TUint.

EHandle = 3

The object handle. This element is of type TUint.

EModes = 4

The set of MTP operational modes in which the object is visible and will be enumerated to a connected MTP Initiator. The MTP operational modes are represented as a set of TMTPOperationalMode bit flags. This element is of type TUint

EParentHandle = 5

The parent object handle. This element is of type TUint.

EStorageId = 6

The MTP storage ID of the storage on which the data object resides. This element is of type TUint.

EStorageVolumeId = 7

The MTP storage ID of the storage on which the data object resides. This element is of type TUint.

ESuid = 8

The data object's System Unique IDentifier (SUID). This element is of type TDesC&.

EUserRating = 9

The data object's user rating This element is of type TUint.

EBuyNow = 10

The data object's BuyNow flag This element is of type TUint.

EPlayCount = 11

The data object's Played flag This element is of type TUint.

EIdentifier = 12

The data Objects Identifier as in HandleStore table This element is of type TUint.

ENonConsumable = 13

The id related to ParentHandle This element is of type TUint. The flag, used in object modification, indicates if the modified object should be reported to initiator This element is of type TUint.

EObjectMetaDataUpdate = 14
EName = 15
ENumElements

The number of elements.

Member Data Documentation

const TElementMetaData KElements

const TElementMetaDataKElements[private, static]

The element meta-data.

The element meta-data table content.