EPOC   SDK Home Glossary Indexes Previous Next Up

CMtmDllRegistry class


Contents


CMtmDllRegistry class — MTM registry

Section Contents


Overview

Compatibility

Applications that use this class will not work correctly on a version of EPOC earlier than ER5.

Derivation

CBase

Abstract: CBase behavior

Defined in

msvreg.h

Link against

ment.lib

Description

This class is the base for classes to access 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.


Registry information


IsInUse() — Any MTM in use

TBool IsInUse() const;

Description

Use this function to check if any registered MTM is in use.

Return value

TBool

ETrue if any MTM in use, else EFalse


IsInUse() — Specified MTM in use

TBool IsInUse(TUid aMtmTypeUid) const;

Description

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

Arguments

TUid aMtmTypeUid

UID of MTM to check

Return value

TBool

ETrue if the specified MTM in use, else EFalse


IsPresent() — MTM registered

TBool IsPresent(TUid aMtmTypeUid) const;

Description

Use this function to check if the MTM with UID aMtmTypeUid is registered.

Arguments

TUid aMtmTypeUid

UID of MTM to check

Return value

TBool

ETrue if the specified MTM in registered, else EFalse


MtmTypeUid() — MTM UID

TUid MtmTypeUid(TInt anIndex) const;

Description

Use this function to get the MTM UID of the registered MTM indexed by anIndex.

Arguments

TInt anIndex

Indexed of registered MTM

Return value

TUid

MTM UID


NumRegisteredMtmDlls() — Number of registered MTMs

TInt NumRegisteredMtmDlls() const;

Description

Use this function to get the number of registered MTMs.

Return value

TInt

Number of registered MTMs


RegisteredMtmDllInfo() — Registration data

const CMtmDllInfo& RegisteredMtmDllInfo(TUid aMtmTypeUid) const;

Description

Use this function to get the registration data for the specified MTM.

Arguments

TUid aMtmTypeUid

UID of MTM

Return value

CMtmDllInfo&

Registration data for MTM


TechnologyTypeUid() — Technology type UID

TUid TechnologyTypeUid(TUid aMtmTypeUid) const;

Description

Use this function to get the technology type UID for the specified MTM.

Arguments

TUid aMtmTypeUid

UID of MTM

Return value

TUid

Technology type UID

EPOC       SDK Home Glossary Indexes Previous Next Up