Lomiri
Loading...
Searching...
No Matches
downloadtrackeradaptor.h
1/*
2 * This file was generated by qdbusxml2cpp version 0.8
3 * Command line was: qdbusxml2cpp -v -c DownloadTrackerAdaptor -p downloadtrackeradaptor.h:downloadtrackeradaptor.cpp -i metatypes.h ../../../../../../lomiri-download-manager/trunk/docs/dbus/com.canonical.applications.download.xml
4 *
5 * qdbusxml2cpp is Copyright (C) 2015 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
11#ifndef DOWNLOADTRACKERADAPTOR_H
12#define DOWNLOADTRACKERADAPTOR_H
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 "metatypes.h"
23
24/*
25 * Proxy class for interface com.canonical.applications.Download
26 */
27class DownloadTrackerAdaptor: public QDBusAbstractInterface
28{
29 Q_OBJECT
30public:
31 static inline const char *staticInterfaceName()
32 { return "com.canonical.applications.Download"; }
33
34public:
35 DownloadTrackerAdaptor(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
36
37 ~DownloadTrackerAdaptor();
38
39 Q_PROPERTY(QString ClickPackage READ clickPackage)
40 inline QString clickPackage() const
41 { return qvariant_cast< QString >(property("ClickPackage")); }
42
43 Q_PROPERTY(QString DestinationApp READ destinationApp)
44 inline QString destinationApp() const
45 { return qvariant_cast< QString >(property("DestinationApp")); }
46
47 Q_PROPERTY(bool ShowInIndicator READ showInIndicator)
48 inline bool showInIndicator() const
49 { return qvariant_cast< bool >(property("ShowInIndicator")); }
50
51 Q_PROPERTY(QString Title READ title)
52 inline QString title() const
53 { return qvariant_cast< QString >(property("Title")); }
54
55public Q_SLOTS: // METHODS
56 inline QDBusPendingReply<> allowGSMDownload(bool allowed)
57 {
58 QList<QVariant> argumentList;
59 argumentList << QVariant::fromValue(allowed);
60 return asyncCallWithArgumentList(QStringLiteral("allowGSMDownload"), argumentList);
61 }
62
63 inline QDBusPendingReply<> cancel()
64 {
65 QList<QVariant> argumentList;
66 return asyncCallWithArgumentList(QStringLiteral("cancel"), argumentList);
67 }
68
69 inline QDBusPendingReply<> collected()
70 {
71 QList<QVariant> argumentList;
72 return asyncCallWithArgumentList(QStringLiteral("collected"), argumentList);
73 }
74
75 inline QDBusPendingReply<QString> filePath()
76 {
77 QList<QVariant> argumentList;
78 return asyncCallWithArgumentList(QStringLiteral("filePath"), argumentList);
79 }
80
81 inline QDBusPendingReply<StringMap> headers()
82 {
83 QList<QVariant> argumentList;
84 return asyncCallWithArgumentList(QStringLiteral("headers"), argumentList);
85 }
86
87 inline QDBusPendingReply<bool> isGSMDownloadAllowed()
88 {
89 QList<QVariant> argumentList;
90 return asyncCallWithArgumentList(QStringLiteral("isGSMDownloadAllowed"), argumentList);
91 }
92
93 inline QDBusPendingReply<QVariantMap> metadata()
94 {
95 QList<QVariant> argumentList;
96 return asyncCallWithArgumentList(QStringLiteral("metadata"), argumentList);
97 }
98
99 inline QDBusPendingReply<> pause()
100 {
101 QList<QVariant> argumentList;
102 return asyncCallWithArgumentList(QStringLiteral("pause"), argumentList);
103 }
104
105 inline QDBusPendingReply<qulonglong> progress()
106 {
107 QList<QVariant> argumentList;
108 return asyncCallWithArgumentList(QStringLiteral("progress"), argumentList);
109 }
110
111 inline QDBusPendingReply<> resume()
112 {
113 QList<QVariant> argumentList;
114 return asyncCallWithArgumentList(QStringLiteral("resume"), argumentList);
115 }
116
117 inline QDBusPendingReply<> setDestinationDir(const QString &path)
118 {
119 QList<QVariant> argumentList;
120 argumentList << QVariant::fromValue(path);
121 return asyncCallWithArgumentList(QStringLiteral("setDestinationDir"), argumentList);
122 }
123
124 inline QDBusPendingReply<> setHeaders(StringMap headers)
125 {
126 QList<QVariant> argumentList;
127 argumentList << QVariant::fromValue(headers);
128 return asyncCallWithArgumentList(QStringLiteral("setHeaders"), argumentList);
129 }
130
131 inline QDBusPendingReply<> setMetadata(const QVariantMap &data)
132 {
133 QList<QVariant> argumentList;
134 argumentList << QVariant::fromValue(data);
135 return asyncCallWithArgumentList(QStringLiteral("setMetadata"), argumentList);
136 }
137
138 inline QDBusPendingReply<> setThrottle(qulonglong speed)
139 {
140 QList<QVariant> argumentList;
141 argumentList << QVariant::fromValue(speed);
142 return asyncCallWithArgumentList(QStringLiteral("setThrottle"), argumentList);
143 }
144
145 inline QDBusPendingReply<> start()
146 {
147 QList<QVariant> argumentList;
148 return asyncCallWithArgumentList(QStringLiteral("start"), argumentList);
149 }
150
151 inline QDBusPendingReply<int> state()
152 {
153 QList<QVariant> argumentList;
154 return asyncCallWithArgumentList(QStringLiteral("state"), argumentList);
155 }
156
157 inline QDBusPendingReply<qulonglong> throttle()
158 {
159 QList<QVariant> argumentList;
160 return asyncCallWithArgumentList(QStringLiteral("throttle"), argumentList);
161 }
162
163 inline QDBusPendingReply<qulonglong> totalSize()
164 {
165 QList<QVariant> argumentList;
166 return asyncCallWithArgumentList(QStringLiteral("totalSize"), argumentList);
167 }
168
169Q_SIGNALS: // SIGNALS
170 void authError(AuthErrorStruct error);
171 void canceled(bool success);
172 void error(const QString &error);
173 void finished(const QString &path);
174 void hashError(HashErrorStruct error);
175 void httpError(HttpErrorStruct error);
176 void networkError(NetworkErrorStruct error);
177 void paused(bool success);
178 void processError(ProcessErrorStruct error);
179 void processing(const QString &path);
180 void progress(qulonglong received, qulonglong total);
181 void resumed(bool success);
182 void started(bool success);
183};
184
185namespace com {
186 namespace canonical {
187 namespace applications {
188 typedef ::DownloadTrackerAdaptor Download;
189 }
190 }
191}
192#endif