mmsengine/mmspushhandler/src/CMmsPushHandler.cpp
changeset 23 238255e8b033
parent 1 d09ac5c1e252
child 25 84d9eb65b26f
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
   751     // Now we should have a list of all local folders.
   751     // Now we should have a list of all local folders.
   752     // Prune away the standard folders.
   752     // Prune away the standard folders.
   753     // They should be at the end of the list
   753     // They should be at the end of the list
   754     TInt count = selection->Count();
   754     TInt count = selection->Count();
   755     TInt i;
   755     TInt i;
   756     for ( i = count - 1; i >= 0; i-- )
   756     for ( i = count - 1; i >= 0; --i )
   757         {
   757         {
   758         if ( selection->At( i ) <= KMsvDeletedEntryFolderEntryId )
   758         if ( selection->At( i ) <= KMsvDeletedEntryFolderEntryId )
   759             {
   759             {
   760             // Anything below this should not be ours
   760             // Anything below this should not be ours
   761             selection->Delete( i );
   761             selection->Delete( i );
   763         }
   763         }
   764 
   764 
   765     // Check if anything left.
   765     // Check if anything left.
   766     count = selection->Count();
   766     count = selection->Count();
   767     // Loop through the rest and find possible correct folder
   767     // Loop through the rest and find possible correct folder
   768     for ( i = 0; i < count && mmsFolderId == KMsvNullIndexEntryId; i++ )
   768     for ( i = 0; i < count && mmsFolderId == KMsvNullIndexEntryId; ++i )
   769         {
   769         {
   770         cMsvEntry->SetEntryL( selection->At( i ) );
   770         cMsvEntry->SetEntryL( selection->At( i ) );
   771         // must be exact match
   771         // must be exact match
   772         if (cMsvEntry->Entry().iDetails.Compare( KMMSNotificationFolder ) == 0)
   772         if (cMsvEntry->Entry().iDetails.Compare( KMMSNotificationFolder ) == 0)
   773             {
   773             {