diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2018-07-25 13:26:48 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2018-08-03 08:32:25 +0000 |
commit | f1d00a83d12f27c37c20b6138f00ff82960018c1 (patch) | |
tree | 3045b0e10b06f6822d6a4982be9f24a6aaf0d505 /src/bluetooth/bluez | |
parent | 061b4afed568f279759c6da3b3ecd543d25941d2 (diff) |
Add new Profile1 Interface from Bluez DBus
This interface is added to the build but not yet functional in the library.
Task-number: QTBUG-68550
Change-Id: I59df7761dc02a6afe807a2bbd9377d94e0186784
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/bluetooth/bluez')
-rw-r--r-- | src/bluetooth/bluez/bluez.pri | 2 | ||||
-rwxr-xr-x | src/bluetooth/bluez/generate | 1 | ||||
-rw-r--r-- | src/bluetooth/bluez/org.bluez.Profile1.xml | 17 | ||||
-rw-r--r-- | src/bluetooth/bluez/profile1.cpp | 26 | ||||
-rw-r--r-- | src/bluetooth/bluez/profile1_p.h | 67 |
5 files changed, 113 insertions, 0 deletions
diff --git a/src/bluetooth/bluez/bluez.pri b/src/bluetooth/bluez/bluez.pri index e2c320e1..9fb9242e 100644 --- a/src/bluetooth/bluez/bluez.pri +++ b/src/bluetooth/bluez/bluez.pri @@ -14,6 +14,7 @@ HEADERS += bluez/manager_p.h \ bluez/adapter1_bluez5_p.h \ bluez/device1_bluez5_p.h \ bluez/profilemanager1_p.h \ + bluez/profile1_p.h \ bluez/obex_client1_bluez5_p.h \ bluez/obex_objectpush1_bluez5_p.h \ bluez/obex_transfer1_bluez5_p.h \ @@ -41,6 +42,7 @@ SOURCES += bluez/manager.cpp \ bluez/device1_bluez5.cpp \ bluez/bluez5_helper.cpp \ bluez/profilemanager1.cpp \ + bluez/profile1.cpp \ bluez/obex_client1_bluez5.cpp \ bluez/obex_objectpush1_bluez5.cpp \ bluez/obex_transfer1_bluez5.cpp \ diff --git a/src/bluetooth/bluez/generate b/src/bluetooth/bluez/generate index b2c4bd9e..73d3b3f5 100755 --- a/src/bluetooth/bluez/generate +++ b/src/bluetooth/bluez/generate @@ -15,6 +15,7 @@ qdbusxml2cpp -a obex_agent_p.h:obex_agent.cpp org.openobex.agent.xml org.openobe qdbusxml2cpp -p adapter1_bluez5_p.h:adapter1_bluez5.cpp org.bluez.Adapter1.xml qdbusxml2cpp -i bluez5_helper_p.h -p device1_bluez5_p.h:device1_bluez5.cpp org.bluez.Device1.xml qdbusxml2cpp -p profilemanager1_p.h:profilemanager1.cpp org.bluez.ProfileManager1.xml +qdbusxml2cpp -p profile1_p.h:profile1.cpp org.bluez.Profile1.xml qdbusxml2cpp -i bluez5_helper_p.h -p objectmanager_p.h:objectmanager.cpp org.freedesktop.dbus.objectmanager.xml qdbusxml2cpp -p properties_p.h:properties.cpp org.freedesktop.dbus.properties.xml qdbusxml2cpp -p obex_client1_bluez5_p.h:obex_client1_bluez5_p.h org.bluez.Client1.xml diff --git a/src/bluetooth/bluez/org.bluez.Profile1.xml b/src/bluetooth/bluez/org.bluez.Profile1.xml new file mode 100644 index 00000000..2e5ec131 --- /dev/null +++ b/src/bluetooth/bluez/org.bluez.Profile1.xml @@ -0,0 +1,17 @@ +<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> +<node> + <interface name="org.bluez.Profile1"> + <method name="NewConnection"> + <arg type="o" direction="in"/> + <arg type="h" direction="in"/> + <arg type="a{sv}" direction="in"/> + <annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/> + </method> + <method name="RequestDisconnection"> + <arg type="o" direction="in"/> + </method> + <method name="Release"> + <annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/> + </method> + </interface> +</node> diff --git a/src/bluetooth/bluez/profile1.cpp b/src/bluetooth/bluez/profile1.cpp new file mode 100644 index 00000000..e74be807 --- /dev/null +++ b/src/bluetooth/bluez/profile1.cpp @@ -0,0 +1,26 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp -p profile1_p.h:profile1.cpp org.bluez.Profile1.xml + * + * qdbusxml2cpp is Copyright (C) 2018 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#include "profile1_p.h" + +/* + * Implementation of interface class OrgBluezProfile1Interface + */ + +OrgBluezProfile1Interface::OrgBluezProfile1Interface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent) + : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent) +{ +} + +OrgBluezProfile1Interface::~OrgBluezProfile1Interface() +{ +} + diff --git a/src/bluetooth/bluez/profile1_p.h b/src/bluetooth/bluez/profile1_p.h new file mode 100644 index 00000000..63ea40b8 --- /dev/null +++ b/src/bluetooth/bluez/profile1_p.h @@ -0,0 +1,67 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp -p profile1_p.h:profile1.cpp org.bluez.Profile1.xml + * + * qdbusxml2cpp is Copyright (C) 2018 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#ifndef PROFILE1_P_H +#define PROFILE1_P_H + +#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.Profile1 + */ +class OrgBluezProfile1Interface: public QDBusAbstractInterface +{ + Q_OBJECT +public: + static inline const char *staticInterfaceName() + { return "org.bluez.Profile1"; } + +public: + OrgBluezProfile1Interface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); + + ~OrgBluezProfile1Interface(); + +public Q_SLOTS: // METHODS + inline QDBusPendingReply<> NewConnection(const QDBusObjectPath &in0, const QDBusUnixFileDescriptor &in1, const QVariantMap &in2) + { + QList<QVariant> argumentList; + argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2); + return asyncCallWithArgumentList(QStringLiteral("NewConnection"), argumentList); + } + + inline Q_NOREPLY void Release() + { + QList<QVariant> argumentList; + callWithArgumentList(QDBus::NoBlock, QStringLiteral("Release"), argumentList); + } + + inline QDBusPendingReply<> RequestDisconnection(const QDBusObjectPath &in0) + { + QList<QVariant> argumentList; + argumentList << QVariant::fromValue(in0); + return asyncCallWithArgumentList(QStringLiteral("RequestDisconnection"), argumentList); + } + +Q_SIGNALS: // SIGNALS +}; + +namespace org { + namespace bluez { + typedef ::OrgBluezProfile1Interface Profile1; + } +} +#endif |