bluetoothengine/bteng/src/btengsrvsettingsmgr.cpp
changeset 25 9c3798b88e30
parent 24 8930e1d1d530
child 14 f7fbeaeb166a
child 26 b78e66e88238
equal deleted inserted replaced
24:8930e1d1d530 25:9c3798b88e30
     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".
   400     {
   400     {
   401     TRACE_FUNC_ENTRY
   401     TRACE_FUNC_ENTRY
   402     SetVisibilityModeL( EBTVisibilityModeHidden, 0 );
   402     SetVisibilityModeL( EBTVisibilityModeHidden, 0 );
   403     TBTPowerState power = EBTOff;
   403     TBTPowerState power = EBTOff;
   404     TInt err = GetHwPowerState( power );
   404     TInt err = GetHwPowerState( power );
   405     if( !err && power )
   405     // See p2.1.2.1.2 of the UI spec
       
   406     // NB:  Please distinguish between TBTPowerState::EBTOff (defined in hcitypes.h)
       
   407     //      and TBTPowerStateValue::EBTPowerOff (defined in btserversdkcrkeys.h)
       
   408     //      because they have the opposite values
       
   409     if( !err && (power != EBTOff))
   406         {
   410         {
   407         // Show a notification to the user
   411         // Show a notification to the user
   408         TBTGenericInfoNotiferParamsPckg pckg;
   412         TBTGenericInfoNotiferParamsPckg pckg;
   409         pckg().iMessageType = EBTVisibilityTimeout;
   413         pckg().iMessageType = EBTVisibilityTimeout;
   410         
   414