diff -r a9c7e5670d17 -r c6838af47512 messagingappbase/mce/src/MceMessageListItemArray.cpp --- 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