wlanutilities/wlansniffer/aiplugin/src/wsfdisconnectactivewrapper.cpp
branchRCL_3
changeset 11 8b0eae1b1d71
parent 10 dff6ebfd236f
equal deleted inserted replaced
10:dff6ebfd236f 11:8b0eae1b1d71
   116 // --------------------------------------------------------------------------
   116 // --------------------------------------------------------------------------
   117 //
   117 //
   118 void CWsfDisconnectActiveWrapper::RunL()
   118 void CWsfDisconnectActiveWrapper::RunL()
   119     {
   119     {
   120     LOG_ENTERFN( "CWsfDisconnectActiveWrapper::RunL" );
   120     LOG_ENTERFN( "CWsfDisconnectActiveWrapper::RunL" );
   121     if (iState == EUninitialized)
   121     if ( iStatus == KErrNone )
   122         {
   122         {
   123         LOG_WRITE( "disconnect" );
   123         if (iState == EUninitialized)
   124         iModel->Disconnect( iPckg, iStatus );
   124             {
   125         iState = EInitialized;
   125             LOG_WRITE( "disconnect" );
   126         SetActive(); // Tell scheduler a request is active
   126             iModel->Disconnect( iPckg, iStatus );
   127         }
   127             iState = EInitialized;
   128     else if (iState == EInitialized )
   128             SetActive(); // Tell scheduler a request is active
   129         {
   129             }
   130         LOG_WRITEF( "request result = %d", iPckg() );
   130         else if (iState == EInitialized )
       
   131             {
       
   132             LOG_WRITEF( "request result = %d", iPckg() );
       
   133             }
       
   134         else
       
   135             {
       
   136             LOG_WRITEF( "iState = %d", iState );
       
   137             }
   131         }
   138         }
   132     else
   139     else
   133         {
   140         {
   134         LOG_WRITEF( "iState = %d", iState );
   141         LOG_WRITEF( "DisconnectActiveWrapper iStatus = %d", iStatus.Int() );
   135         }
   142         }
   136     }
   143     }
   137 
   144 
   138 
   145 
   139 // --------------------------------------------------------------------------
   146 // --------------------------------------------------------------------------