messagingappbase/mce/src/MceMessageListItemArray.cpp
branchRCL_3
changeset 14 c6838af47512
parent 12 caea42e26caa
--- a/messagingappbase/mce/src/MceMessageListItemArray.cpp	Mon Mar 15 12:40:06 2010 +0200
+++ b/messagingappbase/mce/src/MceMessageListItemArray.cpp	Wed Mar 31 21:25:02 2010 +0300
@@ -99,6 +99,8 @@
 //cmail update
 #define KUidMsgTypeFsMtmVal               0x2001F406
 
+const TUid KMailTechnologyTypeUid = { 0x10001671 };
+
 // ================= MEMBER FUNCTIONS =======================
 
 // C++ default constructor can NOT contain any code that
@@ -416,8 +418,9 @@
 
     aBuffer.Append( KColumnListSeparator );
 
-    if ( aEntry.iMtm != KSenduiMtmMmsUid &&
-         aEntry.Attachment() )
+         
+    if ( aEntry.Attachment()&& aEntry.iMtm != KSenduiMtmMmsUid 
+         && IsMailMtmTechnology(aEntry.iMtm))
         {
         aBuffer.AppendNum( (TInt) EMceBitmapIndexAttachment );
 	    aBuffer.Append( KColumnListSeparator );
@@ -1596,5 +1599,19 @@
 
     return tmpindex;
     }
-
+// ----------------------------------------------------
+// CMceMessageListItemArray::IsMailMtmTechnology
+// ----------------------------------------------------
+TBool CMceMessageListItemArray::IsMailMtmTechnology(TUid aMtm )const
+    {
+    TBool isMailMtm = EFalse;
+    if ( aMtm.iUid != 0 && aMtm != KUidMsvLocalServiceMtm &&
+            iUiRegistry->IsPresent( aMtm) )
+        {
+        // get MTM technology type
+        TUid technologyType = iUiRegistry->TechnologyTypeUid( aMtm);
+        isMailMtm = ( KMailTechnologyTypeUid == technologyType );
+        }
+    return isMailMtm;
+    }
 //  End of File