Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <MSVREG.H>
Link against: msgs.lib
Link against: msgs_autoshutdown.lib

Class CMtmDllInfo

class CMtmDllInfo : public CBase;

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.

Derivation

Members

Defined in CMtmDllInfo:

Inherited from CBase:


Construction and destruction


NewL(const TDesC &,const TUidType &,const TDesC &,TInt,const TVersion)

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

Description

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

Parameters

const TDesC16 &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

const TDesC16 &aFilename

A full filename (including drive and path) of the MTM dll

TInt aEntryPointOrdinalNumber

Ordinal of factory function for the MTM

const TVersion aVersion

Version information for the MTM component

Return value

CMtmDllInfo *

New CMtmDllInfo initialised with passed values

Leave codes

KErrNoMemory

A memory allocation failed


NewL(const CMtmDllInfo &)

IMPORT_C static CMtmDllInfo* NewL(const CMtmDllInfo &aMtmDllInfo);

Description

Creates a new CMtmDllInfo initialised from another CMtmDllInfo object.

Parameters

const CMtmDllInfo &aMtmDllInfo

A CMtmDllInfo object from which to initialise this

Return value

CMtmDllInfo *

New CMtmDllInfo initialised with passed CMtmDllInfo

Leave codes

KErrNoMemory

A memory allocation failed


NewL(RReadStream &)

IMPORT_C static CMtmDllInfo* NewL(RReadStream &aStream);

Description

Creates a new CMtmDllInfo and initialises it with values read from a stream.

The contents of the stream to read will have been created by CMtmDllInfo::ExternalizeL(RWriteStream &)const.

Parameters

RReadStream &aStream

Stream to read from

Return value

CMtmDllInfo *

New CMtmDllInfo

Leave codes

KErrNoMemory

A memory allocation failed


~CMtmDllInfo()

IMPORT_C ~CMtmDllInfo();

Description

Destructor.

[Top]


Member functions


SetHumanReadableNameL(const TDesC &)

IMPORT_C void SetHumanReadableNameL(const TDesC &aHumanReadableName);

Description

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

Parameters

const TDesC16 &aHumanReadableName

Descriptor holding a descriptive name for the MTM component


HumanReadableName()const

inline TPtrC HumanReadableName() const;

Description

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

Return value

TPtrC16

Descriptor holding the descriptive name of the MTM component


InternalizeL(RReadStream &)

IMPORT_C void InternalizeL(RReadStream &aStream);

Description

Internalises the object from a stream.

The contents of the stream to read will have been created by CMtmDllInfo::ExternalizeL(RWriteStream &)const.

Parameters

RReadStream &aStream

Stream to read from

Leave codes

Error

Standard streaming errors


ExternalizeL(RWriteStream &)const

IMPORT_C void ExternalizeL(RWriteStream &aStream) const;

Description

Externalises the object to a stream.

Parameters

RWriteStream &aStream

Stream to write to

Leave codes

Error

Standard streaming errors


operator==(const CMtmDllInfo &)const

IMPORT_C TBool operator==(const CMtmDllInfo &aMtmDllInfo) const;

Description

Overloaded equality operator.

Parameters

const CMtmDllInfo &aMtmDllInfo

Object to compare

Return value

TBool

True if the iFileName member and the UIDs (iUidType member) are the same in both objects, otherwise false


MessagingCapability()const

IMPORT_C TBool MessagingCapability() const;

Description

Tests if the flag that indicates that the MTM can send messages has been set.

Return value

TBool

True if the flag has been set; otherwise false


SendBodyCapability()const

IMPORT_C TBool SendBodyCapability() const;

Description

Tests if the flag that indicates that the MTM can handle body text has been set.

Return value

TBool

True if the flag has been set; otherwise false


CapabilitiesAvailable()const

IMPORT_C TBool CapabilitiesAvailable() const;

Description

Tests if settings have been made for the CMtmDllInfo::MessagingCapability()const and CMtmDllInfo::SendBodyCapability()const flags.

These settings are optional, so may not have been made for all MTMs.

Return value

TBool

True if the settings exist; otherwise false

[Top]


Member data


iUidType

TUidType iUidType;

Description

Group of UIDs for the MTM. See CMtmDllInfo::NewL(const TDesC &,const TUidType &,const TDesC &,TInt,const TVersion) for details.


iEntryPointOrdinalNumber

TInt iEntryPointOrdinalNumber;

Description

Ordinal of factory function for the MTM component


iVersion

TVersion iVersion;

Description

Version information for the MTM component


iMessagingCapability

TBool iMessagingCapability;

Description

Flag that indicates if the MTM can send messages


iSendBodyCapability

TBool iSendBodyCapability;

Description

Flag that indicates if the MTM can handle body text


iCapabilitiesAvailable

TBool iCapabilitiesAvailable;

Description

Flag that indicates if settings have been made for the CMtmDllInfo::MessagingCapability()const and CMtmDllInfo::SendBodyCapability()const flags