EPOC   SDK Home Glossary Indexes Previous Next Up

CMtmDllInfo class


Contents


CMtmDllInfo class — MTM registry information

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 encapsulates the registration data for a single concrete MTM component. It is used in the creation of registration data for an MTM group. Typically, an application gathers a number of CMtmDllInfo objects into an CMtmDllInfoArray.


Allocation


NewL() — Create and initialise

static CMtmDllInfo* NewL(const TDesC& aHumanReadableName,const TUidType& aUidType,TInt aEntryPointOrdinalNumber,const TVersion aVersion);

Description

Use this function to create a new CMtmDllInfo and initialise it with values describing an MTM component.

Arguments

const TDesC& aHumanReadableName

Descriptor holding a descriptive name for the MTM component

const TUidType& aUidType

Group of UIDs for the MTM. The UIDs should be as follows:

UID1: always KDynamicLibraryUid

UID2: identifies whether the MTM component is a Client-side MTM, User Interface MTM, UI Data MTM, or Server-side MTM. See MTM component type UIDs.

UID3: identifies this concrete MTM uniquely

TInt aEntryPointOrdinalNumber

Ordinal of factory function for the MTM

const TVersion aVersion

Version information for the MTM component

Return value

CMtmDllInfo*

New CMtmDllInfo initialises with passed values

Leave considerations

KErrNoMemory

A memory allocation failed


Descriptive name


HumanReadableName() — Get descriptive name

TPtrC HumanReadableName() const;

Description

Use this function to get the descriptive name of the MTM component for which the object holds registration data.

Return value

TPtrC

Descriptor holding the descriptive name of the MTM component


SetHumanReadableNameL() — Set descriptive name

void SetHumanReadableNameL(const TDesC& aHumanReadableName);

Description

Use this function to set the descriptive name of the MTM component for which the object holds registration data.

Arguments

const TDesC& aHumanReadableName

Descriptor holding a descriptive name for the MTM component


Public data members

Registration data values can also be accessed through the following data members:

TUidType iUidType

Group of UIDs for the MTM. See NewL() for details.

TInt iEntryPointOrdinalNumber

Ordinal of factory function for the MTM component

TVersion iVersion

Version information for the MTM component

EPOC       SDK Home Glossary Indexes Previous Next Up