--- a/messagingfw/msgsrvnstore/server/inc/MSVREG.H Tue Oct 05 13:50:47 2010 +0530
+++ b/messagingfw/msgsrvnstore/server/inc/MSVREG.H Tue Oct 19 11:59:06 2010 +0530
@@ -55,7 +55,7 @@
IMPORT_C static CMtmDllInfo* NewL(RReadStream& aStream);
IMPORT_C ~CMtmDllInfo();
IMPORT_C void SetHumanReadableNameL(const TDesC& aHumanReadableName);
- inline TPtrC HumanReadableName() const;
+ inline TPtrC HumanReadableName() const{return iHumanReadableName->Des();};
IMPORT_C void InternalizeL(RReadStream& aStream);
IMPORT_C void ExternalizeL(RWriteStream& aStream) const; // not used but as it is exported it has been kept
IMPORT_C TBool operator==(const CMtmDllInfo& aMtmDllInfo) const;
@@ -129,8 +129,8 @@
IMPORT_C ~CMtmGroupData();
IMPORT_C void InternalizeL(RReadStream& aStream);
IMPORT_C void ExternalizeL(RWriteStream& aStream) const; // not used but as it is exported it has been kept
- inline TUid MtmTypeUid() const;
- inline TUid TechnologyTypeUid() const;
+ inline TUid MtmTypeUid() const{return iMtmTypeUid;};
+ inline TUid TechnologyTypeUid() const{return iTechnologyTypeUid;};
IMPORT_C const CMtmDllInfoArray& MtmDllInfoArray() const;
IMPORT_C const TCapabilitySet& GetMtmRequiredCapabilities() const;
IMPORT_C TBool operator==(const CMtmGroupData& aMtmGroupData) const;
@@ -175,11 +175,11 @@
IMPORT_C static CRegisteredMtmDll* NewL(TUid aMtmTypeUid,TUid aTechnologyTypeUid,const CMtmDllInfo& aMtmDllInfo,const TTimeIntervalMicroSeconds32 aTimeoutMicroSeconds32,MRegisteredMtmDllObserver& aRegisteredMtmDllObserver);
IMPORT_C ~CRegisteredMtmDll();
- inline TUid MtmTypeUid() const;
- inline TUid TechnologyTypeUid() const;
- inline const CMtmDllInfo& MtmDllInfo() const;
+ inline TUid MtmTypeUid() const{return iMtmTypeUid;};
+ inline TUid TechnologyTypeUid() const{return iTechnologyTypeUid;};
+ inline const CMtmDllInfo& MtmDllInfo() const{return *iMtmDllInfo;};
- inline TInt MtmDllRefCount() const;
+ inline TInt MtmDllRefCount() const{return iMtmDllRefCount;};
IMPORT_C TInt GetLibrary(RFs& aFs,RLibrary& aMtmDllLibrary); // Increments reference count if successful or returns error
IMPORT_C void ReleaseLibrary(); // Decrements access count
@@ -233,7 +233,7 @@
public:
IMPORT_C ~CMtmDllRegistry();
- inline TInt NumRegisteredMtmDlls() const;
+ inline TInt NumRegisteredMtmDlls() const{return iRegisteredMtmDllArray.Count();};
IMPORT_C TUid MtmTypeUid(TInt anIndex) const;
inline TBool IsPresent(TUid aMtmTypeUid) const;
@@ -262,6 +262,16 @@
};
-#include <msvreg.inl>
+inline TBool CMtmDllRegistry::IsPresent(TUid aMtmTypeUid) const
+/** Tests if the MTM with the specified UID is registered.
+
+@param aMtmTypeUid UID of MTM to check
+@return ETrue if the specified MTM in registered, else EFalse */
+ {
+ return MtmTypeUidToIndex(aMtmTypeUid)<iRegisteredMtmDllArray.Count();
+ }
+
+
+
#endif