Ubuntu Download Manager  0.3.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<bool> isGSMDownloadAllowed()
54  {
55  QList<QVariant> argumentList;
56  return asyncCallWithArgumentList(QLatin1String("isGSMDownloadAllowed"), argumentList);
57  }
58 
59  inline QDBusPendingReply<QVariantMap> metadata()
60  {
61  QList<QVariant> argumentList;
62  return asyncCallWithArgumentList(QLatin1String("metadata"), argumentList);
63  }
64 
65  inline QDBusPendingReply<> pause()
66  {
67  QList<QVariant> argumentList;
68  return asyncCallWithArgumentList(QLatin1String("pause"), argumentList);
69  }
70 
71  inline QDBusPendingReply<qulonglong> progress()
72  {
73  QList<QVariant> argumentList;
74  return asyncCallWithArgumentList(QLatin1String("progress"), argumentList);
75  }
76 
77  inline QDBusPendingReply<> resume()
78  {
79  QList<QVariant> argumentList;
80  return asyncCallWithArgumentList(QLatin1String("resume"), argumentList);
81  }
82 
83  inline QDBusPendingReply<> setDestinationDir(const QString &path)
84  {
85  QList<QVariant> argumentList;
86  argumentList << QVariant::fromValue(path);
87  return asyncCallWithArgumentList(QLatin1String("setDestinationDir"), argumentList);
88  }
89 
90  inline QDBusPendingReply<> setThrottle(qulonglong speed)
91  {
92  QList<QVariant> argumentList;
93  argumentList << QVariant::fromValue(speed);
94  return asyncCallWithArgumentList(QLatin1String("setThrottle"), argumentList);
95  }
96 
97  inline QDBusPendingReply<> start()
98  {
99  QList<QVariant> argumentList;
100  return asyncCallWithArgumentList(QLatin1String("start"), argumentList);
101  }
102 
103  inline QDBusPendingReply<qulonglong> throttle()
104  {
105  QList<QVariant> argumentList;
106  return asyncCallWithArgumentList(QLatin1String("throttle"), argumentList);
107  }
108 
109  inline QDBusPendingReply<qulonglong> totalSize()
110  {
111  QList<QVariant> argumentList;
112  return asyncCallWithArgumentList(QLatin1String("totalSize"), argumentList);
113  }
114 
115 Q_SIGNALS: // SIGNALS
116  void authError(AuthErrorStruct error);
117  void canceled(bool success);
118  void error(const QString &error);
119  void finished(const QString &path);
120  void httpError(HttpErrorStruct error);
121  void networkError(NetworkErrorStruct error);
122  void paused(bool success);
123  void processError(ProcessErrorStruct error);
124  void processing(const QString &path);
125  void progress(qulonglong received, qulonglong total);
126  void resumed(bool success);
127  void started(bool success);
128 };
129 
130 namespace com {
131  namespace canonical {
132  namespace applications {
133  typedef ::DownloadInterface Download;
134  }
135  }
136 }
137 #endif