CMsvTechnologyTypeDefaultMtmSettings Class Reference

#include <mw/cmsvtechnologytypedefaultmtmsettings.h>

class CMsvTechnologyTypeDefaultMtmSettings : public CBase

Inherits from

  • CMsvTechnologyTypeDefaultMtmSettings

Detailed Description

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

Constructor & Destructor Documentation

~CMsvTechnologyTypeDefaultMtmSettings ( )

IMPORT_C~CMsvTechnologyTypeDefaultMtmSettings()

Destructor.

Member Function Documentation

DefaultMtm ( TUid, TUid & )

IMPORT_C TIntDefaultMtm(TUidaTechnologyTypeUid,
TUid &aMtmUid
)const

Get the default MTM.

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

Parameters
aTechnologyTypeUidUID of the Technology Type
aMtmUidreturns the UID of the MTM that is set as default
Return Value
KErrNone if successful, KErrNotFound if a default MTM is not set for the specified aTechnologyTypeUid

LoadSettingsL ( )

IMPORT_C voidLoadSettingsL()

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.

NewL ( RFs & )

IMPORT_C CMsvTechnologyTypeDefaultMtmSettings *NewL(RFs &aFs)[static]

NewL factory function to create a CMsvTechnologyTypeDefaultMtmSettings object.

Parameters
aFsReference to a RFs. The RFs should be connected.
Return Value
A newly created CMsvTechnologyTypeDefaultMtmSettings object

RemoveDefaultMtm ( TUid )

IMPORT_C TIntRemoveDefaultMtm(TUidaTechnologyTypeUid)

Removes the default MTM.

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

Parameters
aTechnologyTypeUidUID of the Technology Type
Return Value
KErrNone if successful

SaveSettingsL ( )

IMPORT_C voidSaveSettingsL()

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.

SetDefaultMtmL ( TUid, TUid )

IMPORT_C voidSetDefaultMtmL(TUidaTechnologyTypeUid,
TUidaMtmUid
)

Set the default MTM.

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

Parameters
aTechnologyTypeUidUID of the Technology Type
aMtmUidUID of the MTM that is set as default
Leave Codes
KErrArgumentif aMtmUid is not part of the specified technology type group (aTechnologyTypeUid)