bluetoothengine/bteng/inc/btengsdp.hrh
changeset 0 f63038272f30
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 2002-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:  Resource headers for Bluetooth Engine SDP attribute 
       
    15 *                definitions and values.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef BTENGSDP_HRH
       
    22 #define BTENGSDP_HRH
       
    23 
       
    24 
       
    25 /** SDP assigned numbers and implementation specific definitions. 
       
    26  *  These constants are according to specifications of Bluetooth 
       
    27  *  profiles. Attribute definitions can be found from the SDP 
       
    28  *  specification in BT 2.0 Core specification.
       
    29  */
       
    30 
       
    31 /** SDP attribute identifier codes */
       
    32 enum TSdpAttributeId
       
    33     {
       
    34     EServiceRecordHandle            = 0x0000,
       
    35     EServiceClassIDList             = 0x0001,
       
    36     EServiceRecordState             = 0x0002,
       
    37     EServiceID                      = 0x0003,
       
    38     EProtocolDescriptorList         = 0x0004,
       
    39     EBrowseGroupList                = 0x0005,
       
    40     ELanguageBaseAttributeIDList    = 0x0006,
       
    41     EServiceInfoTimeToLive          = 0x0007,
       
    42     EServiceAvailability            = 0x0008,
       
    43     EProfileDescriptorList          = 0x0009,
       
    44     EDocumentationURL               = 0x000A,
       
    45     EClientExecutableURL            = 0x000B,
       
    46     EIconURL                        = 0x000C,
       
    47     EAdditionalProtocolDescLists    = 0x000D,
       
    48     EDefaultNameOffset              = 0x0100,
       
    49     EVersionNumberList              = 0x0200,
       
    50     EServiceVersion                 = 0x0300,
       
    51     EHFNetwork                      = 0x0301,
       
    52     ERemoteVolumeControl            = 0x0302,
       
    53     ESupportedFormatsList           = 0x0303,
       
    54     EAudioFeedbackSupport           = 0x0305,
       
    55     ESecurityDescription            = 0x030A,
       
    56     ENetAccessType                  = 0x030B,
       
    57     ESupportedCapabilities          = 0x0310,
       
    58     ESupportedFeatures              = 0x0311,
       
    59     ESupportedFunctions             = 0x0312,
       
    60     ETotalImagingDataCapacity       = 0x0313,
       
    61     ESupportedRepositories          = 0x0314
       
    62     };
       
    63 
       
    64 /** Protocol UUIDs */
       
    65 enum TSdpProtocolDescriptor
       
    66     {
       
    67     EProtocolSDP                    = 0x0001,
       
    68     EProtocolRFCOMM                 = 0x0003,
       
    69     EProtocolOBEX                   = 0x0008,
       
    70     EProtocolBNEP                   = 0x000F,
       
    71     EProtocolHIDP                   = 0x0011,
       
    72     EProtocolAVCTP                  = 0x0017,
       
    73     EProtocolAVDTP                  = 0x0019,
       
    74     EProtocol2CAP                   = 0x0100
       
    75     };
       
    76 
       
    77 /** Default Language Attributes */
       
    78 enum TSdpLanguageBase
       
    79     {
       
    80     ELangValue                      = 0x454e,   // "EN"
       
    81     ECharacterSetValue              = 0x006a,   // UTF-8
       
    82     ELangBaseIDValue                = 0x0100
       
    83     };
       
    84 
       
    85 /** Public browse group UUID */
       
    86 enum TSdpBrowseGroup
       
    87     {
       
    88     EPublicBrowseGroup = 0x1002
       
    89     };
       
    90 
       
    91 /** Attribute IDs for the Device Identification profile */
       
    92 enum TDIAttributeId
       
    93     {
       
    94     ESpecificationID                = 0x0200,
       
    95     EVendorID                       = 0x0201,
       
    96     EProductID                      = 0x0202,
       
    97     EVersion                        = 0x0203,
       
    98     EPrimaryRecord                  = 0x0204,
       
    99     EVendorIDSource                 = 0x0205
       
   100     };
       
   101 
       
   102 /** Date element types */
       
   103 enum TResourceElementType
       
   104     {
       
   105     EElemTypeWord                   = 1,
       
   106     EElemTypeLong                   = 2,
       
   107     EElemTypeUUID                   = 3,
       
   108     EElemTypeText                   = 4,
       
   109     EElemTypeByte                   = 5,
       
   110     EElemTypeList                   = 6,
       
   111     EElemTypeUUID128                = 7,
       
   112     EElemTypeLink                   = 8,
       
   113     EElemTypeLong64                 = 9,
       
   114     EElemTypeBool                   = 10
       
   115     };
       
   116 
       
   117 /** Maximum string length */
       
   118 #define TEXT_LEN_MAX 34
       
   119 
       
   120 #endif // BTENGSDP_HRH