bluetoothengine/bteng/bttoggle/src/bttoggle.cpp
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     1 /*
     1 /*
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   152       TRACE_INFO((_L("[BTENG][BTTOGGLE]Offline mode") ))
   152       TRACE_INFO((_L("[BTENG][BTTOGGLE]Offline mode") ))
   153       SwitchBtOnWithPowerNotif(); 						
   153       SwitchBtOnWithPowerNotif(); 						
   154       }
   154       }
   155     else //other than offline
   155     else //other than offline
   156       {									
   156       {									
   157       TBuf<KMaxBluetoothNameLen> localName;
   157       TBuf<KHCILocalDeviceNameMaxLength> localName;
   158       iSettings->GetLocalName(localName);														
   158       iSettings->GetLocalName(localName);														
   159 
   159 
   160       //There is no BT local name defined		
   160       //There is no BT local name defined		
   161       if (0 >= localName.Length()) 
   161       if (0 >= localName.Length()) 
   162         {																
   162         {																
   358 // Inherited from CActive
   358 // Inherited from CActive
   359 // ==========================================================
   359 // ==========================================================
   360 //
   360 //
   361 TInt CBTToggle::RunError(TInt aError)
   361 TInt CBTToggle::RunError(TInt aError)
   362     {	  
   362     {	  
   363     TRACE_INFO((_L("[BTENG][BTTOGGLE] RunError %d"), aError ))
   363     TRACE_INFO((_L("[BTENG][BTTOGGLE] RunError %d"), aError ))	
   364     (void) aError;
       
   365     iActiveNotifier = ENoneQuery;
   364     iActiveNotifier = ENoneQuery;
   366     CActiveScheduler::Stop();
   365     CActiveScheduler::Stop();
   367     return KErrNone;
   366     return KErrNone;
   368     }
   367     }