CSendAsMessageTypes Class Reference

#include <mw/csendasmessagetypes.h>

Link against: sendas2.lib

class CSendAsMessageTypes : public CBase

Inherits from

Detailed Description

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

Constructor & Destructor Documentation

~CSendAsMessageTypes ( )

IMPORT_C~CSendAsMessageTypes()[virtual]

Destructor.

Member Function Documentation

AppendMessageTypeL ( const TDesC &, TUid )

IMPORT_C voidAppendMessageTypeL(const TDesC &aMessageTypeName,
TUidaMessageTypeUid
)

Appends a new message type and associated name pair.

Parameters
aMessageTypeNameThe human readable name with which to associate with the given message type.
aMessageTypeUidThe message type to add.

AvailableMessageTypes ( )

IMPORT_C const MDesCArray &AvailableMessageTypes()const

The names of the available message types.

Return Value
An array of names for the available message types.

Count ( )

IMPORT_C TIntCount()const

The number of message types.

Return Value
The number of message types.

ExternalizeL ( RWriteStream & )

IMPORT_C voidExternalizeL(RWriteStream &aWriteStream)const

Externalizes the object from the specified stream.

See also: RMsvWriteStream

Parameters
aWriteStreamThe stream to write out to.

InternalizeL ( RReadStream & )

IMPORT_C voidInternalizeL(RReadStream &aReadStream)

Internalizes the object from the specified stream.

See also: RMsvReadStream

Parameters
aReadStreamThe stream to read from.

MessageTypeUid ( TInt )

IMPORT_C TUidMessageTypeUid(TIntaIndex)const

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

Parameters
aIndexThe index of the specified message type.
Return Value
The UID of the specified message type.

NameFromUidL ( const TUid )

IMPORT_C TPtrCNameFromUidL(const TUidaUid)const

The name associated with the given message type.

Parameters
aUidThe message type UID whose associated name is to be retrieved.
Return Value
A descriptor holding the associated name.

NewL ( )

IMPORT_C CSendAsMessageTypes *NewL()[static]

Create a new CSendAsMessageTypes.

Return Value
If the function succeeds, this is a pointer to a newly allocated and initialised object.

RemoveMessageType ( TInt )

IMPORT_C voidRemoveMessageType(TIntaIndex)

Removes an existing message type and associated name pair.

Parameters
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.

Return Value
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
aNameThe associated name of the message type whose UID is to be returned.
Return Value
The message type UID for the given name.