CSendAsAccounts Class Reference

#include <mw/csendasaccounts.h>

Link against: sendas2.lib

class CSendAsAccounts : public CBase

Inherits from

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.

Parameters
aIndexThe index of the specified account.
Return Value
The account specified by the index argument.

AccountFromNameL ( const TDesC & )

IMPORT_C TSendAsAccountAccountFromNameL(const TDesC &aName)const

The account associated with the given name.

Parameters
aNameThe associated name for the account to be returned.
Return Value
An account for the associated name.
Leave Codes
KErrNotFoundAn account with the given name cannot be found.

AccountNames ( )

IMPORT_C const MDesCArray &AccountNames()const

The array of names of accounts for this message type.

Return Value
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.

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

Return Value
The number of accounts.

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.

MessageType ( )

IMPORT_C TUidMessageType()const

The UID of the message type.

Return Value
The UID of the message type.

NameFromAccountL ( const TSendAsAccount )

IMPORT_C TPtrCNameFromAccountL(const TSendAsAccountaAccount)const

The name associated with the given account.

Parameters
aAccountThe account whose associated name is to be returned.
Return Value
A descriptor holding the associated name.

NewL ( )

IMPORT_C CSendAsAccounts *NewL()[static]

Create a new CSendAsAccount.

Return Value
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.

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

Parameters
aMessageTypeThe UID of the message type.

Size ( )

IMPORT_C TIntSize()const

Gives the size of the accounts collection.

Return Value
The size of the accounts collection.