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 void AppendMessageTypeL ( const TDesC & aMessageTypeName,
TUid aMessageTypeUid
)

Appends a new message type and associated name pair.

Parameters

const TDesC & aMessageTypeName The human readable name with which to associate with the given message type.
TUid aMessageTypeUid The message type to add.

AvailableMessageTypes()

IMPORT_C const MDesCArray & AvailableMessageTypes ( ) const

The names of the available message types.

ConstructL()

void ConstructL ( ) [private]

Count()

IMPORT_C TInt Count ( ) const

The number of message types.

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aWriteStream ) const

Externalizes the object from the specified stream.

RMsvWriteStream

Parameters

RWriteStream & aWriteStream The stream to write out to.

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( RReadStream & aReadStream )

Internalizes the object from the specified stream.

RMsvReadStream

Parameters

RReadStream & aReadStream The stream to read from.

MessageTypeUid(TInt)

IMPORT_C TUid MessageTypeUid ( TInt aIndex ) const

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

Parameters

TInt aIndex The index of the specified message type.

NameFromUidL(const TUid)

IMPORT_C TPtrC NameFromUidL ( const TUid aUid ) const

The name associated with the given message type.

Parameters

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

NewL()

IMPORT_C CSendAsMessageTypes * NewL ( ) [static]

Create a new CSendAsMessageTypes .

RemoveMessageType(TInt)

IMPORT_C void RemoveMessageType ( TInt aIndex )

Removes an existing message type and associated name pair.

Parameters

TInt aIndex The index of the entry to remove.

Reset()

IMPORT_C void Reset ( )

Deletes all elements from the array.

Size()

IMPORT_C TInt Size ( ) const

Gives the size of the message types collection.

UidFromNameL(const TDesC &)

IMPORT_C TUid UidFromNameL ( const TDesC & aName ) const

The message type associated with the given name.

Parameters

const TDesC & aName The 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]