Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: msvreg.h
Link against: msgs.lib

Class CMtmDllInfo

CMtmDllInfo

Support

Supported from 5.0

Description

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.

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

Derivation

CBaseBase class for all classes to be instantiated on the heap
CMtmDllInfoEncapsulates the registration data for a single concrete MTM component

Defined in CMtmDllInfo:
HumanReadableName(), NewL(), SetHumanReadableNameL(), iEntryPointOrdinalNumber, iUidType, iVersion

Inherited from CBase:
operator new()


Allocation


NewL()

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

Description

Creates a new CMtmDllInfo and initialises it with values describing an MTM component.

Parameters

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. 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 codes

KErrNoMemory

A memory allocation failed

See also:

[Top]


Descriptive name


HumanReadableName()

TPtrC HumanReadableName() const;

Description

Gets 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()

void SetHumanReadableNameL(const TDesC& aHumanReadableName);

Description

Sets the descriptive name of the MTM component for which the object holds registration data.

Parameters

const TDesC& aHumanReadableName

Descriptor holding a descriptive name for the MTM component

[Top]


Public data members


iUidType

TUidType iUidType

Description

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


iEntryPointOrdinalNumber

TInt iEntryPointOrdinalNumber

Description

Ordinal of factory function for the MTM component


iVersion

TVersion iVersion

Description

Version information for the MTM component