CMtmUiDataRegistry Class Reference

#include <mw/mtudreg.h>

Link against: mtur.lib

class CMtmUiDataRegistry : public CObserverRegistry, public CObserverRegistry
Public Member Functions
virtual ~CMtmUiDataRegistry()
IMPORT_C CMtmUiDataRegistry *NewL(CMsvSession &, TTimeIntervalMicroSeconds32)
IMPORT_C CBaseMtmUiData *NewMtmUiDataLayerL(const TUid &)
Protected Member Functions
CMtmUiDataRegistry(CMsvSession &, TTimeIntervalMicroSeconds32)
Inherited Attributes
CMtmDllRegistry::iFs
CMtmDllRegistry::iMtmDllTypeUid
CMtmDllRegistry::iRegisteredMtmDllArray
CMtmDllRegistry::iTimeoutMicroSeconds32
CObserverRegistry::iIsAdded
CObserverRegistry::iMsvSession
Inherited Enumerations
MMsvSessionObserver:TMsvSessionEvent
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CMtmDllRegistry::AddRegisteredMtmDll(TUid,TUid,const CMtmDllInfo &,MRegisteredMtmDllObserver &)
CMtmDllRegistry::CMtmDllRegistry(RFs &,TUid,TTimeIntervalMicroSeconds32)
CMtmDllRegistry::IsInUse()const
CMtmDllRegistry::IsInUse(TUid)const
CMtmDllRegistry::IsPresent(TUid)const
CMtmDllRegistry::MtmTypeUid(TInt)const
CMtmDllRegistry::MtmTypeUidToIndex(TUid)const
CMtmDllRegistry::NumRegisteredMtmDlls()const
CMtmDllRegistry::RegisteredMtmDllInfo(TUid)const
CMtmDllRegistry::RemoveAllRegisteredMtmDlls()
CMtmDllRegistry::RemoveRegisteredMtmDll(TUid)
CMtmDllRegistry::TechnologyTypeUid(TUid)const
CMtmDllRegistry::~CMtmDllRegistry()
CObserverRegistry::CObserverRegistry(CMsvSession &,TUid,TTimeIntervalMicroSeconds32)
CObserverRegistry::ConstructL()
CObserverRegistry::HandleSessionEventL(TMsvSessionEvent,TAny *,TAny *,TAny *)
CObserverRegistry::~CObserverRegistry()

Detailed Description

Accesses the UI Data MTM registry.

This registry holds details of the all the UI Data MTMs currently available on the system. Message client applications use this class to get a CBaseMtmUiData-derived object by which to access UI Data MTM functionality.

Note that the base class CMtmDllRegistry provides functions for discovering what MTMs are present in the registry.

Constructor & Destructor Documentation

CMtmUiDataRegistry ( CMsvSession &, TTimeIntervalMicroSeconds32 )

CMtmUiDataRegistry(CMsvSession &aMsvSession,
TTimeIntervalMicroSeconds32aTimeoutMicroSeconds32
)[protected]

~CMtmUiDataRegistry ( )

~CMtmUiDataRegistry()[virtual]

Member Function Documentation

NewL ( CMsvSession &, TTimeIntervalMicroSeconds32 )

IMPORT_C CMtmUiDataRegistry *NewL(CMsvSession &aMsvSession,
TTimeIntervalMicroSeconds32aTimeoutMicroSeconds32 =  TTimeIntervalMicroSeconds32(30000000)
)[static]

Gets a CMtmUiDataRegistry object.

The client should delete this object when it is no longer required.

The registry keeps a reference count of the number of instances of each MTM in use. When that reference count falls to zero, the DLL that provides the MTM is unloaded. However, this is not done immediately, but only after the time specified in aTimeoutMicroSeconds32. This increases efficiency in cases where the DLL is required again shortly.

Parameters
aMsvSessionThe client's Message Server session
aTimeoutMicroSeconds32Time to wait before unloading MTM DLLs
Return Value
A pointer to a newly allocated and initialised object
Leave Codes
KErrNoMemoryA memory allocation failed

NewMtmUiDataLayerL ( const TUid & )

IMPORT_C CBaseMtmUiData *NewMtmUiDataLayerL(const TUid &aMtmTypeUid)

Creates a UI Data MTM object for the MTM specified by aMtmTypeUid.

The client should delete the returned object when it is no longer required.

Parameters
aMtmTypeUidUID of MTM to obtain
Return Value
UI Data MTM object for specified MTM
Leave Codes
KErrNotFoundaMtmTypeUid does not specify a registered MTM
KErrNoMemoryA memory allocation failed
KErrBadLibraryEntryPointMalformed MTM: a library entry point was not of the required type
DLLloading error codes The DLL that provides the MTM cannot be loaded