epoc32/include/mw/btserversdkcrkeys.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* 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
* which accompanies this distribution, and is available
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Bluetooth Engine SDK central repository key definitions.
*                The file name is kept as before for compatibility reasons.
*
*/


#ifndef BTSERVER_SDK_CR_KEYS_H
#define BTSERVER_SDK_CR_KEYS_H


/** 
* @file btserversdkcrkeys.h
* 
* The API provides the BT power state central repository key that is updated by
* the S60 BT Server. The key provides up-to-date information on the BT
* HW power state. Any application may monitor to the cenrep key that is
* updated to receive notifications of any change in state.
*
* The key UID is #KCRUidBluetoothPowerState and following key is provided:
* - #KBTPowerState
*/

/**  Bluetooth Power Mode UID */
const TUid KCRUidBluetoothPowerState = { 0x10204DA9 };

/**
 * The cenrep key for storing the Bluetooth power mode.
 *
 * Valid values are defined by the enum #TBTPowerStateValue
 *
 * Possible values are:
 * 0 Bluetooth chip is not powered/in sleep mode
 * 1 Bluetooth chip is powered up and fully functional
 *
 * Default value: 0
 *
 * @see TBTPowerStateValue
 */
const TUint32 KBTPowerState = 0x00000001;


/**  Enumeration for Bluetooth power mode values */
enum TBTPowerStateValue
    {
    EBTPowerOff,
    EBTPowerOn
    };
#endif // BTSERVER_SDK_CR_KEYS_H