summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/bluez/profile1_p.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-05-15 12:13:09 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-06-02 08:38:40 +0200
commitf279b8569289c0c03dad77064c2fc3b1b97a47c4 (patch)
tree23c97c393caddd023ad55afe77dde7c123084379 /src/bluetooth/bluez/profile1_p.h
parent00c7458831695ebf075c8e16a023e68cbefe1bc5 (diff)
Bluez5: Add service (un)registration support
The Bluez5 DBus API does not permit the selection of the local Bt adapter when registering a service. This means that if the local device has two Bluetooth adapters the service will be advertised by both adapters. This leads to cases where the QBluetoothServer::listen() call binds the socket on one adapter but the remote device tries to connect to the other adapter. For now this is an acceptable behavior since it is rather rare to have two local adapters at the same time. A potential future fix is tracked by QTBUG-39012. Task-number: QTBUG-32085 Change-Id: Ibb24edc5b9d1c25a005aedd98f6fc5d0d11b60f8 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'src/bluetooth/bluez/profile1_p.h')
-rw-r--r--src/bluetooth/bluez/profile1_p.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/bluetooth/bluez/profile1_p.h b/src/bluetooth/bluez/profile1_p.h
new file mode 100644
index 00000000..d94f1916
--- /dev/null
+++ b/src/bluetooth/bluez/profile1_p.h
@@ -0,0 +1,61 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -p profile1 org.bluez.ProfileManager1.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#ifndef PROFILE1_H_1400142085
+#define PROFILE1_H_1400142085
+
+#include <QtCore/QObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+#include <QtDBus/QtDBus>
+
+/*
+ * Proxy class for interface org.bluez.ProfileManager1
+ */
+class OrgBluezProfileManager1Interface: public QDBusAbstractInterface
+{
+ Q_OBJECT
+public:
+ static inline const char *staticInterfaceName()
+ { return "org.bluez.ProfileManager1"; }
+
+public:
+ OrgBluezProfileManager1Interface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
+
+ ~OrgBluezProfileManager1Interface();
+
+public Q_SLOTS: // METHODS
+ inline QDBusPendingReply<> RegisterProfile(const QDBusObjectPath &profile, const QString &UUID, const QVariantMap &options)
+ {
+ QList<QVariant> argumentList;
+ argumentList << QVariant::fromValue(profile) << QVariant::fromValue(UUID) << QVariant::fromValue(options);
+ return asyncCallWithArgumentList(QLatin1String("RegisterProfile"), argumentList);
+ }
+
+ inline QDBusPendingReply<> UnregisterProfile(const QDBusObjectPath &profile)
+ {
+ QList<QVariant> argumentList;
+ argumentList << QVariant::fromValue(profile);
+ return asyncCallWithArgumentList(QLatin1String("UnregisterProfile"), argumentList);
+ }
+
+Q_SIGNALS: // SIGNALS
+};
+
+namespace org {
+ namespace bluez {
+ typedef ::OrgBluezProfileManager1Interface ProfileManager1;
+ }
+}
+#endif