summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@insta.fi>2022-11-21 11:39:06 +0200
committerJuha Vuolle <juha.vuolle@insta.fi>2022-12-07 11:47:32 +0200
commit4317cc1aca2097444f5ab139da4a0b4ae1b0d43f (patch)
tree8087b76eca90137306384cbc4f19056f564dbaf3
parent108b99445482a58c131e0aad975e726c001f49b2 (diff)
downloadqtconnectivity-4317cc1aca2097444f5ab139da4a0b4ae1b0d43f.tar.gz
Add DBus adaptors for Bluez DBus peripheral role support
This is a preparatory commit for adding the Bluez DBus peripheral role support. Task-number: QTBUG-107510 Change-Id: I27860947c3f94fa0cc4d2af0ce90ab3c0f2287eb Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/bluetooth/bluez/gattcharacteristic1adaptor.cpp90
-rw-r--r--src/bluetooth/bluez/gattcharacteristic1adaptor_p.h87
-rw-r--r--src/bluetooth/bluez/gattdescriptor1adaptor.cpp67
-rw-r--r--src/bluetooth/bluez/gattdescriptor1adaptor_p.h75
-rw-r--r--src/bluetooth/bluez/gattservice1adaptor.cpp58
-rw-r--r--src/bluetooth/bluez/gattservice1adaptor_p.h67
-rw-r--r--src/bluetooth/bluez/objectmanageradaptor.cpp42
-rw-r--r--src/bluetooth/bluez/objectmanageradaptor_p.h67
-rw-r--r--src/bluetooth/bluez/propertiesadaptor.cpp56
-rw-r--r--src/bluetooth/bluez/propertiesadaptor_p.h76
10 files changed, 685 insertions, 0 deletions
diff --git a/src/bluetooth/bluez/gattcharacteristic1adaptor.cpp b/src/bluetooth/bluez/gattcharacteristic1adaptor.cpp
new file mode 100644
index 00000000..7e060197
--- /dev/null
+++ b/src/bluetooth/bluez/gattcharacteristic1adaptor.cpp
@@ -0,0 +1,90 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -a gattcharacteristic1adaptor_p.h:gattcharacteristic1adaptor.cpp -c OrgBluezGattCharacteristic1Adaptor -i bluez5_helper_p.h org.bluez.GattCharacteristic1.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#include "gattcharacteristic1adaptor_p.h"
+#include <QtCore/QMetaObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+
+/*
+ * Implementation of adaptor class OrgBluezGattCharacteristic1Adaptor
+ */
+
+OrgBluezGattCharacteristic1Adaptor::OrgBluezGattCharacteristic1Adaptor(QObject *parent)
+ : QDBusAbstractAdaptor(parent)
+{
+ // constructor
+ setAutoRelaySignals(true);
+}
+
+OrgBluezGattCharacteristic1Adaptor::~OrgBluezGattCharacteristic1Adaptor()
+{
+ // destructor
+}
+
+QStringList OrgBluezGattCharacteristic1Adaptor::flags() const
+{
+ // get the value of property Flags
+ return qvariant_cast< QStringList >(parent()->property("Flags"));
+}
+
+bool OrgBluezGattCharacteristic1Adaptor::notifying() const
+{
+ // get the value of property Notifying
+ return qvariant_cast< bool >(parent()->property("Notifying"));
+}
+
+QDBusObjectPath OrgBluezGattCharacteristic1Adaptor::service() const
+{
+ // get the value of property Service
+ return qvariant_cast< QDBusObjectPath >(parent()->property("Service"));
+}
+
+QString OrgBluezGattCharacteristic1Adaptor::uUID() const
+{
+ // get the value of property UUID
+ return qvariant_cast< QString >(parent()->property("UUID"));
+}
+
+QByteArray OrgBluezGattCharacteristic1Adaptor::value() const
+{
+ // get the value of property Value
+ return qvariant_cast< QByteArray >(parent()->property("Value"));
+}
+
+QByteArray OrgBluezGattCharacteristic1Adaptor::ReadValue(const QVariantMap &options)
+{
+ // handle method call org.bluez.GattCharacteristic1.ReadValue
+ QByteArray value;
+ QMetaObject::invokeMethod(parent(), "ReadValue", Q_RETURN_ARG(QByteArray, value), Q_ARG(QVariantMap, options));
+ return value;
+}
+
+void OrgBluezGattCharacteristic1Adaptor::StartNotify()
+{
+ // handle method call org.bluez.GattCharacteristic1.StartNotify
+ QMetaObject::invokeMethod(parent(), "StartNotify");
+}
+
+void OrgBluezGattCharacteristic1Adaptor::StopNotify()
+{
+ // handle method call org.bluez.GattCharacteristic1.StopNotify
+ QMetaObject::invokeMethod(parent(), "StopNotify");
+}
+
+void OrgBluezGattCharacteristic1Adaptor::WriteValue(const QByteArray &value, const QVariantMap &options)
+{
+ // handle method call org.bluez.GattCharacteristic1.WriteValue
+ QMetaObject::invokeMethod(parent(), "WriteValue", Q_ARG(QByteArray, value), Q_ARG(QVariantMap, options));
+}
diff --git a/src/bluetooth/bluez/gattcharacteristic1adaptor_p.h b/src/bluetooth/bluez/gattcharacteristic1adaptor_p.h
new file mode 100644
index 00000000..d22208b0
--- /dev/null
+++ b/src/bluetooth/bluez/gattcharacteristic1adaptor_p.h
@@ -0,0 +1,87 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -a gattcharacteristic1adaptor_p.h:gattcharacteristic1adaptor.cpp -c OrgBluezGattCharacteristic1Adaptor -i bluez5_helper_p.h org.bluez.GattCharacteristic1.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2022 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.
+ */
+
+#ifndef GATTCHARACTERISTIC1ADAPTOR_P_H
+#define GATTCHARACTERISTIC1ADAPTOR_P_H
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QtCore/QObject>
+#include <QtDBus/QtDBus>
+#include "bluez5_helper_p.h"
+#include <QtCore/qcontainerfwd.h>
+
+/*
+ * Adaptor class for interface org.bluez.GattCharacteristic1
+ */
+class OrgBluezGattCharacteristic1Adaptor: public QDBusAbstractAdaptor
+{
+ Q_OBJECT
+ Q_CLASSINFO("D-Bus Interface", "org.bluez.GattCharacteristic1")
+ Q_CLASSINFO("D-Bus Introspection", ""
+" <interface name=\"org.bluez.GattCharacteristic1\">\n"
+" <method name=\"ReadValue\">\n"
+" <arg direction=\"in\" type=\"a{sv}\" name=\"options\"/>\n"
+" <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
+" <arg direction=\"out\" type=\"ay\" name=\"value\"/>\n"
+" </method>\n"
+" <method name=\"WriteValue\">\n"
+" <arg direction=\"in\" type=\"ay\" name=\"value\"/>\n"
+" <arg direction=\"in\" type=\"a{sv}\" name=\"options\"/>\n"
+" <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In1\"/>\n"
+" </method>\n"
+" <method name=\"StartNotify\"/>\n"
+" <method name=\"StopNotify\"/>\n"
+" <property access=\"read\" type=\"s\" name=\"UUID\"/>\n"
+" <property access=\"read\" type=\"o\" name=\"Service\"/>\n"
+" <property access=\"read\" type=\"ay\" name=\"Value\"/>\n"
+" <property access=\"read\" type=\"b\" name=\"Notifying\"/>\n"
+" <property access=\"read\" type=\"as\" name=\"Flags\"/>\n"
+" </interface>\n"
+ "")
+public:
+ OrgBluezGattCharacteristic1Adaptor(QObject *parent);
+ virtual ~OrgBluezGattCharacteristic1Adaptor();
+
+public: // PROPERTIES
+ Q_PROPERTY(QStringList Flags READ flags)
+ QStringList flags() const;
+
+ Q_PROPERTY(bool Notifying READ notifying)
+ bool notifying() const;
+
+ Q_PROPERTY(QDBusObjectPath Service READ service)
+ QDBusObjectPath service() const;
+
+ Q_PROPERTY(QString UUID READ uUID)
+ QString uUID() const;
+
+ Q_PROPERTY(QByteArray Value READ value)
+ QByteArray value() const;
+
+public Q_SLOTS: // METHODS
+ QByteArray ReadValue(const QVariantMap &options);
+ void StartNotify();
+ void StopNotify();
+ void WriteValue(const QByteArray &value, const QVariantMap &options);
+Q_SIGNALS: // SIGNALS
+};
+
+#endif
diff --git a/src/bluetooth/bluez/gattdescriptor1adaptor.cpp b/src/bluetooth/bluez/gattdescriptor1adaptor.cpp
new file mode 100644
index 00000000..6f2ea125
--- /dev/null
+++ b/src/bluetooth/bluez/gattdescriptor1adaptor.cpp
@@ -0,0 +1,67 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -a gattdescriptor1adaptor_p.h:gattdescriptor1adaptor.cpp -c OrgBluezGattDescriptor1Adaptor -i bluez5_helper_p.h org.bluez.GattDescriptor1.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#include "gattdescriptor1adaptor_p.h"
+#include <QtCore/QMetaObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+
+/*
+ * Implementation of adaptor class OrgBluezGattDescriptor1Adaptor
+ */
+
+OrgBluezGattDescriptor1Adaptor::OrgBluezGattDescriptor1Adaptor(QObject *parent)
+ : QDBusAbstractAdaptor(parent)
+{
+ // constructor
+ setAutoRelaySignals(true);
+}
+
+OrgBluezGattDescriptor1Adaptor::~OrgBluezGattDescriptor1Adaptor()
+{
+ // destructor
+}
+
+QDBusObjectPath OrgBluezGattDescriptor1Adaptor::characteristic() const
+{
+ // get the value of property Characteristic
+ return qvariant_cast< QDBusObjectPath >(parent()->property("Characteristic"));
+}
+
+QString OrgBluezGattDescriptor1Adaptor::uUID() const
+{
+ // get the value of property UUID
+ return qvariant_cast< QString >(parent()->property("UUID"));
+}
+
+QByteArray OrgBluezGattDescriptor1Adaptor::value() const
+{
+ // get the value of property Value
+ return qvariant_cast< QByteArray >(parent()->property("Value"));
+}
+
+QByteArray OrgBluezGattDescriptor1Adaptor::ReadValue(const QVariantMap &options)
+{
+ // handle method call org.bluez.GattDescriptor1.ReadValue
+ QByteArray value;
+ QMetaObject::invokeMethod(parent(), "ReadValue", Q_RETURN_ARG(QByteArray, value), Q_ARG(QVariantMap, options));
+ return value;
+}
+
+void OrgBluezGattDescriptor1Adaptor::WriteValue(const QByteArray &value, const QVariantMap &options)
+{
+ // handle method call org.bluez.GattDescriptor1.WriteValue
+ QMetaObject::invokeMethod(parent(), "WriteValue", Q_ARG(QByteArray, value), Q_ARG(QVariantMap, options));
+}
+
diff --git a/src/bluetooth/bluez/gattdescriptor1adaptor_p.h b/src/bluetooth/bluez/gattdescriptor1adaptor_p.h
new file mode 100644
index 00000000..945392e9
--- /dev/null
+++ b/src/bluetooth/bluez/gattdescriptor1adaptor_p.h
@@ -0,0 +1,75 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -a gattdescriptor1adaptor_p.h:gattdescriptor1adaptor.cpp -c OrgBluezGattDescriptor1Adaptor -i bluez5_helper_p.h org.bluez.GattDescriptor1.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2022 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.
+ */
+
+#ifndef GATTDESCRIPTOR1ADAPTOR_P_H
+#define GATTDESCRIPTOR1ADAPTOR_P_H
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QtCore/QObject>
+#include <QtDBus/QtDBus>
+#include "bluez5_helper_p.h"
+#include <QtCore/qcontainerfwd.h>
+
+/*
+ * Adaptor class for interface org.bluez.GattDescriptor1
+ */
+class OrgBluezGattDescriptor1Adaptor: public QDBusAbstractAdaptor
+{
+ Q_OBJECT
+ Q_CLASSINFO("D-Bus Interface", "org.bluez.GattDescriptor1")
+ Q_CLASSINFO("D-Bus Introspection", ""
+" <interface name=\"org.bluez.GattDescriptor1\">\n"
+" <method name=\"ReadValue\">\n"
+" <arg direction=\"in\" type=\"a{sv}\" name=\"options\"/>\n"
+" <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
+" <arg direction=\"out\" type=\"ay\" name=\"value\"/>\n"
+" </method>\n"
+" <method name=\"WriteValue\">\n"
+" <arg direction=\"in\" type=\"ay\" name=\"value\"/>\n"
+" <arg direction=\"in\" type=\"a{sv}\" name=\"options\"/>\n"
+" <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In1\"/>\n"
+" </method>\n"
+" <property access=\"read\" type=\"s\" name=\"UUID\"/>\n"
+" <property access=\"read\" type=\"o\" name=\"Characteristic\"/>\n"
+" <property access=\"read\" type=\"ay\" name=\"Value\"/>\n"
+" </interface>\n"
+ "")
+public:
+ OrgBluezGattDescriptor1Adaptor(QObject *parent);
+ virtual ~OrgBluezGattDescriptor1Adaptor();
+
+public: // PROPERTIES
+ Q_PROPERTY(QDBusObjectPath Characteristic READ characteristic)
+ QDBusObjectPath characteristic() const;
+
+ Q_PROPERTY(QString UUID READ uUID)
+ QString uUID() const;
+
+ Q_PROPERTY(QByteArray Value READ value)
+ QByteArray value() const;
+
+public Q_SLOTS: // METHODS
+ QByteArray ReadValue(const QVariantMap &options);
+ void WriteValue(const QByteArray &value, const QVariantMap &options);
+Q_SIGNALS: // SIGNALS
+};
+
+#endif
diff --git a/src/bluetooth/bluez/gattservice1adaptor.cpp b/src/bluetooth/bluez/gattservice1adaptor.cpp
new file mode 100644
index 00000000..365040c3
--- /dev/null
+++ b/src/bluetooth/bluez/gattservice1adaptor.cpp
@@ -0,0 +1,58 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -a gattservice1adaptor_p.h:gattservice1adaptor.cpp -c OrgBluezGattService1Adaptor -i bluez5_helper_p.h org.bluez.GattService1.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#include "gattservice1adaptor_p.h"
+#include <QtCore/QMetaObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+
+/*
+ * Implementation of adaptor class OrgBluezGattService1Adaptor
+ */
+
+OrgBluezGattService1Adaptor::OrgBluezGattService1Adaptor(QObject *parent)
+ : QDBusAbstractAdaptor(parent)
+{
+ // constructor
+ setAutoRelaySignals(true);
+}
+
+OrgBluezGattService1Adaptor::~OrgBluezGattService1Adaptor()
+{
+ // destructor
+}
+
+QDBusObjectPath OrgBluezGattService1Adaptor::device() const
+{
+ // get the value of property Device
+ return qvariant_cast< QDBusObjectPath >(parent()->property("Device"));
+}
+
+QList<QDBusObjectPath> OrgBluezGattService1Adaptor::includes() const
+{
+ // get the value of property Includes
+ return qvariant_cast< QList<QDBusObjectPath> >(parent()->property("Includes"));
+}
+
+bool OrgBluezGattService1Adaptor::primary() const
+{
+ // get the value of property Primary
+ return qvariant_cast< bool >(parent()->property("Primary"));
+}
+
+QString OrgBluezGattService1Adaptor::uUID() const
+{
+ // get the value of property UUID
+ return qvariant_cast< QString >(parent()->property("UUID"));
+}
diff --git a/src/bluetooth/bluez/gattservice1adaptor_p.h b/src/bluetooth/bluez/gattservice1adaptor_p.h
new file mode 100644
index 00000000..b9bd85a7
--- /dev/null
+++ b/src/bluetooth/bluez/gattservice1adaptor_p.h
@@ -0,0 +1,67 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -a gattservice1adaptor_p.h:gattservice1adaptor.cpp -c OrgBluezGattService1Adaptor -i bluez5_helper_p.h org.bluez.GattService1.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2022 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.
+ */
+
+#ifndef GATTSERVICE1ADAPTOR_P_H
+#define GATTSERVICE1ADAPTOR_P_H
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QtCore/QObject>
+#include <QtDBus/QtDBus>
+#include "bluez5_helper_p.h"
+#include <QtCore/qcontainerfwd.h>
+
+/*
+ * Adaptor class for interface org.bluez.GattService1
+ */
+class OrgBluezGattService1Adaptor: public QDBusAbstractAdaptor
+{
+ Q_OBJECT
+ Q_CLASSINFO("D-Bus Interface", "org.bluez.GattService1")
+ Q_CLASSINFO("D-Bus Introspection", ""
+" <interface name=\"org.bluez.GattService1\">\n"
+" <property access=\"read\" type=\"s\" name=\"UUID\"/>\n"
+" <property access=\"read\" type=\"o\" name=\"Device\"/>\n"
+" <property access=\"read\" type=\"b\" name=\"Primary\"/>\n"
+" <property access=\"read\" type=\"ao\" name=\"Includes\"/>\n"
+" </interface>\n"
+ "")
+public:
+ OrgBluezGattService1Adaptor(QObject *parent);
+ virtual ~OrgBluezGattService1Adaptor();
+
+public: // PROPERTIES
+ Q_PROPERTY(QDBusObjectPath Device READ device)
+ QDBusObjectPath device() const;
+
+ Q_PROPERTY(QList<QDBusObjectPath> Includes READ includes)
+ QList<QDBusObjectPath> includes() const;
+
+ Q_PROPERTY(bool Primary READ primary)
+ bool primary() const;
+
+ Q_PROPERTY(QString UUID READ uUID)
+ QString uUID() const;
+
+public Q_SLOTS: // METHODS
+Q_SIGNALS: // SIGNALS
+};
+
+#endif
diff --git a/src/bluetooth/bluez/objectmanageradaptor.cpp b/src/bluetooth/bluez/objectmanageradaptor.cpp
new file mode 100644
index 00000000..575a7f22
--- /dev/null
+++ b/src/bluetooth/bluez/objectmanageradaptor.cpp
@@ -0,0 +1,42 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -a objectmanageradaptor_p.h:objectmanageradaptor.cpp -c OrgFreedesktopDBusObjectManagerAdaptor -i bluez5_helper_p.h org.freedesktop.dbus.objectmanager.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#include "objectmanageradaptor_p.h"
+#include <QtCore/QMetaObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+
+/*
+ * Implementation of adaptor class OrgFreedesktopDBusObjectManagerAdaptor
+ */
+
+OrgFreedesktopDBusObjectManagerAdaptor::OrgFreedesktopDBusObjectManagerAdaptor(QObject *parent)
+ : QDBusAbstractAdaptor(parent)
+{
+ // constructor
+ setAutoRelaySignals(true);
+}
+
+OrgFreedesktopDBusObjectManagerAdaptor::~OrgFreedesktopDBusObjectManagerAdaptor()
+{
+ // destructor
+}
+
+ManagedObjectList OrgFreedesktopDBusObjectManagerAdaptor::GetManagedObjects()
+{
+ // handle method call org.freedesktop.DBus.ObjectManager.GetManagedObjects
+ ManagedObjectList object_paths_interfaces_and_properties;
+ QMetaObject::invokeMethod(parent(), "GetManagedObjects", Q_RETURN_ARG(ManagedObjectList, object_paths_interfaces_and_properties));
+ return object_paths_interfaces_and_properties;
+}
diff --git a/src/bluetooth/bluez/objectmanageradaptor_p.h b/src/bluetooth/bluez/objectmanageradaptor_p.h
new file mode 100644
index 00000000..17579a25
--- /dev/null
+++ b/src/bluetooth/bluez/objectmanageradaptor_p.h
@@ -0,0 +1,67 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -a objectmanageradaptor_p.h:objectmanageradaptor.cpp -c OrgFreedesktopDBusObjectManagerAdaptor -i bluez5_helper_p.h org.freedesktop.dbus.objectmanager.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2022 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.
+ */
+
+#ifndef OBJECTMANAGERADAPTOR_P_H
+#define OBJECTMANAGERADAPTOR_P_H
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QtCore/QObject>
+#include <QtDBus/QtDBus>
+#include "bluez5_helper_p.h"
+#include <QtCore/qcontainerfwd.h>
+
+/*
+ * Adaptor class for interface org.freedesktop.DBus.ObjectManager
+ */
+class OrgFreedesktopDBusObjectManagerAdaptor: public QDBusAbstractAdaptor
+{
+ Q_OBJECT
+ Q_CLASSINFO("D-Bus Interface", "org.freedesktop.DBus.ObjectManager")
+ Q_CLASSINFO("D-Bus Introspection", ""
+" <interface name=\"org.freedesktop.DBus.ObjectManager\">\n"
+" <method name=\"GetManagedObjects\">\n"
+" <arg direction=\"out\" type=\"a{oa{sa{sv}}}\" name=\"object_paths_interfaces_and_properties\"/>\n"
+" <annotation value=\"ManagedObjectList\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
+" </method>\n"
+" <signal name=\"InterfacesAdded\">\n"
+" <arg type=\"o\" name=\"object_path\"/>\n"
+" <arg type=\"a{sa{sv}}\" name=\"interfaces_and_properties\"/>\n"
+" <annotation value=\"InterfaceList\" name=\"org.qtproject.QtDBus.QtTypeName.Out1\"/>\n"
+" </signal>\n"
+" <signal name=\"InterfacesRemoved\">\n"
+" <arg type=\"o\" name=\"object_path\"/>\n"
+" <arg type=\"as\" name=\"interfaces\"/>\n"
+" </signal>\n"
+" </interface>\n"
+ "")
+public:
+ OrgFreedesktopDBusObjectManagerAdaptor(QObject *parent);
+ virtual ~OrgFreedesktopDBusObjectManagerAdaptor();
+
+public: // PROPERTIES
+public Q_SLOTS: // METHODS
+ ManagedObjectList GetManagedObjects();
+Q_SIGNALS: // SIGNALS
+ void InterfacesAdded(const QDBusObjectPath &object_path, InterfaceList interfaces_and_properties);
+ void InterfacesRemoved(const QDBusObjectPath &object_path, const QStringList &interfaces);
+};
+
+#endif
diff --git a/src/bluetooth/bluez/propertiesadaptor.cpp b/src/bluetooth/bluez/propertiesadaptor.cpp
new file mode 100644
index 00000000..177f839f
--- /dev/null
+++ b/src/bluetooth/bluez/propertiesadaptor.cpp
@@ -0,0 +1,56 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -a propertiesadaptor_p.h:propertiesadaptor.cpp -c OrgFreedesktopDBusPropertiesAdaptor -i bluez5_helper_p.h org.freedesktop.dbus.properties.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#include "propertiesadaptor_p.h"
+#include <QtCore/QMetaObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+
+/*
+ * Implementation of adaptor class OrgFreedesktopDBusPropertiesAdaptor
+ */
+
+OrgFreedesktopDBusPropertiesAdaptor::OrgFreedesktopDBusPropertiesAdaptor(QObject *parent)
+ : QDBusAbstractAdaptor(parent)
+{
+ // constructor
+ setAutoRelaySignals(true);
+}
+
+OrgFreedesktopDBusPropertiesAdaptor::~OrgFreedesktopDBusPropertiesAdaptor()
+{
+ // destructor
+}
+
+QDBusVariant OrgFreedesktopDBusPropertiesAdaptor::Get(const QString &interface, const QString &name)
+{
+ // handle method call org.freedesktop.DBus.Properties.Get
+ QDBusVariant value;
+ QMetaObject::invokeMethod(parent(), "Get", Q_RETURN_ARG(QDBusVariant, value), Q_ARG(QString, interface), Q_ARG(QString, name));
+ return value;
+}
+
+QVariantMap OrgFreedesktopDBusPropertiesAdaptor::GetAll(const QString &interface)
+{
+ // handle method call org.freedesktop.DBus.Properties.GetAll
+ QVariantMap properties;
+ QMetaObject::invokeMethod(parent(), "GetAll", Q_RETURN_ARG(QVariantMap, properties), Q_ARG(QString, interface));
+ return properties;
+}
+
+void OrgFreedesktopDBusPropertiesAdaptor::Set(const QString &interface, const QString &name, const QDBusVariant &value)
+{
+ // handle method call org.freedesktop.DBus.Properties.Set
+ QMetaObject::invokeMethod(parent(), "Set", Q_ARG(QString, interface), Q_ARG(QString, name), Q_ARG(QDBusVariant, value));
+}
diff --git a/src/bluetooth/bluez/propertiesadaptor_p.h b/src/bluetooth/bluez/propertiesadaptor_p.h
new file mode 100644
index 00000000..1be0fd0f
--- /dev/null
+++ b/src/bluetooth/bluez/propertiesadaptor_p.h
@@ -0,0 +1,76 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -a propertiesadaptor_p.h:propertiesadaptor.cpp -c OrgFreedesktopDBusPropertiesAdaptor -i bluez5_helper_p.h org.freedesktop.dbus.properties.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2022 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.
+ */
+
+#ifndef PROPERTIESADAPTOR_P_H
+#define PROPERTIESADAPTOR_P_H
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QtCore/QObject>
+#include <QtDBus/QtDBus>
+#include "bluez5_helper_p.h"
+#include <QtCore/qcontainerfwd.h>
+
+/*
+ * Adaptor class for interface org.freedesktop.DBus.Properties
+ */
+class OrgFreedesktopDBusPropertiesAdaptor: public QDBusAbstractAdaptor
+{
+ Q_OBJECT
+ Q_CLASSINFO("D-Bus Interface", "org.freedesktop.DBus.Properties")
+ Q_CLASSINFO("D-Bus Introspection", ""
+" <interface name=\"org.freedesktop.DBus.Properties\">\n"
+" <method name=\"Get\">\n"
+" <arg direction=\"in\" type=\"s\" name=\"interface\"/>\n"
+" <arg direction=\"in\" type=\"s\" name=\"name\"/>\n"
+" <arg direction=\"out\" type=\"v\" name=\"value\"/>\n"
+" </method>\n"
+" <method name=\"Set\">\n"
+" <arg direction=\"in\" type=\"s\" name=\"interface\"/>\n"
+" <arg direction=\"in\" type=\"s\" name=\"name\"/>\n"
+" <arg direction=\"in\" type=\"v\" name=\"value\"/>\n"
+" </method>\n"
+" <method name=\"GetAll\">\n"
+" <arg direction=\"in\" type=\"s\" name=\"interface\"/>\n"
+" <arg direction=\"out\" type=\"a{sv}\" name=\"properties\"/>\n"
+" <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
+" </method>\n"
+" <signal name=\"PropertiesChanged\">\n"
+" <arg type=\"s\" name=\"interface\"/>\n"
+" <arg type=\"a{sv}\" name=\"changed_properties\"/>\n"
+" <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.Out1\"/>\n"
+" <arg type=\"as\" name=\"invalidated_properties\"/>\n"
+" </signal>\n"
+" </interface>\n"
+ "")
+public:
+ OrgFreedesktopDBusPropertiesAdaptor(QObject *parent);
+ virtual ~OrgFreedesktopDBusPropertiesAdaptor();
+
+public: // PROPERTIES
+public Q_SLOTS: // METHODS
+ QDBusVariant Get(const QString &interface, const QString &name);
+ QVariantMap GetAll(const QString &interface);
+ void Set(const QString &interface, const QString &name, const QDBusVariant &value);
+Q_SIGNALS: // SIGNALS
+ void PropertiesChanged(const QString &interface, const QVariantMap &changed_properties, const QStringList &invalidated_properties);
+};
+
+#endif