wlanutilities/wlanplugin/src/wlanpluginwlanstate.cpp
branchRCL_3
changeset 15 dff6ebfd236f
parent 0 56b72877c1cb
child 16 8b0eae1b1d71
equal deleted inserted replaced
8:c2bc3f8c7777 15:dff6ebfd236f
   133         UpdateWlanListL();
   133         UpdateWlanListL();
   134         }
   134         }
   135     
   135     
   136     if( iEngine->IsConnectedL() )
   136     if( iEngine->IsConnectedL() )
   137         {
   137         {
   138         iConnected = ETrue;
       
   139         iEngine->GetConnectedWlanDetailsL( iConnectedWlanInfo );
   138         iEngine->GetConnectedWlanDetailsL( iConnectedWlanInfo );
       
   139         iConnected = iConnectedWlanInfo.Connected();
   140         }
   140         }
   141             
   141             
   142     iDbObserver = CWlanPluginDbObserver::NewL( this );
   142     iDbObserver = CWlanPluginDbObserver::NewL( this );
   143     iDbObserver->ActivateItL();
   143     iDbObserver->ActivateItL();
   144     
   144     
   171 // ---------------------------------------------------------
   171 // ---------------------------------------------------------
   172 // CWlanPluginWlanState::NotifyEngineError
   172 // CWlanPluginWlanState::NotifyEngineError
   173 // ---------------------------------------------------------
   173 // ---------------------------------------------------------
   174 void CWlanPluginWlanState::NotifyEngineError( TInt /*aError*/ )
   174 void CWlanPluginWlanState::NotifyEngineError( TInt /*aError*/ )
   175     {
   175     {
   176     CLOG_ENTERFN( "CWlanPluginWlanState::NotifyEngineError()" ); 
   176     CLOG_ENTERFN( "CWlanPluginWlanState::NotifyEngineError()" );
       
   177     CLOG_LEAVEFN( "CWlanPluginWlanState::NotifyEngineError()" );
       
   178     }
       
   179 
       
   180 // ---------------------------------------------------------
       
   181 // CWlanPluginWlanState::ScanDisabledL
       
   182 // ---------------------------------------------------------
       
   183 void CWlanPluginWlanState::ScanDisabledL()
       
   184     {
       
   185     CLOG_ENTERFN( "CWlanPluginWlanState::ScanDisabledL()" ); 
   177     
   186     
   178     iScanning = EFalse;
   187     iScanning = EFalse;
   179     
       
   180     CLOG_LEAVEFN( "CWlanPluginWlanState::NotifyEngineError()" );
       
   181     }
       
   182 
       
   183 // ---------------------------------------------------------
       
   184 // CWlanPluginWlanState::ScanDisabledL
       
   185 // ---------------------------------------------------------
       
   186 void CWlanPluginWlanState::ScanDisabledL()
       
   187     {
       
   188     CLOG_ENTERFN( "CWlanPluginWlanState::ScanDisabledL()" ); 
       
   189     
       
   190     iScanning = EFalse;
       
   191     //UpdateWlanListL();
       
   192     UpdateParentViewL();
   188     UpdateParentViewL();
   193     
   189     
   194     CLOG_LEAVEFN( "CWlanPluginWlanState::ScanDisabledL()" );    
   190     CLOG_LEAVEFN( "CWlanPluginWlanState::ScanDisabledL()" );    
   195     }
   191     }
   196 
   192 
   221 void CWlanPluginWlanState::WlanConnectionActivatedL( 
   217 void CWlanPluginWlanState::WlanConnectionActivatedL( 
   222                                 const TDesC& /*aAccessPointName*/ )
   218                                 const TDesC& /*aAccessPointName*/ )
   223     {
   219     {
   224     CLOG_ENTERFN( "CWlanPluginWlanState::WlanConnectionActivatedL()" );   
   220     CLOG_ENTERFN( "CWlanPluginWlanState::WlanConnectionActivatedL()" );   
   225     
   221     
   226     iConnected = ETrue;
       
   227     iEngine->GetConnectedWlanDetailsL( iConnectedWlanInfo );
   222     iEngine->GetConnectedWlanDetailsL( iConnectedWlanInfo );
       
   223     iConnected = iConnectedWlanInfo.Connected();
   228     UpdateParentViewL();
   224     UpdateParentViewL();
   229                 
   225                 
   230     CLOG_LEAVEFN( "CWlanPluginWlanState::WlanConnectionActivatedL()" );
   226     CLOG_LEAVEFN( "CWlanPluginWlanState::WlanConnectionActivatedL()" );
   231     }
   227     }
   232 
   228 
   698     iInfoArray = iEngine->GetWlanListL();
   694     iInfoArray = iEngine->GetWlanListL();
   699     
   695     
   700     if( iConnected )
   696     if( iConnected )
   701         {
   697         {
   702         iEngine->GetConnectedWlanDetailsL( iConnectedWlanInfo );
   698         iEngine->GetConnectedWlanDetailsL( iConnectedWlanInfo );
       
   699         iConnected = iConnectedWlanInfo.Connected();
   703         }
   700         }
   704     
   701     
   705     iWlanInfoBranding->LoadFilterDefinitionsL();
   702     iWlanInfoBranding->LoadFilterDefinitionsL();
   706     
   703     
   707     iInfoArray->SortArrayL( *iWlanInfoBranding );
   704     iInfoArray->SortArrayL( *iWlanInfoBranding );