CSendAsAccounts Class Reference
class CSendAsAccounts : public CBase
|
Provides human-readable names and IDs for the list of accounts for a given message type.
Constructor & Destructor Documentation
CSendAsAccounts()
CSendAsAccounts
|
(
|
)
|
[private]
|
~CSendAsAccounts()
IMPORT_C
|
~CSendAsAccounts
|
(
|
)
|
[virtual]
|
Member Functions Documentation
Account(TInt)
The account specified by the index argument.
Parameters
TInt
aIndex
|
The index of the specified account.
|
AccountFromNameL(const TDesC &)
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)
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
|
InternalizeL(RReadStream &)
IMPORT_C void
|
InternalizeL
|
(
|
RReadStream
&
|
aReadStream
|
)
|
|
MessageType()
IMPORT_C
TUid
|
MessageType
|
(
|
)
|
const
|
The UID of the message type.
NameFromAccountL(const TSendAsAccount)
The name associated with the given account.
Parameters
const
TSendAsAccount
aAccount
|
The account whose associated name is to be returned.
|
NewL()
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()
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
RArray< TSendAsAccount > iAccounts
TUid
iMessageType
TUid
|
iMessageType
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.