bluetoothengine/bteng/bttoggle/src/bttoggle.cpp
changeset 33 837dcc42fd6a
parent 19 43824b19ee35
child 52 4545c04e61e1
equal deleted inserted replaced
19:43824b19ee35 33:837dcc42fd6a
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 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<KHCILocalDeviceNameMaxLength> localName;
   157       TBuf<KMaxBluetoothNameLen> 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         {