Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: msvreg.h
Link against: msgs.lib

Class CMtmDllRegistry

CMtmDllRegistry

Support

Supported from 5.0

Description

Accesses the various MTM component registries. The derived classes used by clients are CClientMtmRegistry, CMtmUiDataRegistry, and CMtmUiRegistry. It provides functions to discover the MTMs registered in such a registry. The registered MTMs can be regarded as existing in a list: you can use NumRegisteredMtmDlls() to get the number in the list, and MtmTypeUid() to index into it.

In pre-Unicode versions this class had the import library ment.lib.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CMtmDllRegistryAccesses the various MTM component registries

Defined in CMtmDllRegistry:
IsInUse(), IsPresent(), MtmTypeUid(), NumRegisteredMtmDlls(), RegisteredMtmDllInfo(), TechnologyTypeUid()

Inherited from CBase:
operator new()


Registry information


IsInUse()

TBool IsInUse() const;

Description

Tests if any registered MTM is in use.

Return value

TBool

ETrue if any MTM in use, else EFalse


IsInUse()

TBool IsInUse(TUid aMtmTypeUid) const;

Description

Tests if the MTM with the specified UID is in use. You should check that the MTM is registered, through IsPresent(), before calling this function.

Parameters

TUid aMtmTypeUid

UID of MTM to check

Return value

TBool

ETrue if the specified MTM in use, else EFalse


IsPresent()

TBool IsPresent(TUid aMtmTypeUid) const;

Description

Tests if the MTM with the specified UID is registered.

Parameters

TUid aMtmTypeUid

UID of MTM to check

Return value

TBool

ETrue if the specified MTM in registered, else EFalse


MtmTypeUid()

TUid MtmTypeUid(TInt anIndex) const;

Description

Gets the MTM UID of a registered MTM using its index.

Parameters

TInt anIndex

Indexed of registered MTM

Return value

TUid

MTM UID


NumRegisteredMtmDlls()

TInt NumRegisteredMtmDlls() const;

Description

Gets the number of registered MTMs.

Return value

TInt

Number of registered MTMs


RegisteredMtmDllInfo()

const CMtmDllInfo& RegisteredMtmDllInfo(TUid aMtmTypeUid) const;

Description

Gets the registration data for the specified MTM.

Parameters

TUid aMtmTypeUid

UID of MTM

Return value

CMtmDllInfo&

Registration data for MTM


TechnologyTypeUid()

TUid TechnologyTypeUid(TUid aMtmTypeUid) const;

Description

Gets the technology type UID for the specified MTM.

Parameters

TUid aMtmTypeUid

UID of MTM

Return value

TUid

Technology type UID