bluetoothengine/bteng/btbearer/src/btpluginnotifier.cpp
changeset 70 f5508c13dfe0
parent 42 b72428996822
--- a/bluetoothengine/bteng/btbearer/src/btpluginnotifier.cpp	Wed Oct 13 13:15:31 2010 +0300
+++ b/bluetoothengine/bteng/btbearer/src/btpluginnotifier.cpp	Tue Oct 19 15:09:34 2010 +0300
@@ -24,8 +24,6 @@
 #include "debug.h"
 #include <btfeaturescfg.h>
 #include <btnotifclient.h>
-#include "btindicatorconstants.h"
-#include <hbsymbianvariant.h>
 
 // ======== MEMBER FUNCTIONS ========
 
@@ -62,7 +60,6 @@
 	delete repository;
 	
 	CBTEngSettings* settings = CBTEngSettings::NewL();
-	iBTIndicator = CHbIndicatorSymbian::NewL(); 
 	
 	BluetoothFeatures::TEnterpriseEnablementMode mode = BluetoothFeatures::EnterpriseEnablementL();
 	TRACE_INFO( ( _L( "mode = %d" ), mode) )
@@ -81,14 +78,6 @@
         {
         TRACE_INFO( ( _L( "Turning BT off" ) ) )
         (void) settings->SetPowerState( EBTPowerOff );	// Result is not important here
-        TInt state =  EBTIndicatorOff;
-        CHbSymbianVariant* parameters = CHbSymbianVariant::NewL(&state,CHbSymbianVariant::EInt );
-        TBool success = iBTIndicator->Activate(KIndicatorType(),parameters); 
-        delete parameters;
-        if(!success)
-            {
-            User::Leave(iBTIndicator->Error());
-            }
         }
     delete settings;
 	if ( mode != BluetoothFeatures::EDisabled ) // only subscribe if there's any point (NB changing Enterprise Disabling mode requires a reboot)
@@ -123,7 +112,6 @@
     TRACE_FUNC_ENTRY
     Cancel();
     delete iSession;
-    delete iBTIndicator;
     }