#include <MSVREG.H>
Link against:
msgs.lib
Link against:
msgs_autoshutdown.lib
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
CBase
-
Base class for all classes to be instantiated on the heap.
CMtmDllInfo
- Encapsulates the registration data for a single concrete MTM component.
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
|
|
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
Return value
Leave codes
KErrNoMemory |
A memory allocation failed
|
|
IMPORT_C ~CMtmDllInfo();
Description
Destructor.
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
|
|
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
Leave codes
Error |
Standard streaming errors
|
|
ExternalizeL(RWriteStream &)const
IMPORT_C void ExternalizeL(RWriteStream &aStream) const;
Description
Externalises the object to a stream.
Parameters
Leave codes
Error |
Standard streaming errors
|
|
operator==(const CMtmDllInfo &)const
IMPORT_C TBool operator==(const CMtmDllInfo &aMtmDllInfo) const;
Description
Overloaded equality operator.
Parameters
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
|
|
TInt iEntryPointOrdinalNumber;
Description
Ordinal of factory function for the MTM component
TVersion iVersion;
Description
Version information for the MTM component
TBool iMessagingCapability;
Description
Flag that indicates if the MTM can send messages
TBool iSendBodyCapability;
Description
Flag that indicates if the MTM can handle body text
TBool iCapabilitiesAvailable;
Description
Flag that indicates if settings have been made for the CMtmDllInfo::MessagingCapability()const
and CMtmDllInfo::SendBodyCapability()const
flags