Unity 8
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 com.canonical.applications.download.xml
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 DOWNLOADTRACKERADAPTOR_H_1374434371
12 #define DOWNLOADTRACKERADAPTOR_H_1374434371
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  */
27 class DownloadTrackerAdaptor: public QDBusAbstractInterface
28 {
29  Q_OBJECT
30 public:
31  static inline const char *staticInterfaceName()
32  { return "com.canonical.applications.Download"; }
33 
34 public:
35  DownloadTrackerAdaptor(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
36 
37  ~DownloadTrackerAdaptor();
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(QStringLiteral("allowGSMDownload"), argumentList);
45  }
46 
47  inline QDBusPendingReply<> cancel()
48  {
49  QList<QVariant> argumentList;
50  return asyncCallWithArgumentList(QStringLiteral("cancel"), argumentList);
51  }
52 
53  inline QDBusPendingReply<bool> isGSMDownloadAllowed()
54  {
55  QList<QVariant> argumentList;
56  return asyncCallWithArgumentList(QStringLiteral("isGSMDownloadAllowed"), argumentList);
57  }
58 
59  inline QDBusPendingReply<QVariantMap> metadata()
60  {
61  QList<QVariant> argumentList;
62  return asyncCallWithArgumentList(QStringLiteral("metadata"), argumentList);
63  }
64 
65  inline QDBusPendingReply<> pause()
66  {
67  QList<QVariant> argumentList;
68  return asyncCallWithArgumentList(QStringLiteral("pause"), argumentList);
69  }
70 
71  inline QDBusPendingReply<qulonglong> progress()
72  {
73  QList<QVariant> argumentList;
74  return asyncCallWithArgumentList(QStringLiteral("progress"), argumentList);
75  }
76 
77  inline QDBusPendingReply<> resume()
78  {
79  QList<QVariant> argumentList;
80  return asyncCallWithArgumentList(QStringLiteral("resume"), argumentList);
81  }
82 
83  inline QDBusPendingReply<> setThrottle(qulonglong speed)
84  {
85  QList<QVariant> argumentList;
86  argumentList << QVariant::fromValue(speed);
87  return asyncCallWithArgumentList(QStringLiteral("setThrottle"), argumentList);
88  }
89 
90  inline QDBusPendingReply<> start()
91  {
92  QList<QVariant> argumentList;
93  return asyncCallWithArgumentList(QStringLiteral("start"), argumentList);
94  }
95 
96  inline QDBusPendingReply<qulonglong> throttle()
97  {
98  QList<QVariant> argumentList;
99  return asyncCallWithArgumentList(QStringLiteral("throttle"), argumentList);
100  }
101 
102  inline QDBusPendingReply<qulonglong> totalSize()
103  {
104  QList<QVariant> argumentList;
105  return asyncCallWithArgumentList(QStringLiteral("totalSize"), argumentList);
106  }
107 
108 Q_SIGNALS: // SIGNALS
109  void canceled(bool success);
110  void error(const QString &error);
111  void finished(const QString &path);
112  void paused(bool success);
113  void progress(qulonglong received, qulonglong total);
114  void resumed(bool success);
115  void started(bool success);
116 };
117 
118 namespace com {
119  namespace canonical {
120  namespace applications {
121  typedef ::DownloadTrackerAdaptor Download;
122  }
123  }
124 }
125 #endif