CMsvTechnologyTypeDefaultMtmSettings Class Reference

class CMsvTechnologyTypeDefaultMtmSettings : public CBase

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

Inherits from

  • CMsvTechnologyTypeDefaultMtmSettings

Constructor & Destructor Documentation

CMsvTechnologyTypeDefaultMtmSettings(RFs &)

CMsvTechnologyTypeDefaultMtmSettings ( RFs & aFs ) [private]

Constructor.

Parameters

RFs & aFs Reference to a RFs. The RFs should be connected.

~CMsvTechnologyTypeDefaultMtmSettings()

IMPORT_C ~CMsvTechnologyTypeDefaultMtmSettings ( )

Destructor.

Member Functions Documentation

CheckIfMtmIsPartOfTechnologyTypeGroupL(const TUid, const TUid, const TUid)

void CheckIfMtmIsPartOfTechnologyTypeGroupL ( const TUid aTechnologyTypeUid,
const TUid aMtmUid,
const TUid aMtmTypeUid
) const [private]

Parameters

const TUid aTechnologyTypeUid
const TUid aMtmUid
const TUid aMtmTypeUid

ConstructL()

void ConstructL ( ) [private]

Second phase construction.

DefaultMtm(TUid, TUid &)

IMPORT_C TInt DefaultMtm ( TUid aTechnologyTypeUid,
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

TUid aTechnologyTypeUid UID of the Technology Type
TUid & aMtmUid returns the UID of the MTM that is set as default

FindDefaultMtm(const TUid, TMsvTechnologyTypeDefaultMtmInfo &)

TInt FindDefaultMtm ( const TUid aTechnologyTypeUid,
TMsvTechnologyTypeDefaultMtmInfo & aTechnologyTypeDefaultMtmInfo
) const [private]

Parameters

const TUid aTechnologyTypeUid
TMsvTechnologyTypeDefaultMtmInfo & aTechnologyTypeDefaultMtmInfo

LoadSettingsL()

IMPORT_C void LoadSettingsL ( )

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

RFs & aFs Reference to a RFs. The RFs should be connected.

RemoveDefaultMtm(TUid)

IMPORT_C TInt RemoveDefaultMtm ( TUid aTechnologyTypeUid )

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

TUid aTechnologyTypeUid UID of the Technology Type

SaveSettingsL()

IMPORT_C void SaveSettingsL ( )

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 void SetDefaultMtmL ( TUid aTechnologyTypeUid,
TUid aMtmUid
)

Set the default MTM.

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

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

Parameters

TUid aTechnologyTypeUid UID of the Technology Type
TUid aMtmUid UID of the MTM that is set as default

Member Data Documentation

RFs & iFs

RFs & iFs [private]

RArray< TUid > iRemovedTechnologyTypes

RArray < TUid > iRemovedTechnologyTypes [private]

CRepository * iRepository

CRepository * iRepository [private]

RArray< TMsvTechnologyTypeDefaultMtmInfo > iTechnologyTypeDefaultMtmArray

RArray < TMsvTechnologyTypeDefaultMtmInfo > iTechnologyTypeDefaultMtmArray [private]