diff -r 00f9ee97d895 -r f05641c183ff bluetoothengine/bteng/src/btengsrvkeywatcher.cpp --- a/bluetoothengine/bteng/src/btengsrvkeywatcher.cpp Fri Apr 16 15:08:36 2010 +0300 +++ b/bluetoothengine/bteng/src/btengsrvkeywatcher.cpp Mon May 03 12:40:50 2010 +0300 @@ -39,8 +39,6 @@ /** Identification for active object */ const TInt KBTEngSysWatcher = 17; /** Identification for active object */ -const TInt KBTEngPHYCountWatcher = 18; -/** Identification for active object */ const TInt KBTEngBtConnectionWatcher = 19; /** Identification for active object */ const TInt KBTEngScanningWatcher = 20; @@ -103,16 +101,7 @@ CActive::EPriorityStandard ); iSystemStateKey.Subscribe( iSystemStateWatcher->RequestStatus() ); iSystemStateWatcher->GoActive(); - } - - err = iPHYCountKey.Attach( KPropertyUidBluetoothCategory, KPropertyKeyBluetoothPHYCount ); - if( !err ) - { - iPHYCountWatcher = CBTEngActive::NewL( *this, KBTEngPHYCountWatcher, - CActive::EPriorityStandard ); - iPHYCountKey.Subscribe( iPHYCountWatcher->RequestStatus() ); - iPHYCountWatcher->GoActive(); - } + } err = iBtConnectionKey.Attach( KPropertyUidBluetoothCategory, KPropertyKeyBluetoothConnecting ); if( !err ) @@ -224,14 +213,7 @@ iSystemStateKey.Cancel(); } delete iSystemStateWatcher; - iSystemStateKey.Close(); - - if( iPHYCountKey.Handle() ) - { - iPHYCountKey.Cancel(); - } - delete iPHYCountWatcher; - iPHYCountKey.Close(); + iSystemStateKey.Close(); if( iBtConnectionKey.Handle() ) { @@ -332,17 +314,9 @@ val == ESwStateShuttingDown ) { iServer->SettingsManager()->SetVisibilityModeL( EBTVisibilityModeNoScans , 0 ); - iServer->DisconnectAllL(); + iServer->DisconnectAllForPowerOffL(); } } - break; - case KBTEngPHYCountWatcher: - { - TRACE_INFO( ( _L( "PHY count key changed" ) ) ) - iPHYCountKey.Subscribe( aActive->RequestStatus() ); - aActive->GoActive(); - iServer->SettingsManager()->SetUiIndicatorsL(); - } break; case KBTEngBtConnectionWatcher: {