CSendAsMessageTypes Class Reference

class CSendAsMessageTypes : public CBase

Provides human-readable names and UIDs for the filtered list of message types.

Inherits from

Constructor & Destructor Documentation

CSendAsMessageTypes()

CSendAsMessageTypes()[private]

~CSendAsMessageTypes()

IMPORT_C~CSendAsMessageTypes()[virtual]

Destructor.

Member Functions Documentation

AppendMessageTypeL(const TDesC &, TUid)

IMPORT_C voidAppendMessageTypeL(const TDesC &aMessageTypeName,
TUidaMessageTypeUid
)

Appends a new message type and associated name pair.

Parameters

const TDesC & aMessageTypeNameThe human readable name with which to associate with the given message type.
TUid aMessageTypeUidThe message type to add.

AvailableMessageTypes()

IMPORT_C const MDesCArray &AvailableMessageTypes()const

The names of the available message types.

ConstructL()

voidConstructL()[private]

Count()

IMPORT_C TIntCount()const

The number of message types.

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aWriteStream)const

Externalizes the object from the specified stream.

RMsvWriteStream

Parameters

RWriteStream & aWriteStreamThe stream to write out to.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aReadStream)

Internalizes the object from the specified stream.

RMsvReadStream

Parameters

RReadStream & aReadStreamThe stream to read from.

MessageTypeUid(TInt)

IMPORT_C TUidMessageTypeUid(TIntaIndex)const

The UID of the message as specified by the index argument.

Parameters

TInt aIndexThe index of the specified message type.

NameFromUidL(const TUid)

IMPORT_C TPtrCNameFromUidL(const TUidaUid)const

The name associated with the given message type.

Parameters

const TUid aUidThe message type UID whose associated name is to be retrieved.

NewL()

IMPORT_C CSendAsMessageTypes *NewL()[static]

Create a new CSendAsMessageTypes.

RemoveMessageType(TInt)

IMPORT_C voidRemoveMessageType(TIntaIndex)

Removes an existing message type and associated name pair.

Parameters

TInt aIndexThe index of the entry to remove.

Reset()

IMPORT_C voidReset()

Deletes all elements from the array.

Size()

IMPORT_C TIntSize()const

Gives the size of the message types collection.

UidFromNameL(const TDesC &)

IMPORT_C TUidUidFromNameL(const TDesC &aName)const

The message type associated with the given name.

Parameters

const TDesC & aNameThe associated name of the message type whose UID is to be returned.

Member Data Documentation

CDesCArrayFlat * iMessageTypeNames

CDesCArrayFlat *iMessageTypeNames[private]

RArray< TUid > iMessageTypeUids

RArray< TUid >iMessageTypeUids[private]