ipsservices/ipssosplugin/src/ipsplgpop3plugin.cpp
changeset 44 c2d07d913565
parent 23 2dc6caa42ec3
child 47 f83bd4ae1fe3
equal deleted inserted replaced
43:99bcbff212ad 44:c2d07d913565
   136 // CIpsPlgPop3Plugin::RefreshNowL
   136 // CIpsPlgPop3Plugin::RefreshNowL
   137 // ---------------------------------------------------------------------------- 
   137 // ---------------------------------------------------------------------------- 
   138 void CIpsPlgPop3Plugin::RefreshNowL(
   138 void CIpsPlgPop3Plugin::RefreshNowL(
   139     const TFSMailMsgId& aMailBoxId,
   139     const TFSMailMsgId& aMailBoxId,
   140     MFSMailRequestObserver& aOperationObserver,
   140     MFSMailRequestObserver& aOperationObserver,
   141     TInt aRequestId )
   141     TInt aRequestId,
       
   142     const TBool /*aSilentConnection*/ )
   142     {
   143     {
   143     FUNC_LOG;
   144     FUNC_LOG;
   144     TMsvId service = aMailBoxId.Id();
   145     TMsvId service = aMailBoxId.Id();
   145     CIpsPlgSingleOpWatcher* watcher = CIpsPlgSingleOpWatcher::NewL(*this);
   146     CIpsPlgSingleOpWatcher* watcher = CIpsPlgSingleOpWatcher::NewL(*this);
   146     CleanupStack::PushL( watcher ); // << watcher
   147     CleanupStack::PushL( watcher ); // << watcher
   186     CleanupStack::PopAndDestroy( sel ); // >>> sel
   187     CleanupStack::PopAndDestroy( sel ); // >>> sel
   187     
   188     
   188     iOperations.AppendL( watcher );
   189     iOperations.AppendL( watcher );
   189     CleanupStack::Pop( watcher );   // >> watcher
   190     CleanupStack::Pop( watcher );   // >> watcher
   190     	
   191     	
   191 //<qmail>
       
   192     // send part of refresh
   192     // send part of refresh
   193     //EmptyOutboxL( aMailBoxId ); // not used in qmail yet
   193     EmptyOutboxL( aMailBoxId );
   194 //</qmail>
       
   195     }
   194     }
   196 
   195 
   197 // ---------------------------------------------------------------------------
   196 // ---------------------------------------------------------------------------
   198 // CIpsPlgPop3Plugin::ListFoldersL
   197 // CIpsPlgPop3Plugin::ListFoldersL
   199 // ---------------------------------------------------------------------------
   198 // ---------------------------------------------------------------------------
   271     FUNC_LOG;
   270     FUNC_LOG;
   272  	TFSMailMsgId result;
   271  	TFSMailMsgId result;
   273  	
   272  	
   274  	if( aFolderType==EFSInbox )
   273  	if( aFolderType==EFSInbox )
   275         {
   274         {
   276         //in case of pop3, mailbox id == service id == inbox id
   275         //<qmail> removed CMsvEntry conversion 
   277         CMsvEntry* cEntry = iSession->GetEntryL( aMailBoxId.Id() );
   276  	
   278         CleanupStack::PushL( cEntry );
   277         // In case of pop3, mailbox id == service id == inbox id,
   279         if ( cEntry->Count() != 0 )
   278         // so no need to create CMsvEntry from mailbox id to
   280             {
   279         // dig if any children exists.
   281             result.SetId( aMailBoxId.Id() );
   280         result.SetId( aMailBoxId.Id() );
   282             }
   281         //</qmail>
   283         CleanupStack::PopAndDestroy( cEntry );
       
   284         }
   282         }
   285     else if( aFolderType==EFSOutbox )
   283     else if( aFolderType==EFSOutbox )
   286         {
   284         {
   287         result.SetId( KMsvGlobalOutBoxIndexEntryId );
   285         result.SetId( KMsvGlobalOutBoxIndexEntryId );
   288         }
   286         }