wlanutilities/wlansniffer/aiplugin/src/wsfconnectactivewrapper.cpp
branchRCL_3
changeset 20 a9524956f6b5
parent 11 8b0eae1b1d71
equal deleted inserted replaced
18:aaabc7526ded 20:a9524956f6b5
   100 
   100 
   101 // --------------------------------------------------------------------------
   101 // --------------------------------------------------------------------------
   102 // CWsfConnectActiveWrapper::StartL
   102 // CWsfConnectActiveWrapper::StartL
   103 // --------------------------------------------------------------------------
   103 // --------------------------------------------------------------------------
   104 //
   104 //
   105 void CWsfConnectActiveWrapper::Start(TUint aIapID, TWsfIapPersistence aPersistence )
   105 void CWsfConnectActiveWrapper::Start( TUint aIapID, TBool aConnectOnly, 
       
   106                                       TWsfIapPersistence aPersistence )
   106     {
   107     {
   107     LOG_ENTERFN( "CWsfConnectActiveWrapper::Start" );
   108     LOG_ENTERFN( "CWsfConnectActiveWrapper::Start" );
   108     Cancel(); // Cancel any request, just to be sure
   109     Cancel(); // Cancel any request, just to be sure
   109     iState = EUninitialized;
   110     iState = EUninitialized;
   110     iIapID = aIapID;
   111     iIapID = aIapID;
       
   112     iConnectOnly = aConnectOnly;
   111     iPersistence = aPersistence;
   113     iPersistence = aPersistence;
   112     SetActive();
   114     SetActive();
   113     TRequestStatus* status = &iStatus;
   115     TRequestStatus* status = &iStatus;
   114     User::RequestComplete( status, KErrNone );
   116     User::RequestComplete( status, KErrNone );
   115     }
   117     }
   125     if ( iStatus == KErrNone )
   127     if ( iStatus == KErrNone )
   126         {
   128         {
   127         if ( iState == EUninitialized )
   129         if ( iState == EUninitialized )
   128             {
   130             {
   129             LOG_WRITE( "Start connect" );
   131             LOG_WRITE( "Start connect" );
   130             iModel->ConnectL( iPckg, iIapID, iPersistence, iStatus );
   132             iModel->ConnectL( iPckg, iIapID, iConnectOnly, iPersistence, iStatus );
   131             iState = EInitialized;
   133             iState = EInitialized;
   132             SetActive(); // Tell scheduler a request is active
   134             SetActive(); // Tell scheduler a request is active
   133             }
   135             }
   134         else if ( iState == EInitialized )
   136         else if ( iState == EInitialized )
   135             {
   137             {