emailservices/emailstore/base_plugin/src/basepluginnotifications.cpp
changeset 18 578830873419
parent 0 8466d47a6819
child 20 ecc8def7944a
equal deleted inserted replaced
4:e7aa27f58ae1 18:578830873419
   356                     }
   356                     }
   357                 else if ( EMsgStoreFolderContainer == aType )
   357                 else if ( EMsgStoreFolderContainer == aType )
   358                     {
   358                     {
   359                     NotifyEventL( aMailBoxId, aId, aParentId, TFSEventFolderChanged );
   359                     NotifyEventL( aMailBoxId, aId, aParentId, TFSEventFolderChanged );
   360                     }
   360                     }
       
   361                 else if ( EMsgStorePartContainer == aType )
       
   362                     {
       
   363                     ReportRequestStatusL( aMailBoxId, aOtherId, aParentId, aId );
       
   364                     }
   361                 else if ( EMsgStoreMailboxContainer == aType )
   365                 else if ( EMsgStoreMailboxContainer == aType )
   362                     {
   366                     {
   363                     TBool mailBoxNameHasChanged( EFalse );
   367                     TBool mailBoxNameHasChanged( EFalse );
   364                     TRAP_IGNORE( RefreshCachedMailBoxDisplayNameL( mailBoxNameHasChanged, aMailBoxId ) );
   368                     TRAP_IGNORE( RefreshCachedMailBoxDisplayNameL( mailBoxNameHasChanged, aMailBoxId ) );
   365                     
   369                     
   369                         }
   373                         }
   370                     }
   374                     }
   371                 }
   375                 }
   372             break;
   376             break;
   373 
   377 
   374             case EMsgStoreRemoveContent:
       
   375                 break;
       
   376 
       
   377             default:
       
   378                 break;
       
   379             }
       
   380         }
       
   381         /* Reporting request status moved from above if-statement here. Now, request status is reported even there is no
       
   382          * mailbox observers.
       
   383          */ 
       
   384         switch ( aOperation )
       
   385             {
       
   386             case EMsgStoreUpdateProperties:
       
   387                 {
       
   388                 if ( EMsgStorePartContainer == aType )
       
   389                     {
       
   390                     ReportRequestStatusL( aMailBoxId, aOtherId, aParentId, aId );
       
   391                     }
       
   392                 }
       
   393                 break;
       
   394             /**@ check whether the ui removes the observer - then the observer must be kept
   378             /**@ check whether the ui removes the observer - then the observer must be kept
   395             until there are pending reqs ?*/
   379             until there are pending reqs ?*/
   396             //attachment download request handling.
   380             //attachment download request handling.
   397             case EMsgStoreUpdateContent:
   381             case EMsgStoreUpdateContent:
   398                 {
   382                 {
   399                 __LOG_WRITE_INFO( "EMsgStoreUpdateContent." );
   383                 __LOG_WRITE_INFO( "EMsgStoreUpdateContent." );
   400                 ReportRequestStatusL( aMailBoxId, aOtherId, aParentId, aId, ETrue );
   384                 ReportRequestStatusL( aMailBoxId, aOtherId, aParentId, aId, ETrue );
   401                 }
   385                 }
   402                 break;
   386                 break;
   403                 
   387             case EMsgStoreRemoveContent:
       
   388                 break;
       
   389 
   404             default:
   390             default:
   405                 break;
   391                 break;
   406         }
   392             }
   407     
   393         }
   408         
   394         
   409         __LOG_EXIT;
   395         __LOG_EXIT;
   410     } //ModificationNotifyL.
   396     } //ModificationNotifyL.
   411 
   397 
   412 
   398 
   533             }
   519             }
   534         
   520         
   535         CleanupStack::PopAndDestroy( part );
   521         CleanupStack::PopAndDestroy( part );
   536         CleanupStack::PopAndDestroy( msg );
   522         CleanupStack::PopAndDestroy( msg );
   537 
   523 
   538         TFSProgress progress;
   524         TFSProgress progress = TFSProgress();
   539         progress.iError = KErrNone;
   525         progress.iError = KErrNone;
   540         progress.iMaxCount = size;
   526         progress.iMaxCount = size;
   541         progress.iCounter = fetchedSize;
   527         progress.iCounter = fetchedSize;
   542         
   528         
   543         __LOG_WRITE_FORMAT2_INFO(
   529         __LOG_WRITE_FORMAT2_INFO(