browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrSrvSession.cpp
branchRCL_3
changeset 42 a1a5d4e727e8
parent 26 cb62a4f66ebe
child 48 79859ed3eea9
equal deleted inserted replaced
41:4bd5176e1bc8 42:a1a5d4e727e8
   143     CLOG_ENTERFN( "CDownloadMgrSession::ServiceL" )
   143     CLOG_ENTERFN( "CDownloadMgrSession::ServiceL" )
   144 	TRAPD( err, DispatchMessageL( aMessage ) );
   144 	TRAPD( err, DispatchMessageL( aMessage ) );
   145     if( iComplete || ( KErrNone != err ) )
   145     if( iComplete || ( KErrNone != err ) )
   146         {
   146         {
   147         // Only the syncron requests has to be completed here!
   147         // Only the syncron requests has to be completed here!
       
   148         if ((!aMessage.IsNull()) && (!CurrentMessage().IsNull())  )
   148 	    aMessage.Complete( err );
   149 	    aMessage.Complete( err );
   149         }
   150         }
   150 	}
   151 	}
   151 
   152 
   152 
   153 
   352     // Check how many download we have and return it to the client
   353     // Check how many download we have and return it to the client
   353     CLOG_WRITE_FORMAT( "CDownloadMgrSession::InitializeL iClientAppInstance %d", iClientAppInstance );
   354     CLOG_WRITE_FORMAT( "CDownloadMgrSession::InitializeL iClientAppInstance %d", iClientAppInstance );
   354     CArrayPtrFlat<CHttpDownload>* currentDownloads = iClientAppInstance->DownloadsL();
   355     CArrayPtrFlat<CHttpDownload>* currentDownloads = iClientAppInstance->DownloadsL();
   355 	TPckg<TInt> countPckg( currentDownloads->Count() );
   356 	TPckg<TInt> countPckg( currentDownloads->Count() );
   356 	TPckg<TInt> sessionId( iSessionId );
   357 	TPckg<TInt> sessionId( iSessionId );
   357 
   358   if (!CurrentMessage().IsNull())
   358     Write( 1, CurrentMessage(), countPckg );
   359     Write( 1, CurrentMessage(), countPckg );
       
   360   if (!CurrentMessage().IsNull())
   359     Write( 3, CurrentMessage(), sessionId );
   361     Write( 3, CurrentMessage(), sessionId );
   360 
   362 
   361     CLOG_NAME_2( _L("Session_%x_%x"), uidPckg().iUid, iSessionId );
   363     CLOG_NAME_2( _L("Session_%x_%x"), uidPckg().iUid, iSessionId );
   362 
   364 
   363     currentDownloads->Reset();
   365     currentDownloads->Reset();