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 TSendAsAccountAccount(TIntaIndex)const

The account specified by the index argument.

Parameters

TInt aIndexThe index of the specified account.

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.

Parameters

const TDesC & aNameThe 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 voidAppendAccountL(const TDesC &aAccountName,
TSendAsAccountaAccount
)

Appends a new account and associated name pair.

Parameters

const TDesC & aAccountNameThe human readable name with which to associate with the given account.
TSendAsAccount aAccountThe account to add.

ConstructL()

voidConstructL()[private]

Count()

IMPORT_C TIntCount()const

The number of accounts for this message type.

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aWriteStream)const

Externalizes the object from the specified stream.

RMsvWriteStream

Parameters

RWriteStream & aWriteStreamThe stream to write out to.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aReadStream)

Internalizes the object from the specified stream.

RMsvReadStream

Parameters

RReadStream & aReadStreamThe stream to read from.

MessageType()

IMPORT_C TUidMessageType()const

The UID of the message type.

NameFromAccountL(const TSendAsAccount)

IMPORT_C TPtrCNameFromAccountL(const TSendAsAccountaAccount)const

The name associated with the given account.

Parameters

const TSendAsAccount aAccountThe account whose associated name is to be returned.

NewL()

IMPORT_C CSendAsAccounts *NewL()[static]

Create a new CSendAsAccount.

RemoveAccount(TInt)

IMPORT_C voidRemoveAccount(TIntaIndex)

Removes an existing account and associated name pair.

Parameters

TInt 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

TUid aMessageTypeThe UID of the message type.

Size()

IMPORT_C TIntSize()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]