Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <cmsvtechnologytypedefaultmtmsettings.h>
Link against: msgs.lib
Link against: msgs_autoshutdown.lib

Class CMsvTechnologyTypeDefaultMtmSettings

class CMsvTechnologyTypeDefaultMtmSettings : public CBase;

Description

Stores default MTM settings for a technology type to the Central Repository.

Derivation

Members

Defined in CMsvTechnologyTypeDefaultMtmSettings:

Inherited from CBase:


Construction and destruction


NewL(RFs &)

IMPORT_C static CMsvTechnologyTypeDefaultMtmSettings* NewL(RFs &aFs);

Description

NewL factory function to create a CMsvTechnologyTypeDefaultMtmSettings object.

Parameters

RFs &aFs

Reference to a RFs. The RFs should be connected.

Return value

CMsvTechnologyTypeDefaultMtmSettings *

A newly created CMsvTechnologyTypeDefaultMtmSettings object


~CMsvTechnologyTypeDefaultMtmSettings()

IMPORT_C ~CMsvTechnologyTypeDefaultMtmSettings();

Description

Destructor.

[Top]


Member functions


DefaultMtm(TUid,TUid &)const

IMPORT_C TInt DefaultMtm(TUid aTechnologyTypeUid, TUid &aMtmUid) const;

Description

Get the default MTM.

This function returns the UID of the default MTM that is set for the specified technology type.

Parameters

TUid aTechnologyTypeUid

UID of the Technology Type

TUid &aMtmUid

returns the UID of the MTM that is set as default

Return value

TInt

KErrNone if successful, KErrNotFound if a default MTM is not set for the specified aTechnologyTypeUid


SetDefaultMtmL(TUid,TUid)

IMPORT_C void SetDefaultMtmL(TUid aTechnologyTypeUid, TUid aMtmUid);

Description

Set the default MTM.

This function sets the default MTM for the specified technology type to the specified MTM UID.

Parameters

TUid aTechnologyTypeUid

UID of the Technology Type

TUid aMtmUid

UID of the MTM that is set as default

Leave codes

KErrArgument

if aMtmUid is not part of the specified technology type group (aTechnologyTypeUid)


RemoveDefaultMtm(TUid)

IMPORT_C TInt RemoveDefaultMtm(TUid aTechnologyTypeUid);

Description

Removes the default MTM.

This function removes the UID that is set as default MTM from the list. If CMsvTechnologyTypeDefaultMtmSettings::DefaultMtm(TUid,TUid &)const is called after this function, KErrNotFound will be returned

Parameters

TUid aTechnologyTypeUid

UID of the Technology Type

Return value

TInt

KErrNone if successful


LoadSettingsL()

IMPORT_C void LoadSettingsL();

Description

Load the default MTM settings from the central repository.

This function loads the list of default MTMs that is stored in the central repository. The list is first emptied.


SaveSettingsL()

IMPORT_C void SaveSettingsL();

Description

Save the default MTM settings to the central repository.

This function saves the list of default MTMs that is stored in the central repository. Entries that are set to delete will be removed first. The function will leave with error code KErrLocked if another save is in progress.