hotspotfw/hsserver/src/hotspotserver.cpp
branchRCL_3
changeset 23 b852595f5cbe
parent 18 aaabc7526ded
child 24 63be7eb3fc78
equal deleted inserted replaced
22:3b2fb68d23df 23:b852595f5cbe
   163     TRAP( iClientIapsChecked, FindClientIapsL() );
   163     TRAP( iClientIapsChecked, FindClientIapsL() );
   164  
   164  
   165     // Activate notifications for IAP check purposes. Done with every server startup.
   165     // Activate notifications for IAP check purposes. Done with every server startup.
   166     // When EWlanConnectionModeNotConnected is received we can cancel this.
   166     // When EWlanConnectionModeNotConnected is received we can cancel this.
   167     iMgtClient = CWlanMgmtClient::NewL();
   167     iMgtClient = CWlanMgmtClient::NewL();
   168 #ifndef __WINS__
   168     ActivateWlanNotificationsL();
   169     iMgtClient->ActivateNotificationsL( *this );
       
   170 #endif 
       
   171     }
   169     }
   172 
   170 
   173 // -----------------------------------------------------------------------------
   171 // -----------------------------------------------------------------------------
   174 // ConnectionStateChanged
   172 // ConnectionStateChanged
   175 // -----------------------------------------------------------------------------
   173 // -----------------------------------------------------------------------------
   276         TBuf8<KExtensionAPILength> nullBuf;
   274         TBuf8<KExtensionAPILength> nullBuf;
   277         TRAPD( error, plugin = CHssClientPlugin::NewL( client, nullBuf ) );
   275         TRAPD( error, plugin = CHssClientPlugin::NewL( client, nullBuf ) );
   278         delete plugin;
   276         delete plugin;
   279 
   277 
   280         DEBUG1("CHotSpotServer::CheckIapsL find client error: %d", error );
   278         DEBUG1("CHotSpotServer::CheckIapsL find client error: %d", error );
   281         if ( error == KErrNotFound )
   279         if ( error != KErrNone )
   282             {
   280             {
   283             // Remove from database
   281             // Remove from database
   284             RCmManagerExt cmManager;
   282             RCmManagerExt cmManager;
   285             cmManager.OpenL();
   283             cmManager.OpenL();
   286             CleanupClosePushL(cmManager);
   284             CleanupClosePushL(cmManager);
   302         }
   300         }
   303     DEBUG("CHotSpotServer::CheckIapsL Done");
   301     DEBUG("CHotSpotServer::CheckIapsL Done");
   304     }
   302     }
   305 
   303 
   306 // -----------------------------------------------------------------------------
   304 // -----------------------------------------------------------------------------
       
   305 // ActivateWlanNotificationsL
       
   306 // -----------------------------------------------------------------------------
       
   307 //
       
   308 void CHotSpotServer::ActivateWlanNotificationsL()
       
   309     {
       
   310     DEBUG("CHotSpotServer::ActivateWlanNotificationsL");
       
   311 #ifndef __WINS__
       
   312     iMgtClient->CancelNotifications();
       
   313     iMgtClient->ActivateNotificationsL( *this );
       
   314 #endif 
       
   315     }
       
   316 
       
   317 // -----------------------------------------------------------------------------
   307 // NewSessionL
   318 // NewSessionL
   308 // -----------------------------------------------------------------------------
   319 // -----------------------------------------------------------------------------
   309 //
   320 //
   310 CSession2* CHotSpotServer::NewSessionL( const TVersion& aVersion, 
   321 CSession2* CHotSpotServer::NewSessionL( const TVersion& aVersion, 
   311                                         const RMessage2& /* aMessage */ ) const
   322                                         const RMessage2& /* aMessage */ ) const