Ubuntu Download Manager  0.6.0
A session-wide downloading service
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator
download_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.xml -i metatypes.h -p download_interface -c DownloadInterface
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 DOWNLOAD_INTERFACE_H_1392136772
12 #define DOWNLOAD_INTERFACE_H_1392136772
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 com.canonical.applications.Download
26  */
27 class DownloadInterface: public QDBusAbstractInterface
28 {
29  Q_OBJECT
30 public:
31  static inline const char *staticInterfaceName()
32  { return "com.canonical.applications.Download"; }
33 
34 public:
35  DownloadInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
36 
37  ~DownloadInterface();
38 
39 public Q_SLOTS: // METHODS
40  inline QDBusPendingReply<> allowGSMDownload(bool allowed)
41  {
42  QList<QVariant> argumentList;
43  argumentList << QVariant::fromValue(allowed);
44  return asyncCallWithArgumentList(QLatin1String("allowGSMDownload"), argumentList);
45  }
46 
47  inline QDBusPendingReply<> cancel()
48  {
49  QList<QVariant> argumentList;
50  return asyncCallWithArgumentList(QLatin1String("cancel"), argumentList);
51  }
52 
53  inline QDBusPendingReply<StringMap> headers()
54  {
55  QList<QVariant> argumentList;
56  return asyncCallWithArgumentList(QLatin1String("headers"), argumentList);
57  }
58 
59  inline QDBusPendingReply<bool> isGSMDownloadAllowed()
60  {
61  QList<QVariant> argumentList;
62  return asyncCallWithArgumentList(QLatin1String("isGSMDownloadAllowed"), argumentList);
63  }
64 
65  inline QDBusPendingReply<QVariantMap> metadata()
66  {
67  QList<QVariant> argumentList;
68  return asyncCallWithArgumentList(QLatin1String("metadata"), argumentList);
69  }
70 
71  inline QDBusPendingReply<> pause()
72  {
73  QList<QVariant> argumentList;
74  return asyncCallWithArgumentList(QLatin1String("pause"), argumentList);
75  }
76 
77  inline QDBusPendingReply<qulonglong> progress()
78  {
79  QList<QVariant> argumentList;
80  return asyncCallWithArgumentList(QLatin1String("progress"), argumentList);
81  }
82 
83  inline QDBusPendingReply<> resume()
84  {
85  QList<QVariant> argumentList;
86  return asyncCallWithArgumentList(QLatin1String("resume"), argumentList);
87  }
88 
89  inline QDBusPendingReply<> setDestinationDir(const QString &path)
90  {
91  QList<QVariant> argumentList;
92  argumentList << QVariant::fromValue(path);
93  return asyncCallWithArgumentList(QLatin1String("setDestinationDir"), argumentList);
94  }
95 
96  inline QDBusPendingReply<> setHeaders(StringMap headers)
97  {
98  QList<QVariant> argumentList;
99  argumentList << QVariant::fromValue(headers);
100  return asyncCallWithArgumentList(QLatin1String("setHeaders"), argumentList);
101  }
102 
103  inline QDBusPendingReply<> setThrottle(qulonglong speed)
104  {
105  QList<QVariant> argumentList;
106  argumentList << QVariant::fromValue(speed);
107  return asyncCallWithArgumentList(QLatin1String("setThrottle"), argumentList);
108  }
109 
110  inline QDBusPendingReply<> start()
111  {
112  QList<QVariant> argumentList;
113  return asyncCallWithArgumentList(QLatin1String("start"), argumentList);
114  }
115 
116  inline QDBusPendingReply<qulonglong> throttle()
117  {
118  QList<QVariant> argumentList;
119  return asyncCallWithArgumentList(QLatin1String("throttle"), argumentList);
120  }
121 
122  inline QDBusPendingReply<qulonglong> totalSize()
123  {
124  QList<QVariant> argumentList;
125  return asyncCallWithArgumentList(QLatin1String("totalSize"), argumentList);
126  }
127 
128 Q_SIGNALS: // SIGNALS
129  void authError(AuthErrorStruct error);
130  void canceled(bool success);
131  void error(const QString &error);
132  void finished(const QString &path);
133  void httpError(HttpErrorStruct error);
134  void networkError(NetworkErrorStruct error);
135  void paused(bool success);
136  void processError(ProcessErrorStruct error);
137  void processing(const QString &path);
138  void progress(qulonglong received, qulonglong total);
139  void resumed(bool success);
140  void started(bool success);
141 };
142 
143 namespace com {
144  namespace canonical {
145  namespace applications {
146  typedef ::DownloadInterface Download;
147  }
148  }
149 }
150 #endif