Ubuntu Download Manager  0.9.0
A session-wide downloading service
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator
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()
80  {
81  QList<QVariant> argumentList;
82  return asyncCallWithArgumentList(QLatin1String("getAllDownloads"), argumentList);
83  }
84 
85  inline QDBusPendingReply<QList<QDBusObjectPath> > getAllDownloadsWithMetadata(const QString &name, const QString &value)
86  {
87  QList<QVariant> argumentList;
88  argumentList << QVariant::fromValue(name) << QVariant::fromValue(value);
89  return asyncCallWithArgumentList(QLatin1String("getAllDownloadsWithMetadata"), argumentList);
90  }
91 
92  inline QDBusPendingReply<bool> isGSMDownloadAllowed()
93  {
94  QList<QVariant> argumentList;
95  return asyncCallWithArgumentList(QLatin1String("isGSMDownloadAllowed"), argumentList);
96  }
97 
98  inline QDBusPendingReply<> setDefaultThrottle(qulonglong speed)
99  {
100  QList<QVariant> argumentList;
101  argumentList << QVariant::fromValue(speed);
102  return asyncCallWithArgumentList(QLatin1String("setDefaultThrottle"), argumentList);
103  }
104 
105 Q_SIGNALS: // SIGNALS
106  void downloadCreated(const QDBusObjectPath &path);
107 };
108 
109 } // DownloadManager
110 
111 } // Ubuntu
112 
113 #endif