Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
gattdescriptor1adaptor.cpp
Go to the documentation of this file.
1/*
2 * This file was generated by qdbusxml2cpp version 0.8
3 * Command line was: qdbusxml2cpp -a gattdescriptor1adaptor_p.h:gattdescriptor1adaptor.cpp -c OrgBluezGattDescriptor1Adaptor -i bluez5_helper_p.h org.bluez.GattDescriptor1.xml
4 *
5 * qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
6 *
7 * This is an auto-generated file.
8 * Do not edit! All changes made to it will be lost.
9 */
10
12#include <QtCore/QMetaObject>
13#include <QtCore/QByteArray>
14#include <QtCore/QList>
15#include <QtCore/QMap>
16#include <QtCore/QString>
17#include <QtCore/QStringList>
18#include <QtCore/QVariant>
19
20/*
21 * Implementation of adaptor class OrgBluezGattDescriptor1Adaptor
22 */
23
24OrgBluezGattDescriptor1Adaptor::OrgBluezGattDescriptor1Adaptor(QObject *parent)
25 : QDBusAbstractAdaptor(parent)
26{
27 // constructor
28 setAutoRelaySignals(true);
29}
30
35
37{
38 // get the value of property Characteristic
39 return qvariant_cast< QDBusObjectPath >(parent()->property("Characteristic"));
40}
41
43{
44 // get the value of property UUID
45 return qvariant_cast< QString >(parent()->property("UUID"));
46}
47
49{
50 // get the value of property Value
51 return qvariant_cast< QByteArray >(parent()->property("Value"));
52}
53
55 const QDBusMessage& msg)
56{
57 // handle method call org.bluez.GattDescriptor1.ReadValue
61 Q_ARG(QVariantMap, options), Q_ARG(QString&, error));
62 if (!error.isEmpty()) {
63 // Reply with error if needed
64 auto reply = msg.createErrorReply(error, {});
66 }
67 return value;
68}
69
71 const QVariantMap &options,
72 const QDBusMessage& msg)
73{
74 // handle method call org.bluez.GattDescriptor1.WriteValue
78
79 if (!error.isEmpty()) {
80 // Reply with error if needed
81 auto reply = msg.createErrorReply(error, {});
83 }
84}
QByteArray ReadValue(const QVariantMap &options, const QDBusMessage &msg)
virtual 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()
void WriteValue(const QByteArray &value, const QVariantMap &options, const QDBusMessage &msg)
\inmodule QtCore
Definition qbytearray.h:57
static QDBusConnection systemBus()
Returns a QDBusConnection object opened with the system bus.
\inmodule QtDBus
QDBusMessage createErrorReply(const QString &name, const QString &msg) const
Constructs a new DBus message representing an error reply message, with the given name and msg.
\inmodule QtDBus
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
DBusConnection const char DBusError * error
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_RETURN_ARG(Type, data)
Definition qobjectdefs.h:64
#define Q_ARG(Type, data)
Definition qobjectdefs.h:63
const char property[13]
Definition qwizard.cpp:101
QNetworkReply * reply
static bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType, QGenericReturnArgument ret, QGenericArgument val0=QGenericArgument(nullptr), QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument())
\threadsafe This is an overloaded member function, provided for convenience. It differs from the abov...