#include <mw/csendasaccounts.h>
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.
Parameter | Description |
---|---|
aIndex | The index of the specified account. |
Returns: The account specified by the index argument.
IMPORT_C TSendAsAccount | AccountFromNameL | ( | const TDesC & | aName | ) | const |
The account associated with the given name.
Parameter | Description |
---|---|
aName | The associated name for the account to be returned. |
Returns: An account for the associated name.
IMPORT_C const MDesCArray & | AccountNames | ( | ) | const |
The array of names of accounts for this message type.
Returns: An array of name of accounts.
IMPORT_C void | AppendAccountL | ( | const TDesC & | aAccountName, |
TSendAsAccount | aAccount | |||
) |
Appends a new account and associated name pair.
Parameter | Description |
---|---|
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.
Returns: The number of accounts.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aWriteStream | ) | const |
Externalizes the object from the specified stream.
See also: RMsvWriteStream
Parameter | Description |
---|---|
aWriteStream | The stream to write out to. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aReadStream | ) |
Internalizes the object from the specified stream.
See also: RMsvReadStream
Parameter | Description |
---|---|
aReadStream | The stream to read from. |
IMPORT_C TPtrC | NameFromAccountL | ( | const TSendAsAccount | aAccount | ) | const |
The name associated with the given account.
Parameter | Description |
---|---|
aAccount | The account whose associated name is to be returned. |
Returns: A descriptor holding the associated name.
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.
IMPORT_C void | RemoveAccount | ( | TInt | aIndex | ) |
Removes an existing account and associated name pair.
Parameter | Description |
---|---|
aIndex | The index of the entry to remove. |
IMPORT_C void | SetMessageType | ( | TUid | aMessageType | ) |
Sets UID of the message type.
Parameter | Description |
---|---|
aMessageType | The UID of the message type. |
IMPORT_C TInt | Size | ( | ) | const |
Gives the size of the accounts collection.
Returns: The size of the accounts collection.