emailservices/psmruadapter/src/CPsMruAdapter.cpp
branchRCL_3
changeset 18 6b8f3b30d0ec
parent 12 4ce476e64c59
child 20 efd4f1afd43e
equal deleted inserted replaced
17:67369d1b217f 18:6b8f3b30d0ec
   285     TBool result = EFalse;
   285     TBool result = EFalse;
   286 // code was simplified not to trace all mailboxes
   286 // code was simplified not to trace all mailboxes
   287 // function has trap in  Event() -case> TFSEventNewMailbox and in DeleayedMailboxCreationEventL()
   287 // function has trap in  Event() -case> TFSEventNewMailbox and in DeleayedMailboxCreationEventL()
   288 // should not leave when new mailbox only when new mail address
   288 // should not leave when new mailbox only when new mail address
   289     CFSMailBox *mailBox = iMailClient->GetMailBoxByUidL(aId);
   289     CFSMailBox *mailBox = iMailClient->GetMailBoxByUidL(aId);
   290     if (mailBox)
   290     if ( mailBox )
   291         {
   291         {
       
   292         CleanupStack::PushL( mailBox );
   292         AddMailboxObserverL( aId );
   293         AddMailboxObserverL( aId );
   293         
   294         
   294         // Get MRU list for this mailbox
   295         // Get MRU list for this mailbox
   295         MDesCArray* mruList = mailBox->ListMrusL();
   296         MDesCArray* mruList = mailBox->ListMrusL();
   296         mailBox = NULL;
   297         CleanupStack::PopAndDestroy( mailBox );
   297         
   298         
   298         // update the caching status as InProgress
   299         // update the caching status as InProgress
   299         iDataStoreObserver->UpdateCachingStatus( aDataStoreURI,
   300         iDataStoreObserver->UpdateCachingStatus( aDataStoreURI,
   300                 ECachingInProgress );
   301                 ECachingInProgress );
   301 
   302