|
1 /* |
|
2 * Copyright (c) 2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "com_nokia_mj_impl_bluetooth_BluetoothStackConsts.h" |
|
20 |
|
21 #ifndef BLUETOOTHCONSTS_H |
|
22 #define BLUETOOTHCONSTS_H |
|
23 |
|
24 namespace java |
|
25 { |
|
26 namespace bluetooth |
|
27 { |
|
28 |
|
29 #define UUID_STRING_MAX_LENGTH 32 |
|
30 |
|
31 #define SHORT_UUID_BASE_STRING L"00001000800000805F9B34FB" |
|
32 |
|
33 #define PROTOCOL_L2CAP 0x0100 |
|
34 |
|
35 #define PROTOCOL_RFCOMM 0x0003 |
|
36 |
|
37 #define PROTOCOL_GOEP 0x0008 |
|
38 |
|
39 #define HCI_TIMEOUT -6004 |
|
40 |
|
41 #define BC_TIMEOUT 0x0005 |
|
42 |
|
43 #define BC_FAILED_NOINFO 0x0004 |
|
44 |
|
45 #define NOT_DISCOVERABLE com_nokia_mj_impl_bluetooth_BluetoothStackConsts_NOT_DISCOVERABLE |
|
46 |
|
47 #define GIAC com_nokia_mj_impl_bluetooth_BluetoothStackConsts_GIAC |
|
48 |
|
49 #define LIAC com_nokia_mj_impl_bluetooth_BluetoothStackConsts_LIAC |
|
50 |
|
51 #define INQUIRY_COMPLETED com_nokia_mj_impl_bluetooth_BluetoothStackConsts_INQUIRY_COMPLETED |
|
52 |
|
53 #define INQUIRY_TERMINATED com_nokia_mj_impl_bluetooth_BluetoothStackConsts_INQUIRY_TERMINATED |
|
54 |
|
55 #define INQUIRY_ERROR com_nokia_mj_impl_bluetooth_BluetoothStackConsts_INQUIRY_ERROR |
|
56 |
|
57 #define SERVICE_SEARCH_COMPLETED com_nokia_mj_impl_bluetooth_BluetoothStackConsts_SERVICE_SEARCH_COMPLETED |
|
58 |
|
59 #define SERVICE_SEARCH_TERMINATED com_nokia_mj_impl_bluetooth_BluetoothStackConsts_SERVICE_SEARCH_TERMINATED |
|
60 |
|
61 #define SERVICE_SEARCH_ERROR com_nokia_mj_impl_bluetooth_BluetoothStackConsts_SERVICE_SEARCH_ERROR |
|
62 |
|
63 #define SERVICE_SEARCH_NO_RECORDS com_nokia_mj_impl_bluetooth_BluetoothStackConsts_SERVICE_SEARCH_NO_RECORDS |
|
64 |
|
65 #define SERVICE_SEARCH_DEVICE_NOT_REACHABLE com_nokia_mj_impl_bluetooth_BluetoothStackConsts_SERVICE_SEARCH_DEVICE_NOT_REACHABLE |
|
66 |
|
67 #define NOAUTHENTICATE_NOENCRYPT com_nokia_mj_impl_bluetooth_BluetoothStackConsts_NOAUTHENTICATE_NOENCRYPT |
|
68 |
|
69 #define AUTHENTICATE_NOENCRYPT com_nokia_mj_impl_bluetooth_BluetoothStackConsts_AUTHENTICATE_NOENCRYPT |
|
70 |
|
71 #define AUTHENTICATE_ENCRYPT com_nokia_mj_impl_bluetooth_BluetoothStackConsts_AUTHENTICATE_ENCRYPT |
|
72 |
|
73 #define DataElement_NULL com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_NULL |
|
74 |
|
75 #define DataElement_U_INT_1 com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_U_INT_1 |
|
76 |
|
77 #define DataElement_U_INT_2 com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_U_INT_2 |
|
78 |
|
79 #define DataElement_U_INT_4 com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_U_INT_4 |
|
80 |
|
81 #define DataElement_U_INT_8 com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_U_INT_8 |
|
82 |
|
83 #define DataElement_U_INT_16 com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_U_INT_16 |
|
84 |
|
85 #define DataElement_INT_1 com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_INT_1 |
|
86 |
|
87 #define DataElement_INT_2 com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_INT_2 |
|
88 |
|
89 #define DataElement_INT_4 com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_INT_4 |
|
90 |
|
91 #define DataElement_INT_8 com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_INT_8 |
|
92 |
|
93 #define DataElement_INT_16 com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_INT_16 |
|
94 |
|
95 #define DataElement_URL com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_URL |
|
96 |
|
97 #define DataElement_UUID com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_UUID |
|
98 |
|
99 #define DataElement_BOOL com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_BOOL |
|
100 |
|
101 #define DataElement_STRING com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_STRING |
|
102 |
|
103 #define DataElement_DATSEQ com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_DATSEQ |
|
104 |
|
105 #define DataElement_DATALT com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_DATALT |
|
106 |
|
107 #define CONNECTION_ERROR_UNKNOWN_PSM com_nokia_mj_impl_bluetooth_BluetoothStackConsts_CONNECTION_ERROR_UNKNOWN_PSM |
|
108 |
|
109 #define CONNECTION_ERROR_SECURITY_BLOCK com_nokia_mj_impl_bluetooth_BluetoothStackConsts_CONNECTION_ERROR_SECURITY_BLOCK |
|
110 |
|
111 #define CONNECTION_ERROR_NO_RESOURCES com_nokia_mj_impl_bluetooth_BluetoothStackConsts_CONNECTION_ERROR_NO_RESOURCES |
|
112 |
|
113 #define CONNECTION_ERROR_FAILED_NOINFO com_nokia_mj_impl_bluetooth_BluetoothStackConsts_CONNECTION_ERROR_FAILED_NOINFO |
|
114 |
|
115 #define CONNECTION_ERROR_TIMEOUT com_nokia_mj_impl_bluetooth_BluetoothStackConsts_CONNECTION_ERROR_TIMEOUT |
|
116 |
|
117 #define CONNECTION_ERROR_UNACCEPTABLE_PARAMS com_nokia_mj_impl_bluetooth_BluetoothStackConsts_CONNECTION_ERROR_UNACCEPTABLE_PARAMS |
|
118 |
|
119 #define DataElement_EndList com_nokia_mj_impl_bluetooth_BluetoothStackConsts_DataElement_EndList |
|
120 } //end namespace bluetooth |
|
121 } //end namespace java |
|
122 |
|
123 #endif // BLUETOOTHCONSTS_H |