1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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
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\"?>"
27 "<attribute id=\"0x0001\">" // Service class ID list
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 ...
34 "<attribute id=\"0x0004\">" // Protocol Descriptor list
37 "<uuid value=\"0x0100\"/>" // L2CAP Protocol descriptor
40 "<uuid value=\"0x0003\"/>" // enumeration value of RFCOMM protocol
41 "<uint8 value=\"0x05\"/>" // RFCOMM port number
45 "<attribute id=\"0x0005\">" // Browse Group List
47 "<uuid value=\"0x1002\"/>" // public browse class
50 "<attribute id=\"0x0006\">" // Language Base Attribute ID List
52 "<uint16 value=\"0x656e\"/>" // code_ISO639
53 "<uint16 value=\"0x006a\"/>" // encoding 0x6a
54 "<uint16 value=\"0x0100\"/>" // base_offset ie. points to below =>
57 "<attribute id=\"0x0009\">" // Bluetooth Profile Descriptor List
60 "<uuid value=\"0x1101\"/>" // 'serial port' UUID as above
61 "<uint16 value=\"0x0100\"/>"// version number 1.0 ?
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\"/>"
70 "<attribute id=\"0x0102\">"
71 "<text value=\"The Document Foundation\"/>"
76 #endif // INCLUDED_SD_SOURCE_UI_REMOTECONTROL_BLUETOOTHSERVICERECORD_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */