btservices_plat/bluetooth_engine_api/inc/btengconstants.h
changeset 0 f63038272f30
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     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 "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Definitions of Bluetooth Engine constant.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTENCONSTANTS_H
       
    20 #define BTENCONSTANTS_H
       
    21 
       
    22 
       
    23 /**  Connect status of the service-level connection. */
       
    24 enum TBTEngConnectionStatus
       
    25     {
       
    26     EBTEngNotConnected,
       
    27     EBTEngConnecting,
       
    28     EBTEngConnected,
       
    29     EBTEngDisconnecting
       
    30     };
       
    31 
       
    32 
       
    33 /**  Type of disconnect operation for the service-level connection. */
       
    34 enum TBTDisconnectType
       
    35     {
       
    36     EBTDiscImmediate,
       
    37     EBTDiscGraceful
       
    38     };
       
    39 
       
    40 
       
    41 /**  Enumeration for Bluetooth visibility mode */
       
    42 enum TBTVisibilityMode
       
    43     {
       
    44     EBTVisibilityModeNoScans  = 0x00,    //will be used when turning off BT/power off phone
       
    45     EBTVisibilityModeInquiryScanOnly = 0x01,
       
    46     EBTVisibilityModeHidden    = 0x02,
       
    47     EBTVisibilityModeGeneral   = 0x03,
       
    48     EBTVisibilityModeTemporary = 0x100
       
    49     };
       
    50 
       
    51 
       
    52 /**  Enumeration for Bluetooth profiles */
       
    53 enum TBTProfile
       
    54     {
       
    55     EBTProfileUndefined = 0x0,
       
    56     EBTProfileDUN       = 0x1103,
       
    57     EBTProfileOPP       = 0x1105,
       
    58     EBTProfileFTP       = 0x1106,
       
    59     EBTProfileHSP       = 0x1108,
       
    60     EBTProfileA2DP      = 0x110D,
       
    61     EBTProfileAVRCP     = 0x110E,
       
    62     EBTProfileFAX       = 0x1111,
       
    63     EBTProfilePANU      = 0x1115,
       
    64     EBTProfileNAP       = 0x1116,
       
    65     EBTProfileGN        = 0x1117,
       
    66     EBTProfileBIP       = 0x111A,
       
    67     EBTProfileHFP       = 0x111E,
       
    68     EBTProfileBPP       = 0x1122,
       
    69     EBTProfileHID       = 0x1124,
       
    70     EBTProfileSAP       = 0x112D,
       
    71     EBTProfilePBAP      = 0x1130,
       
    72     EBTProfileDI        = 0x1200
       
    73     };
       
    74 
       
    75 /**
       
    76  * Bits of UI cookie identifiers of a TBTNamelessDevice in BT registry
       
    77  */
       
    78 enum TBTDeviceUiCookie
       
    79     {
       
    80     // invalid UI cookie
       
    81     EBTUiCookieUndefined = 0x0,
       
    82     
       
    83     // this device is paired with Just Works model under user's awareness.
       
    84     //
       
    85     // The purpose of this bit is for the paired device view of 
       
    86     // Bluetooth application to show devices that have been paired with
       
    87     // Just Works model under user's awareness.
       
    88     //
       
    89     // Pairing device from Bluetooth application is a user aware bonding.
       
    90     // Another example is connecting to HFP of a not-paired v2.1 headset via 
       
    91     // BluetoothEngine API during which pairing is performed due to the 
       
    92     // security setting of HFP AG.
       
    93     // Just-Works pairing due to service connection request from a v2.1 device without
       
    94     // IO capability is not considered as a user aware pairing.
       
    95     // 
       
    96     EBTUiCookieJustWorksPaired = 0x01
       
    97     };
       
    98 
       
    99 #endif // BTENCONSTANTS_H