messagingappbase/mce/src/MceMessageListItemArray.cpp
branchRCL_3
changeset 17 caea42e26caa
parent 0 72b543305e3a
child 21 c6838af47512
equal deleted inserted replaced
9:1d7827e39b52 17:caea42e26caa
   113     iSession( aSession ),
   113     iSession( aSession ),
   114     iFolderId( aFolderId ),
   114     iFolderId( aFolderId ),
   115     iListType( aListType ),
   115     iListType( aListType ),
   116     iBitmapResolver( aBitmapResolver ),
   116     iBitmapResolver( aBitmapResolver ),
   117     iEmailClientIntegration(EFalse),
   117     iEmailClientIntegration(EFalse),
   118     iEmailFramework(EFalse),
   118     iIntegratedEmailAppExcist(EFalse),
   119     iIntegratedEmailAppExcist(EFalse)
   119     iEmailFramework(EFalse)
   120     {
   120     {
   121     iDescriptionLength = iBitmapResolver.DescriptionLength();
   121     iDescriptionLength = iBitmapResolver.DescriptionLength();
   122     }
   122     }
   123 
   123 
   124 // ----------------------------------------------------
   124 // ----------------------------------------------------
   236     {
   236     {
   237     TInt foundItem = KErrNotFound;
   237     TInt foundItem = KErrNotFound;
   238     TInt count = iFolderEntry->Count();
   238     TInt count = iFolderEntry->Count();
   239     if ( (iEmailClientIntegration && iIntegratedEmailAppExcist) || iEmailFramework ) 
   239     if ( (iEmailClientIntegration && iIntegratedEmailAppExcist) || iEmailFramework ) 
   240         {
   240         {
   241         TRAPD( err, count = CreateEntryIndexL() );
   241         TRAP_IGNORE( count = CreateEntryIndexL() );
   242         }
   242         }
   243     for( TInt loop = 0; loop < count && foundItem == KErrNotFound ; loop++)
   243     for( TInt loop = 0; loop < count && foundItem == KErrNotFound ; loop++)
   244         {
   244         {
   245         if ( (*iFolderEntry)[ GetEntryIndex( loop ) ].Id() == aItemId )
   245         if ( (*iFolderEntry)[ GetEntryIndex( loop ) ].Id() == aItemId )
   246             {
   246             {
   323                 iFolderId == KMsvSentEntryId || 
   323                 iFolderId == KMsvSentEntryId || 
   324                 iFolderId == KMsvDeletedEntryFolderEntryId || 
   324                 iFolderId == KMsvDeletedEntryFolderEntryId || 
   325                 iFolderId == KMsvGlobalInBoxIndexEntryId || iFolderId == KMsvGlobalOutBoxIndexEntryId)
   325                 iFolderId == KMsvGlobalInBoxIndexEntryId || iFolderId == KMsvGlobalOutBoxIndexEntryId)
   326             {
   326             {
   327 
   327 
   328             TRAPD( err, retval = CreateEntryIndexL() );
   328             TRAP_IGNORE( retval = CreateEntryIndexL() );
   329             }
   329             }
   330         }   
   330         }   
   331     return ( retval );
   331     return ( retval );
   332     }
   332     }
   333 
   333