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
gattcharacteristic1adaptor.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 gattcharacteristic1adaptor_p.h:gattcharacteristic1adaptor.cpp -c OrgBluezGattCharacteristic1Adaptor -i bluez5_helper_p.h org.bluez.GattCharacteristic1.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 OrgBluezGattCharacteristic1Adaptor
22 */
23
24OrgBluezGattCharacteristic1Adaptor::OrgBluezGattCharacteristic1Adaptor(QObject *parent)
25 : QDBusAbstractAdaptor(parent)
26{
27 // constructor
28 setAutoRelaySignals(true);
29}
30
35
37{
38 // get the value of property Flags
39 return qvariant_cast< QStringList >(parent()->property("Flags"));
40}
41
43{
44 // get the value of property Notifying
45 return qvariant_cast< bool >(parent()->property("Notifying"));
46}
47
49{
50 // get the value of property Service
51 return qvariant_cast< QDBusObjectPath >(parent()->property("Service"));
52}
53
55{
56 // get the value of property UUID
57 return qvariant_cast< QString >(parent()->property("UUID"));
58}
59
61{
62 // get the value of property Value
63 return qvariant_cast< QByteArray >(parent()->property("Value"));
64}
65
67 const QDBusMessage& msg)
68{
69 // handle method call org.bluez.GattCharacteristic1.ReadValue
73 Q_ARG(QVariantMap, options), Q_ARG(QString&, error));
74 if (!error.isEmpty()) {
75 // Reply with error if needed
76 auto reply = msg.createErrorReply(error, {});
78 }
79 return value;
80}
81
83{
84 // handle method call org.bluez.GattCharacteristic1.StartNotify
85 QMetaObject::invokeMethod(parent(), "StartNotify");
86}
87
89{
90 // handle method call org.bluez.GattCharacteristic1.StopNotify
91 QMetaObject::invokeMethod(parent(), "StopNotify");
92}
93
95 const QVariantMap &options,
96 const QDBusMessage& msg)
97{
98 // handle method call org.bluez.GattCharacteristic1.WriteValue
101 Q_ARG(QByteArray, value), Q_ARG(QVariantMap, options));
102
103 if (!error.isEmpty()) {
104 // Reply with error if needed
105 auto reply = msg.createErrorReply(error, {});
107 }
108}
QByteArray ReadValue(const QVariantMap &options, const QDBusMessage &msg)
void WriteValue(const QByteArray &value, const QVariantMap &options, const QDBusMessage &msg)
virtual 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()
\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
\inmodule QtCore
\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...