TMPXAttribute Class Reference

class TMPXAttribute

TMPXAttribute data type class. It represents unique id of an item, e.g. a song in the device.

mpxcommon.lib

Public Member Functions
TMPXAttribute()
TMPXAttribute(TInt, TUint)
TMPXAttribute(const TMPXAttribute &)
TMPXAttribute(const TMPXAttributeData &)
IMPORT_C TUintAttributeId()
IMPORT_C TIntContentId()
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C TBoolMatch(const TMPXAttribute &, const TMPXAttribute &)
IMPORT_C TBoolMatchContentId(const TMPXAttribute &, const TMPXAttribute &)
IMPORT_C TMPXAttribute &operator=(const TMPXAttribute &)
IMPORT_C TBooloperator==(const TMPXAttribute &)
Private Attributes
TMPXAttributeData iData

Constructor & Destructor Documentation

TMPXAttribute()

IMPORT_CTMPXAttribute()

C++ default constructor.

Since
S60 3.2.3

TMPXAttribute(TInt, TUint)

IMPORT_CTMPXAttribute(TIntaContentId,
TUintaAttributeId
)

C++ constructor.

Since
S60 3.2.3

Parameters

TInt aContentIdmedia content id
TUint aAttributeIdattribute id within the content

TMPXAttribute(const TMPXAttribute &)

IMPORT_CTMPXAttribute(const TMPXAttribute &aId)

Copy constructor.

Since
S60 3.2.3

Parameters

const TMPXAttribute & aIdsource of attribute id

TMPXAttribute(const TMPXAttributeData &)

IMPORT_CTMPXAttribute(const TMPXAttributeData &aData)

Copy constructor.

Since
S60 3.2.3

Parameters

const TMPXAttributeData & aDatasource of attribute data

Member Functions Documentation

AttributeId()

IMPORT_C TUintAttributeId()const

Attribute id.

Since
S60 3.2.3

ContentId()

IMPORT_C TIntContentId()const

Get content id.

Since
S60 3.2.3

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Externalize the object of this class.

Since
S60 3.2.3

Parameters

RWriteStream & aStreamwrite stream

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Internalize the object of this class.

Since
S60 3.2.3

Parameters

RReadStream & aStreamread stream

Match(const TMPXAttribute &, const TMPXAttribute &)

IMPORT_C TBoolMatch(const TMPXAttribute &aFirst,
const TMPXAttribute &aSecond
)[static]

Helper function to do match in the RArray of the objects of this class.

Since
S60 3.2.3

Parameters

const TMPXAttribute & aFirstfirst object
const TMPXAttribute & aSecondsecond object

MatchContentId(const TMPXAttribute &, const TMPXAttribute &)

IMPORT_C TBoolMatchContentId(const TMPXAttribute &aFirst,
const TMPXAttribute &aSecond
)[static]

Helper function to do match in the RArray of the objects of this class by content id.

Since
S60 3.2.3

Parameters

const TMPXAttribute & aFirstfirst object
const TMPXAttribute & aSecondsecond object

operator=(const TMPXAttribute &)

IMPORT_C TMPXAttribute &operator=(const TMPXAttribute &aId)

Overloaded assignment operator.

Since
S60 3.2.3

Parameters

const TMPXAttribute & aIdsource of attribute

operator==(const TMPXAttribute &)

IMPORT_C TBooloperator==(const TMPXAttribute &aId)const

Overloaded equal operator.

Since
S60 3.2.3

Parameters

const TMPXAttribute & aIdid to be compared

Member Data Documentation

TMPXAttributeData iData

TMPXAttributeData iData[private]