CMmsAccounts Class Reference
#include
<app/cmmsaccounts.h>
Link against: mmsgenericsettings.lib
class CMmsAccounts : public CActive |
Detailed Description
Stores MMS settings.
Constructor & Destructor Documentation
~CMmsAccounts ( )
IMPORT_C | ~CMmsAccounts | ( | ) | [virtual] |
Member Function Documentation
AddObserverL ( MMmsSettingsObserver & )
Registers a new MMS Settings observer.
Parameter | Description | aObserver | A reference to an observer to be registered for events |
CreateMMSAccountL ( const TDesC &, const CMmsSettings & )
Parameter | Description | aAccountName | MMS account Name |
aSettings | MMS Settings |
DefaultMMSAccountL ( )
Gets the default MMS account.
-
leave
KErrNotFound If the default account not been set previously or if MMSSettings for the default account does not exist in the Central Repository.
Returns: The default account
DeleteMMSAccountL ( const TMmsAccountId & )
Deletes the specified MMS account.
Parameter | Description | aAccountId | MMS account Id |
GetMMSAccountsL ( RArray< TMmsAccountId > & )
Gets a list of MMS account IDs stored in the Central Repository.
Any existing entries in the array will be deleted.
Parameter | Description | aAccountIds | A list if MMS account Ids |
LoadSettingsL ( const TMmsAccountId &, CMmsSettings & )
Loads MMS settings from the Central Repository for the specified account Id.
Parameter | Description | aAccountId | MMS account Id |
aSettings | MMS settings |
MaxMMSAccounts ( )
IMPORT_C TInt | MaxMMSAccounts | ( | ) | |
Maximum number of accounts that can be stored in the Central Repository
Returns: The maximum number of accounts
NewL ( )
Allocates and constructs an MMS account object.
Initialises all member data to their default values.
Returns: The newly constructed MMS account object.
NewLC ( )
Allocates and constructs an MMS account object.
Initialises all member data to their default values.
Returns: The newly constructed MMS account object.
PopulateDefaultSettingsL ( CMmsSettings & )
IMPORT_C void | PopulateDefaultSettingsL | ( | CMmsSettings & | aSettings | ) | |
Populates the supplied setting object with default values.
Parameter | Description | aSettings | MMS Setting |
RemoveObserver ( MMmsSettingsObserver & )
Deregisters a previously registered observer.
Parameter | Description | aObserver | A reference to an observer to be unregistered for events |
SaveSettingsL ( const TMmsAccountId &, const CMmsSettings & )
Saves MMS settings to the Central Repository for the specified account Id.
Parameter | Description | aAccountId | MMS account Id |
aSettings | MMS settings |
SetDefaultMMSAccountL ( const TMmsAccountId & )
IMPORT_C void | SetDefaultMMSAccountL | ( | const TMmsAccountId & | aAccount | ) | |
Sets the default MMS account.
Parameter | Description | aAccount | Account to be set as default |