bluetoothengine/bteng/src/btengserver.cpp
branchRCL_3
changeset 16 b23265fb36da
parent 13 b6f55cd40afd
child 28 7e2761e776bd
child 55 613943a21004
equal deleted inserted replaced
14:f7fbeaeb166a 16:b23265fb36da
   163         // usually immediately.
   163         // usually immediately.
   164     iServerState = CBTEngSrvState::NewL( this );
   164     iServerState = CBTEngSrvState::NewL( this );
   165     iWatcher = CBTEngSrvKeyWatcher::NewL( this );
   165     iWatcher = CBTEngSrvKeyWatcher::NewL( this );
   166     iSettingsMgr = CBTEngSrvSettingsMgr::NewL( this );
   166     iSettingsMgr = CBTEngSrvSettingsMgr::NewL( this );
   167     iPluginMgr = CBTEngSrvPluginMgr::NewL( this );
   167     iPluginMgr = CBTEngSrvPluginMgr::NewL( this );
   168     iBBConnMgr = CBTEngSrvBBConnMgr::NewL( iSocketServ );
   168     iBBConnMgr = CBTEngSrvBBConnMgr::NewL( this, iSocketServ );
   169 
   169 
   170     User::LeaveIfError( iBTRegServ.Connect() );
   170     User::LeaveIfError( iBTRegServ.Connect() );
   171     iPairMan = CBTEngPairMan::NewL( *this );
   171     iPairMan = CBTEngPairMan::NewL( *this );
   172 
   172 
   173     TCallBack idleCb( IdleTimerCallBack, this );
   173     TCallBack idleCb( IdleTimerCallBack, this );
   254 
   254 
   255 // ---------------------------------------------------------------------------
   255 // ---------------------------------------------------------------------------
   256 // ?implementation_description
   256 // ?implementation_description
   257 // ---------------------------------------------------------------------------
   257 // ---------------------------------------------------------------------------
   258 //
   258 //
   259 void CBTEngServer::DisconnectAllL()
   259 void CBTEngServer::DisconnectAllForPowerOffL()
   260     {
   260     {
   261     TRACE_FUNC_ENTRY
   261     TRACE_FUNC_ENTRY
   262     iPluginMgr->DisconnectAllPlugins();
       
   263     TCallBack cb( DisconnectAllCallBack, this );
   262     TCallBack cb( DisconnectAllCallBack, this );
   264     iBBConnMgr->DisconnectAllLinksL( cb );
   263     iBBConnMgr->DisconnectAllLinksForPowerOffL( cb );
   265     }
   264     }
   266 
   265 
   267 
   266 
   268 // ---------------------------------------------------------------------------
   267 // ---------------------------------------------------------------------------
   269 // ?implementation_description
   268 // ?implementation_description