bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / remotecontrol / BluetoothServiceRecord.hxx
blobd85f257713515520a3f07e850c85e5b289a7213b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_SD_SOURCE_UI_REMOTECONTROL_BLUETOOTHSERVICERECORD_HXX
11 #define INCLUDED_SD_SOURCE_UI_REMOTECONTROL_BLUETOOTHSERVICERECORD_HXX
13 // FIXME: look into sharing definitions across OS's (i.e. UUID and port ).
14 // Look into dynamically determining which ports are available.
16 // SDP is a Service Description Protocol cf.
17 // http://developer.bluetooth.org/TechnologyOverview/Pages/DI.aspx
18 // This is an XML representation, an alternative would be a
19 // binary SDP record.
21 // for numbers see:
22 // https://www.bluetooth.org/Technical/AssignedNumbers/service_discovery.htm
24 static const char *bluetooth_service_record =
25 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
26 "<record>"
27 "<attribute id=\"0x0001\">" // Service class ID list
28 "<sequence>"
29 "<uuid value=\"0x1101\"/>" // an assigned service class meaning: 'serial port'
30 // we could add our own 'LibreOffice remote' service
31 // class here too in future ...
32 "</sequence>"
33 "</attribute>"
34 "<attribute id=\"0x0004\">" // Protocol Descriptor list
35 "<sequence>"
36 "<sequence>"
37 "<uuid value=\"0x0100\"/>" // L2CAP Protocol descriptor
38 "</sequence>"
39 "<sequence>"
40 "<uuid value=\"0x0003\"/>" // enumeration value of RFCOMM protocol
41 "<uint8 value=\"0x05\"/>" // RFCOMM port number
42 "</sequence>"
43 "</sequence>"
44 "</attribute>"
45 "<attribute id=\"0x0005\">" // Browse Group List
46 "<sequence>"
47 "<uuid value=\"0x1002\"/>" // public browse class
48 "</sequence>"
49 "</attribute>"
50 "<attribute id=\"0x0006\">" // Language Base Attribute ID List
51 "<sequence>"
52 "<uint16 value=\"0x656e\"/>" // code_ISO639
53 "<uint16 value=\"0x006a\"/>" // encoding 0x6a
54 "<uint16 value=\"0x0100\"/>" // base_offset ie. points to below =>
55 "</sequence>"
56 "</attribute>"
57 "<attribute id=\"0x0009\">" // Bluetooth Profile Descriptor List
58 "<sequence>"
59 "<sequence>"
60 "<uuid value=\"0x1101\"/>" // 'serial port' UUID as above
61 "<uint16 value=\"0x0100\"/>"// version number 1.0 ?
62 "</sequence>"
63 "</sequence>"
64 "</attribute>"
65 // Attribute identifiers are pointed to by the Language Base Attribute ID List
66 // id+0 = ServiceName, id+1 = ServiceDescription, id+2=ProviderName
67 "<attribute id=\"0x0100\">"
68 "<text value=\"LibreOffice Impress Remote Control\"/>"
69 "</attribute>"
70 "<attribute id=\"0x0102\">"
71 "<text value=\"The Document Foundation\"/>"
72 "</attribute>"
73 "</record>"
76 #endif // INCLUDED_SD_SOURCE_UI_REMOTECONTROL_BLUETOOTHSERVICERECORD_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */