#include <mw/csendasaccounts.h>
Link against: sendas2.lib
class CSendAsAccounts : public CBase |
Public Member Functions | |
---|---|
virtual | ~CSendAsAccounts() |
IMPORT_C TSendAsAccount | Account(TInt) |
IMPORT_C TSendAsAccount | AccountFromNameL(const TDesC &) |
IMPORT_C const MDesCArray & | AccountNames() |
IMPORT_C void | AppendAccountL(const TDesC &, TSendAsAccount) |
IMPORT_C TInt | Count() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TUid | MessageType() |
IMPORT_C TPtrC | NameFromAccountL(const TSendAsAccount) |
IMPORT_C CSendAsAccounts * | NewL() |
IMPORT_C void | RemoveAccount(TInt) |
IMPORT_C void | Reset() |
IMPORT_C void | SetMessageType(TUid) |
IMPORT_C TInt | Size() |
Provides human-readable names and IDs for the list of accounts for a given message type.
IMPORT_C TSendAsAccount | Account | ( | TInt | aIndex | ) | const |
The account specified by the index argument.
Parameters | |
---|---|
aIndex | The index of the specified account. |
IMPORT_C TSendAsAccount | AccountFromNameL | ( | const TDesC & | aName | ) | const |
The account associated with the given name.
Parameters | |
---|---|
aName | The associated name for the account to be returned. |
Leave Codes | |
---|---|
KErrNotFound | An account with the given name cannot be found. |
IMPORT_C const MDesCArray & | AccountNames | ( | ) | const |
The array of names of accounts for this message type.
IMPORT_C void | AppendAccountL | ( | const TDesC & | aAccountName, |
TSendAsAccount | aAccount | |||
) |
Appends a new account and associated name pair.
Parameters | |
---|---|
aAccountName | The human readable name with which to associate with the given account. |
aAccount | The account to add. |
IMPORT_C TInt | Count | ( | ) | const |
The number of accounts for this message type.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aWriteStream | ) | const |
Parameters | |
---|---|
aWriteStream | The stream to write out to. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aReadStream | ) |
Parameters | |
---|---|
aReadStream | The stream to read from. |
IMPORT_C TUid | MessageType | ( | ) | const |
The UID of the message type.
IMPORT_C TPtrC | NameFromAccountL | ( | const TSendAsAccount | aAccount | ) | const |
The name associated with the given account.
Parameters | |
---|---|
aAccount | The account whose associated name is to be returned. |
IMPORT_C CSendAsAccounts * | NewL | ( | ) | [static] |
Create a new CSendAsAccount.
IMPORT_C void | RemoveAccount | ( | TInt | aIndex | ) |
Removes an existing account and associated name pair.
Parameters | |
---|---|
aIndex | The index of the entry to remove. |
IMPORT_C void | SetMessageType | ( | TUid | aMessageType | ) |
Sets UID of the message type.
Parameters | |
---|---|
aMessageType | The UID of the message type. |
IMPORT_C TInt | Size | ( | ) | const |
Gives the size of the accounts collection.