Ubuntu Download Manager: /build/ubuntu-download-manager-git/src/ubuntu-download-manager/src/downloads/client/ubuntu/download_manager/properties_interface.h Source File

Ubuntu Download Manager 1.2.0 A session-wide downloading service |

properties_interface.h
Go to the documentation of this file.
1 /*
2 * This file was generated by qdbusxml2cpp version 0.8
3 * Command line was: qdbusxml2cpp org.freedesktop.dBus.properties.xml -i metatypes.h -p properties_interface -c PropertiesInterface
4 *
5 * qdbusxml2cpp is Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
6 *
7 * This is an auto-generated file.
8 * Do not edit! All changes made to it will be lost.
9 */
10
11 #ifndef PROPERTIES_INTERFACE_H_1410173698
12 #define PROPERTIES_INTERFACE_H_1410173698
13
14 #include <QtCore/QObject>
15 #include <QtCore/QByteArray>
16 #include <QtCore/QList>
17 #include <QtCore/QMap>
18 #include <QtCore/QString>
19 #include <QtCore/QStringList>
20 #include <QtCore/QVariant>
21 #include <QtDBus/QtDBus>
22 #include <ubuntu/download_manager/metatypes.h>
23
24 /*
25 * Proxy class for interface org.freedesktop.DBus.Properties
26 */
27 class PropertiesInterface: public QDBusAbstractInterface
28 {
29 Q_OBJECT
30 public:
31 static inline const char *staticInterfaceName()
32 { return "org.freedesktop.DBus.Properties"; }
33
34 public:
35 PropertiesInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
36
37 ~PropertiesInterface();
38
39 public Q_SLOTS: // METHODS
40 inline QDBusPendingReply<QDBusVariant> Get(const QString &interface_name, const QString &property_name)
41 {
42 QList<QVariant> argumentList;
43 argumentList << QVariant::fromValue(interface_name) << QVariant::fromValue(property_name);
44 return asyncCallWithArgumentList(QLatin1String("Get"), argumentList);
45 }
46
47 inline QDBusPendingReply<QVariantMap> GetAll(const QString &interface_name)
48 {
49 QList<QVariant> argumentList;
50 argumentList << QVariant::fromValue(interface_name);
51 return asyncCallWithArgumentList(QLatin1String("GetAll"), argumentList);
52 }
53
54 inline QDBusPendingReply<> Set(const QString &interface_name, const QString &property_name, const QDBusVariant &value)
55 {
56 QList<QVariant> argumentList;
57 argumentList << QVariant::fromValue(interface_name) << QVariant::fromValue(property_name) << QVariant::fromValue(value);
58 return asyncCallWithArgumentList(QLatin1String("Set"), argumentList);
59 }
60
61 Q_SIGNALS: // SIGNALS
62 void PropertiesChanged(const QString &interface_name, const QVariantMap &changed_properties, const QStringList &invalidated_properties);
63 };
64
65 namespace org {
66 namespace freedesktop {
67 namespace DBus {
68 typedef ::PropertiesInterface Properties;
69 }
70 }
71 }
72 #endif
QObject
PropertiesInterface::GetAll
QDBusPendingReply< QVariantMap > GetAll(const QString &interface_name)
Definition: properties_interface.h:47
PropertiesInterface::Get
QDBusPendingReply< QDBusVariant > Get(const QString &interface_name, const QString &property_name)
Definition: properties_interface.h:40
PropertiesInterface::Set
QDBusPendingReply Set(const QString &interface_name, const QString &property_name, const QDBusVariant &value)
Definition: properties_interface.h:54
PropertiesInterface::~PropertiesInterface
~PropertiesInterface()
Definition: properties_interface.cpp:23
PropertiesInterface::PropertiesChanged
void PropertiesChanged(const QString &interface_name, const QVariantMap &changed_properties, const QStringList &invalidated_properties)
Definition: moc_properties_interface.cpp:173
PropertiesInterface::PropertiesInterface
PropertiesInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent=0)
Definition: properties_interface.cpp:18
PropertiesInterface::staticInterfaceName
static const char * staticInterfaceName()
Definition: properties_interface.h:31
org
Definition: properties_interface.h:65
org::freedesktop::DBus::Properties
::PropertiesInterface Properties
Definition: properties_interface.h:68
PropertiesInterface
Definition: properties_interface.h:28