From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- .../ui/remotecontrol/BluetoothServiceRecord.hxx | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 sd/source/ui/remotecontrol/BluetoothServiceRecord.hxx (limited to 'sd/source/ui/remotecontrol/BluetoothServiceRecord.hxx') diff --git a/sd/source/ui/remotecontrol/BluetoothServiceRecord.hxx b/sd/source/ui/remotecontrol/BluetoothServiceRecord.hxx new file mode 100644 index 000000000..c1a00fb3b --- /dev/null +++ b/sd/source/ui/remotecontrol/BluetoothServiceRecord.hxx @@ -0,0 +1,75 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#pragma once + +// FIXME: look into sharing definitions across OS's (i.e. UUID and port ). +// Look into dynamically determining which ports are available. + +// SDP is a Service Description Protocol cf. +// http://developer.bluetooth.org/TechnologyOverview/Pages/DI.aspx +// This is an XML representation, an alternative would be a +// binary SDP record. + +// for numbers see: +// https://www.bluetooth.org/Technical/AssignedNumbers/service_discovery.htm + +const char * const bluetooth_service_record = + "" + "" + "" // Service class ID list + "" + "" // an assigned service class meaning: 'serial port' + // we could add our own 'LibreOffice remote' service + // class here too in future ... + "" + "" + "" // Protocol Descriptor list + "" + "" + "" // L2CAP Protocol descriptor + "" + "" + "" // enumeration value of RFCOMM protocol + "" // RFCOMM port number + "" + "" + "" + "" // Browse Group List + "" + "" // public browse class + "" + "" + "" // Language Base Attribute ID List + "" + "" // code_ISO639 + "" // encoding 0x6a + "" // base_offset ie. points to below => + "" + "" + "" // Bluetooth Profile Descriptor List + "" + "" + "" // 'serial port' UUID as above + ""// version number 1.0 ? + "" + "" + "" + // Attribute identifiers are pointed to by the Language Base Attribute ID List + // id+0 = ServiceName, id+1 = ServiceDescription, id+2=ProviderName + "" + "" + "" + "" + "" + "" + "" + ; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3