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

Ubuntu Download Manager 1.2.0 A session-wide downloading service |

manager_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 com.canonical.applications.download_manager.xml -p manager_interface -c ManagerInterface
4 *
5 * qdbusxml2cpp is Copyright (C) 2013 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 MANAGER_INTERFACE_H_1386155846
12 #define MANAGER_INTERFACE_H_1386155846
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 namespace Ubuntu {
25
26 using namespace Transfers::Errors;
27
28 namespace DownloadManager {
29
30 /*
31 * Proxy class for interface com.canonical.applications.DownloadManager
32 */
33 class ManagerInterface: public QDBusAbstractInterface
34 {
35 Q_OBJECT
36 public:
37 static inline const char *staticInterfaceName()
38 { return "com.canonical.applications.DownloadManager"; }
39
40 public:
41 ManagerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
42
43 ~ManagerInterface();
44
45 public Q_SLOTS: // METHODS
46 inline QDBusPendingReply<> allowGSMDownload(bool allowed)
47 {
48 QList<QVariant> argumentList;
49 argumentList << QVariant::fromValue(allowed);
50 return asyncCallWithArgumentList(QLatin1String("allowGSMDownload"), argumentList);
51 }
52
53 inline QDBusPendingReply<QDBusObjectPath> createDownload(DownloadStruct download)
54 {
55 QList<QVariant> argumentList;
56 argumentList << QVariant::fromValue(download);
57 return asyncCallWithArgumentList(QLatin1String("createDownload"), argumentList);
58 }
59
60 inline QDBusPendingReply<QDBusObjectPath> createDownloadGroup(StructList downloads, const QString &algorithm, bool allowed3G, const QVariantMap &metadata, StringMap headers)
61 {
62 QList<QVariant> argumentList;
63 argumentList << QVariant::fromValue(downloads) << QVariant::fromValue(algorithm) << QVariant::fromValue(allowed3G) << QVariant::fromValue(metadata) << QVariant::fromValue(headers);
64 return asyncCallWithArgumentList(QLatin1String("createDownloadGroup"), argumentList);
65 }
66
67 inline QDBusPendingReply<qulonglong> defaultThrottle()
68 {
69 QList<QVariant> argumentList;
70 return asyncCallWithArgumentList(QLatin1String("defaultThrottle"), argumentList);
71 }
72
73 inline QDBusPendingReply<> exit()
74 {
75 QList<QVariant> argumentList;
76 return asyncCallWithArgumentList(QLatin1String("exit"), argumentList);
77 }
78
79 inline QDBusPendingReply<QList<QDBusObjectPath> > getAllDownloads(const QString &appId, bool uncollected)
80 {
81 QList<QVariant> argumentList;
82 argumentList << QVariant::fromValue(appId);
83 argumentList << QVariant::fromValue(uncollected);
84 return asyncCallWithArgumentList(QLatin1String("getAllDownloads"), argumentList);
85 }
86
87 inline QDBusPendingReply<QList<QDBusObjectPath> > getAllDownloadsWithMetadata(const QString &name, const QString &value)
88 {
89 QList<QVariant> argumentList;
90 argumentList << QVariant::fromValue(name) << QVariant::fromValue(value);
91 return asyncCallWithArgumentList(QLatin1String("getAllDownloadsWithMetadata"), argumentList);
92 }
93
94 inline QDBusPendingReply<bool> isGSMDownloadAllowed()
95 {
96 QList<QVariant> argumentList;
97 return asyncCallWithArgumentList(QLatin1String("isGSMDownloadAllowed"), argumentList);
98 }
99
100 inline QDBusPendingReply<> setDefaultThrottle(qulonglong speed)
101 {
102 QList<QVariant> argumentList;
103 argumentList << QVariant::fromValue(speed);
104 return asyncCallWithArgumentList(QLatin1String("setDefaultThrottle"), argumentList);
105 }
106
107 Q_SIGNALS: // SIGNALS
108 void downloadCreated(const QDBusObjectPath &path);
109 };
110
111 } // DownloadManager
112
113 } // Ubuntu
114
115 #endif
QObject
Ubuntu
Definition: download.h:26