browserutilities/connectionmanager/Src/ConnectionObservers.cpp
branchRCL_3
changeset 41 4bd5176e1bc8
parent 38 4917f9bf7995
child 48 79859ed3eea9
equal deleted inserted replaced
40:8bfb9186a8b8 41:4bd5176e1bc8
   109     CLOG_WRITE_1( "CConnectionStageNotifierWCB Stage Error id: %d", iProgressBuf().iError );
   109     CLOG_WRITE_1( "CConnectionStageNotifierWCB Stage Error id: %d", iProgressBuf().iError );
   110 
   110 
   111     if( !iMultiObserver )
   111     if( !iMultiObserver )
   112         {
   112         {
   113         CLOG_WRITE( "CConnectionStageNotifierWCB Browser UI" );
   113         CLOG_WRITE( "CConnectionStageNotifierWCB Browser UI" );
   114         #ifdef BRDO_OCC_ENABLED_FF //This is only for emulator testing. It should be #ifdef
   114         if ( iProgressBuf().iStage == iStageToObserve )
   115           if ( iProgressBuf().iStage == iStageToObserve  && (iProgressBuf().iError == KErrDisconnected || iProgressBuf().iError == KErrTimedOut) )
   115             {
   116         #else
       
   117 	      if ( iProgressBuf().iStage == iStageToObserve )
       
   118         #endif
       
   119 		    {
       
   120             CLOG_WRITE( "Stage achived" );
   116             CLOG_WRITE( "Stage achived" );
   121 		    DoCloseAgent();
   117 		    DoCloseAgent();
   122 		    iObserver->ConnectionStageAchievedL();
   118 		    iObserver->ConnectionStageAchievedL();
   123 		    }
   119 		    }
   124 	    else//reissuing request
   120 	    else//reissuing request
   298         }
   294         }
   299 
   295 
   300     return EFalse;
   296     return EFalse;
   301     }
   297     }
   302 
   298 
       
   299 //--------------------------------------------------------------------------
       
   300 //CConnectionStageNotifierWCB::GetProgressBuffer()
       
   301 //--------------------------------------------------------------------------
       
   302 EXPORT_C TNifProgressBuf
       
   303     CConnectionStageNotifierWCB::GetProgressBuffer()
       
   304     {
       
   305     CLOG_ENTERFN( "CConnectionStageNotifierWCB::GetProgressBuffer()" );
       
   306     return iProgressBuf;
       
   307     }
       
   308     
   303 //EOF
   309 //EOF