Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
propertiesadaptor.cpp
Go to the documentation of this file.
1/*
2 * This file was generated by qdbusxml2cpp version 0.8
3 * Source file was org.freedesktop.dbus.properties.xml
4 *
5 * qdbusxml2cpp is Copyright (C) The Qt Company Ltd. and other contributors.
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
20namespace QtBluetoothPrivate {
21
22/*
23 * Implementation of adaptor class OrgFreedesktopDBusPropertiesAdaptor
24 */
25
26OrgFreedesktopDBusPropertiesAdaptor::OrgFreedesktopDBusPropertiesAdaptor(QObject *parent)
27 : QDBusAbstractAdaptor(parent)
28{
29 // constructor
30 setAutoRelaySignals(true);
31}
32
37
38QDBusVariant OrgFreedesktopDBusPropertiesAdaptor::Get(const QString &interface, const QString &name)
39{
40 // handle method call org.freedesktop.DBus.Properties.Get
41 QDBusVariant value;
42 QMetaObject::invokeMethod(parent(), "Get", Q_RETURN_ARG(QDBusVariant, value), Q_ARG(QString, interface), Q_ARG(QString, name));
43 return value;
44}
45
47{
48 // handle method call org.freedesktop.DBus.Properties.GetAll
49 QVariantMap properties;
50 QMetaObject::invokeMethod(parent(), "GetAll", Q_RETURN_ARG(QVariantMap, properties), Q_ARG(QString, interface));
51 return properties;
52}
53
54void OrgFreedesktopDBusPropertiesAdaptor::Set(const QString &interface, const QString &name, const QDBusVariant &value)
55{
56 // handle method call org.freedesktop.DBus.Properties.Set
57 QMetaObject::invokeMethod(parent(), "Set", Q_ARG(QString, interface), Q_ARG(QString, name), Q_ARG(QDBusVariant, value));
58}
59
60} // end of namespace QtBluetoothPrivate
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() override
void Set(const QString &interface, const QString &name, const QDBusVariant &value)