CSendAsAccounts Class Reference

class CSendAsAccounts : public CBase

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

Inherits from

Constructor & Destructor Documentation

CSendAsAccounts()

CSendAsAccounts ( ) [private]

~CSendAsAccounts()

IMPORT_C ~CSendAsAccounts ( ) [virtual]

Destructor.

Member Functions Documentation

Account(TInt)

IMPORT_C TSendAsAccount Account ( TInt aIndex ) const

The account specified by the index argument.

Parameters

TInt aIndex The index of the specified account.

AccountFromNameL(const TDesC &)

IMPORT_C TSendAsAccount AccountFromNameL ( const TDesC & aName ) const

The account associated with the given name.

leave
KErrNotFound An account with the given name cannot be found.

Parameters

const TDesC & aName The associated name for the account to be returned.

AccountNames()

IMPORT_C const MDesCArray & AccountNames ( ) const

The array of names of accounts for this message type.

AppendAccountL(const TDesC &, TSendAsAccount)

IMPORT_C void AppendAccountL ( const TDesC & aAccountName,
TSendAsAccount aAccount
)

Appends a new account and associated name pair.

Parameters

const TDesC & aAccountName The human readable name with which to associate with the given account.
TSendAsAccount aAccount The account to add.

ConstructL()

void ConstructL ( ) [private]

Count()

IMPORT_C TInt Count ( ) const

The number of accounts for this message type.

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aWriteStream ) const

Externalizes the object from the specified stream.

RMsvWriteStream

Parameters

RWriteStream & aWriteStream The stream to write out to.

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( RReadStream & aReadStream )

Internalizes the object from the specified stream.

RMsvReadStream

Parameters

RReadStream & aReadStream The stream to read from.

MessageType()

IMPORT_C TUid MessageType ( ) const

The UID of the message type.

NameFromAccountL(const TSendAsAccount)

IMPORT_C TPtrC NameFromAccountL ( const TSendAsAccount aAccount ) const

The name associated with the given account.

Parameters

const TSendAsAccount aAccount The account whose associated name is to be returned.

NewL()

IMPORT_C CSendAsAccounts * NewL ( ) [static]

Create a new CSendAsAccount.

RemoveAccount(TInt)

IMPORT_C void RemoveAccount ( TInt aIndex )

Removes an existing account and associated name pair.

Parameters

TInt aIndex The index of the entry to remove.

Reset()

IMPORT_C void Reset ( )

Deletes all elements from the array.

SetMessageType(TUid)

IMPORT_C void SetMessageType ( TUid aMessageType )

Sets UID of the message type.

Parameters

TUid aMessageType The UID of the message type.

Size()

IMPORT_C TInt Size ( ) const

Gives the size of the accounts collection.

Member Data Documentation

CDesCArrayFlat * iAccountNames

CDesCArrayFlat * iAccountNames [private]

RArray< TSendAsAccount > iAccounts

RArray < TSendAsAccount > iAccounts [private]

TUid iMessageType

TUid iMessageType [private]