CSendAsAccounts Class Reference

#include <mw/csendasaccounts.h>

Link against: sendas2.lib

class CSendAsAccounts : public CBase

Inherits from

  • CSendAsAccounts

    Detailed Description

    Provides human-readable names and IDs for the list of accounts for a given message type.

    Constructor & Destructor Documentation

    ~CSendAsAccounts ( )

    IMPORT_C~CSendAsAccounts()[virtual]

    Destructor.

    Member Function Documentation

    Account ( TInt )

    IMPORT_C TSendAsAccountAccount(TIntaIndex)const

    The account specified by the index argument.

    ParameterDescription
    aIndexThe index of the specified account.

    Returns: The account specified by the index argument.

    AccountFromNameL ( const TDesC & )

    IMPORT_C TSendAsAccountAccountFromNameL(const TDesC &aName)const

    The account associated with the given name.

    leave
    KErrNotFound An account with the given name cannot be found.
    ParameterDescription
    aNameThe associated name for the account to be returned.

    Returns: An account for the associated name.

    AccountNames ( )

    IMPORT_C const MDesCArray &AccountNames()const

    The array of names of accounts for this message type.

    Returns: An array of name of accounts.

    AppendAccountL ( const TDesC &, TSendAsAccount )

    IMPORT_C voidAppendAccountL(const TDesC &aAccountName,
    TSendAsAccountaAccount
    )

    Appends a new account and associated name pair.

    ParameterDescription
    aAccountNameThe human readable name with which to associate with the given account.
    aAccountThe account to add.

    Count ( )

    IMPORT_C TIntCount()const

    The number of accounts for this message type.

    Returns: The number of accounts.

    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.

    MessageType ( )

    IMPORT_C TUidMessageType()const

    The UID of the message type.

    Returns: The UID of the message type.

    NameFromAccountL ( const TSendAsAccount )

    IMPORT_C TPtrCNameFromAccountL(const TSendAsAccountaAccount)const

    The name associated with the given account.

    ParameterDescription
    aAccountThe account whose associated name is to be returned.

    Returns: A descriptor holding the associated name.

    NewL ( )

    IMPORT_C CSendAsAccounts *NewL()[static]

    Create a new CSendAsAccount.

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

    RemoveAccount ( TInt )

    IMPORT_C voidRemoveAccount(TIntaIndex)

    Removes an existing account and associated name pair.

    ParameterDescription
    aIndexThe index of the entry to remove.

    Reset ( )

    IMPORT_C voidReset()

    Deletes all elements from the array.

    SetMessageType ( TUid )

    IMPORT_C voidSetMessageType(TUidaMessageType)

    Sets UID of the message type.

    ParameterDescription
    aMessageTypeThe UID of the message type.

    Size ( )

    IMPORT_C TIntSize()const

    Gives the size of the accounts collection.

    Returns: The size of the accounts collection.