CSendAsMessageTypes Class Reference

#include <mw/csendasmessagetypes.h>

Link against: sendas2.lib

class CSendAsMessageTypes : public CBase

Inherits from

  • CSendAsMessageTypes

    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.

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

    Returns: An array of names for the available message types.

    Count ( )

    IMPORT_C TIntCount()const

    The number of message types.

    Returns: The number of message types.

    ExternalizeL ( RWriteStream & )

    IMPORT_C voidExternalizeL(RWriteStream &aWriteStream)const

    Externalizes the object from the specified stream.

    See also: RMsvWriteStream

    ParameterDescription
    aWriteStreamThe stream to write out to.

    InternalizeL ( RReadStream & )

    IMPORT_C voidInternalizeL(RReadStream &aReadStream)

    Internalizes the object from the specified stream.

    See also: RMsvReadStream

    ParameterDescription
    aReadStreamThe stream to read from.

    MessageTypeUid ( TInt )

    IMPORT_C TUidMessageTypeUid(TIntaIndex)const

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

    ParameterDescription
    aIndexThe index of the specified message type.

    Returns: The UID of the specified message type.

    NameFromUidL ( const TUid )

    IMPORT_C TPtrCNameFromUidL(const TUidaUid)const

    The name associated with the given message type.

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

    Returns: A descriptor holding the associated name.

    NewL ( )

    IMPORT_C CSendAsMessageTypes *NewL()[static]

    Create a new CSendAsMessageTypes.

    Returns: 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.

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

    Returns: 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.

    ParameterDescription
    aNameThe associated name of the message type whose UID is to be returned.

    Returns: The message type UID for the given name.