epoc32/include/mw/btserversdkcrkeys.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 btserversdkcrkeys.h
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Bluetooth Engine SDK central repository key definitions.
       
    15 *                The file name is kept as before for compatibility reasons.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef BTSERVER_SDK_CR_KEYS_H
       
    21 #define BTSERVER_SDK_CR_KEYS_H
       
    22 
       
    23 
       
    24 /** 
       
    25 * @file btserversdkcrkeys.h
       
    26 * 
       
    27 * The API provides the BT power state central repository key that is updated by
       
    28 * the S60 BT Server. The key provides up-to-date information on the BT
       
    29 * HW power state. Any application may monitor to the cenrep key that is
       
    30 * updated to receive notifications of any change in state.
       
    31 *
       
    32 * The key UID is #KCRUidBluetoothPowerState and following key is provided:
       
    33 * - #KBTPowerState
       
    34 */
       
    35 
       
    36 /**  Bluetooth Power Mode UID */
       
    37 const TUid KCRUidBluetoothPowerState = { 0x10204DA9 };
       
    38 
       
    39 /**
       
    40  * The cenrep key for storing the Bluetooth power mode.
       
    41  *
       
    42  * Valid values are defined by the enum #TBTPowerStateValue
       
    43  *
       
    44  * Possible values are:
       
    45  * 0 Bluetooth chip is not powered/in sleep mode
       
    46  * 1 Bluetooth chip is powered up and fully functional
       
    47  *
       
    48  * Default value: 0
       
    49  *
       
    50  * @see TBTPowerStateValue
       
    51  */
       
    52 const TUint32 KBTPowerState = 0x00000001;
       
    53 
       
    54 
       
    55 /**  Enumeration for Bluetooth power mode values */
       
    56 enum TBTPowerStateValue
       
    57     {
       
    58     EBTPowerOff,
       
    59     EBTPowerOn
       
    60     };
       
    61 #endif // BTSERVER_SDK_CR_KEYS_H