CMmsAccounts Class Reference

#include <app/cmmsaccounts.h>

Link against: mmsgenericsettings.lib

class CMmsAccounts : public CActive

Inherits from

Detailed Description

Stores MMS settings.

Constructor & Destructor Documentation

~CMmsAccounts ( )

IMPORT_C~CMmsAccounts()[virtual]

Destructor.

Member Function Documentation

AddObserverL ( MMmsSettingsObserver & )

IMPORT_C voidAddObserverL(MMmsSettingsObserver &aObserver)

Registers a new MMS Settings observer.

Parameters
aObserverA reference to an observer to be registered for events

CreateMMSAccountL ( const TDesC &, const CMmsSettings & )

IMPORT_C TMmsAccountIdCreateMMSAccountL(const TDesC &aAccountName,
const CMmsSettings &aSettings
)

Creates a MMS Account.

Parameters
aAccountNameMMS account Name
aSettingsMMS Settings
Return Value
MMS Account Id

DefaultMMSAccountL ( )

IMPORT_C TMmsAccountIdDefaultMMSAccountL()const

Gets the default MMS account.

KErrNotFound If the default account not been set previously or if MMSSettings for the default account does not exist in the Central Repository.
Return Value
The default account
Leave Codes

DeleteMMSAccountL ( const TMmsAccountId & )

IMPORT_C voidDeleteMMSAccountL(const TMmsAccountId &aAccountId)

Deletes the specified MMS account.

Parameters
aAccountIdMMS account Id

GetMMSAccountsL ( RArray< TMmsAccountId > & )

IMPORT_C voidGetMMSAccountsL(RArray< TMmsAccountId > &aAccountIds)const

Gets a list of MMS account IDs stored in the Central Repository.

Any existing entries in the array will be deleted.

Parameters
aAccountIdsA list if MMS account Ids

LoadSettingsL ( const TMmsAccountId &, CMmsSettings & )

IMPORT_C voidLoadSettingsL(const TMmsAccountId &aAccountId,
CMmsSettings &aSettings
)

Loads MMS settings from the Central Repository for the specified account Id.

Parameters
aAccountIdMMS account Id
aSettingsMMS settings

MaxMMSAccounts ( )

IMPORT_C TIntMaxMMSAccounts()

Maximum number of accounts that can be stored in the Central Repository

Return Value
The maximum number of accounts

NewL ( )

IMPORT_C CMmsAccounts *NewL()[static]

Allocates and constructs an MMS account object.

Initialises all member data to their default values.

Return Value
The newly constructed MMS account object.

NewLC ( )

IMPORT_C CMmsAccounts *NewLC()[static]

Allocates and constructs an MMS account object.

Initialises all member data to their default values.

Return Value
The newly constructed MMS account object.

PopulateDefaultSettingsL ( CMmsSettings & )

IMPORT_C voidPopulateDefaultSettingsL(CMmsSettings &aSettings)

Populates the supplied setting object with default values.

Parameters
aSettingsMMS Setting

RemoveObserver ( MMmsSettingsObserver & )

IMPORT_C voidRemoveObserver(MMmsSettingsObserver &aObserver)

Deregisters a previously registered observer.

Parameters
aObserverA reference to an observer to be unregistered for events

SaveSettingsL ( const TMmsAccountId &, const CMmsSettings & )

IMPORT_C voidSaveSettingsL(const TMmsAccountId &aAccountId,
const CMmsSettings &aSettings
)const

Saves MMS settings to the Central Repository for the specified account Id.

Parameters
aAccountIdMMS account Id
aSettingsMMS settings

SetDefaultMMSAccountL ( const TMmsAccountId & )

IMPORT_C voidSetDefaultMMSAccountL(const TMmsAccountId &aAccount)

Sets the default MMS account.

Parameters
aAccountAccount to be set as default