Ubuntu Download Manager  1.2.0
A session-wide downloading service
moc_manager_interface.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'manager_interface.h'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.10.1)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include "../../ubuntu/download_manager/manager_interface.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'manager_interface.h' doesn't include <QObject>."
14 #elif Q_MOC_OUTPUT_REVISION != 67
15 #error "This file was generated using the moc from 5.10.1. It"
16 #error "cannot be used with the include files from this version of Qt."
17 #error "(The moc has changed too much.)"
18 #endif
19 
20 QT_BEGIN_MOC_NAMESPACE
21 QT_WARNING_PUSH
22 QT_WARNING_DISABLE_DEPRECATED
24  QByteArrayData data[34];
25  char stringdata0[524];
26 };
27 #define QT_MOC_LITERAL(idx, ofs, len) \
28  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
29  qptrdiff(offsetof(qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface_t, stringdata0) + ofs \
30  - idx * sizeof(QByteArrayData)) \
31  )
32 static const qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface_t qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface = {
33  {
34 QT_MOC_LITERAL(0, 0, 41), // "Ubuntu::DownloadManager::Mana..."
35 QT_MOC_LITERAL(1, 42, 15), // "downloadCreated"
36 QT_MOC_LITERAL(2, 58, 0), // ""
37 QT_MOC_LITERAL(3, 59, 15), // "QDBusObjectPath"
38 QT_MOC_LITERAL(4, 75, 4), // "path"
39 QT_MOC_LITERAL(5, 80, 16), // "allowGSMDownload"
40 QT_MOC_LITERAL(6, 97, 19), // "QDBusPendingReply<>"
41 QT_MOC_LITERAL(7, 117, 7), // "allowed"
42 QT_MOC_LITERAL(8, 125, 14), // "createDownload"
43 QT_MOC_LITERAL(9, 140, 34), // "QDBusPendingReply<QDBusObject..."
44 QT_MOC_LITERAL(10, 175, 14), // "DownloadStruct"
45 QT_MOC_LITERAL(11, 190, 8), // "download"
46 QT_MOC_LITERAL(12, 199, 19), // "createDownloadGroup"
47 QT_MOC_LITERAL(13, 219, 10), // "StructList"
48 QT_MOC_LITERAL(14, 230, 9), // "downloads"
49 QT_MOC_LITERAL(15, 240, 9), // "algorithm"
50 QT_MOC_LITERAL(16, 250, 9), // "allowed3G"
51 QT_MOC_LITERAL(17, 260, 8), // "metadata"
52 QT_MOC_LITERAL(18, 269, 9), // "StringMap"
53 QT_MOC_LITERAL(19, 279, 7), // "headers"
54 QT_MOC_LITERAL(20, 287, 15), // "defaultThrottle"
55 QT_MOC_LITERAL(21, 303, 29), // "QDBusPendingReply<qulonglong>"
56 QT_MOC_LITERAL(22, 333, 4), // "exit"
57 QT_MOC_LITERAL(23, 338, 15), // "getAllDownloads"
58 QT_MOC_LITERAL(24, 354, 42), // "QDBusPendingReply<QList<QDBus..."
59 QT_MOC_LITERAL(25, 397, 5), // "appId"
60 QT_MOC_LITERAL(26, 403, 11), // "uncollected"
61 QT_MOC_LITERAL(27, 415, 27), // "getAllDownloadsWithMetadata"
62 QT_MOC_LITERAL(28, 443, 4), // "name"
63 QT_MOC_LITERAL(29, 448, 5), // "value"
64 QT_MOC_LITERAL(30, 454, 20), // "isGSMDownloadAllowed"
65 QT_MOC_LITERAL(31, 475, 23), // "QDBusPendingReply<bool>"
66 QT_MOC_LITERAL(32, 499, 18), // "setDefaultThrottle"
67 QT_MOC_LITERAL(33, 518, 5) // "speed"
68 
69  },
70  "Ubuntu::DownloadManager::ManagerInterface\0"
71  "downloadCreated\0\0QDBusObjectPath\0path\0"
72  "allowGSMDownload\0QDBusPendingReply<>\0"
73  "allowed\0createDownload\0"
74  "QDBusPendingReply<QDBusObjectPath>\0"
75  "DownloadStruct\0download\0createDownloadGroup\0"
76  "StructList\0downloads\0algorithm\0allowed3G\0"
77  "metadata\0StringMap\0headers\0defaultThrottle\0"
78  "QDBusPendingReply<qulonglong>\0exit\0"
79  "getAllDownloads\0"
80  "QDBusPendingReply<QList<QDBusObjectPath> >\0"
81  "appId\0uncollected\0getAllDownloadsWithMetadata\0"
82  "name\0value\0isGSMDownloadAllowed\0"
83  "QDBusPendingReply<bool>\0setDefaultThrottle\0"
84  "speed"
85 };
86 #undef QT_MOC_LITERAL
87 
88 static const uint qt_meta_data_Ubuntu__DownloadManager__ManagerInterface[] = {
89 
90  // content:
91  7, // revision
92  0, // classname
93  0, 0, // classinfo
94  10, 14, // methods
95  0, 0, // properties
96  0, 0, // enums/sets
97  0, 0, // constructors
98  0, // flags
99  1, // signalCount
100 
101  // signals: name, argc, parameters, tag, flags
102  1, 1, 64, 2, 0x06 /* Public */,
103 
104  // slots: name, argc, parameters, tag, flags
105  5, 1, 67, 2, 0x0a /* Public */,
106  8, 1, 70, 2, 0x0a /* Public */,
107  12, 5, 73, 2, 0x0a /* Public */,
108  20, 0, 84, 2, 0x0a /* Public */,
109  22, 0, 85, 2, 0x0a /* Public */,
110  23, 2, 86, 2, 0x0a /* Public */,
111  27, 2, 91, 2, 0x0a /* Public */,
112  30, 0, 96, 2, 0x0a /* Public */,
113  32, 1, 97, 2, 0x0a /* Public */,
114 
115  // signals: parameters
116  QMetaType::Void, 0x80000000 | 3, 4,
117 
118  // slots: parameters
119  0x80000000 | 6, QMetaType::Bool, 7,
120  0x80000000 | 9, 0x80000000 | 10, 11,
121  0x80000000 | 9, 0x80000000 | 13, QMetaType::QString, QMetaType::Bool, QMetaType::QVariantMap, 0x80000000 | 18, 14, 15, 16, 17, 19,
122  0x80000000 | 21,
123  0x80000000 | 6,
124  0x80000000 | 24, QMetaType::QString, QMetaType::Bool, 25, 26,
125  0x80000000 | 24, QMetaType::QString, QMetaType::QString, 28, 29,
126  0x80000000 | 31,
127  0x80000000 | 6, QMetaType::ULongLong, 33,
128 
129  0 // eod
130 };
131 
132 void Ubuntu::DownloadManager::ManagerInterface::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
133 {
134  if (_c == QMetaObject::InvokeMetaMethod) {
135  ManagerInterface *_t = static_cast<ManagerInterface *>(_o);
136  Q_UNUSED(_t)
137  switch (_id) {
138  case 0: _t->downloadCreated((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); break;
139  case 1: { QDBusPendingReply<> _r = _t->allowGSMDownload((*reinterpret_cast< bool(*)>(_a[1])));
140  if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); } break;
141  case 2: { QDBusPendingReply<QDBusObjectPath> _r = _t->createDownload((*reinterpret_cast< DownloadStruct(*)>(_a[1])));
142  if (_a[0]) *reinterpret_cast< QDBusPendingReply<QDBusObjectPath>*>(_a[0]) = std::move(_r); } break;
143  case 3: { QDBusPendingReply<QDBusObjectPath> _r = _t->createDownloadGroup((*reinterpret_cast< StructList(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3])),(*reinterpret_cast< const QVariantMap(*)>(_a[4])),(*reinterpret_cast< StringMap(*)>(_a[5])));
144  if (_a[0]) *reinterpret_cast< QDBusPendingReply<QDBusObjectPath>*>(_a[0]) = std::move(_r); } break;
145  case 4: { QDBusPendingReply<qulonglong> _r = _t->defaultThrottle();
146  if (_a[0]) *reinterpret_cast< QDBusPendingReply<qulonglong>*>(_a[0]) = std::move(_r); } break;
147  case 5: { QDBusPendingReply<> _r = _t->exit();
148  if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); } break;
149  case 6: { QDBusPendingReply<QList<QDBusObjectPath> > _r = _t->getAllDownloads((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])));
150  if (_a[0]) *reinterpret_cast< QDBusPendingReply<QList<QDBusObjectPath> >*>(_a[0]) = std::move(_r); } break;
151  case 7: { QDBusPendingReply<QList<QDBusObjectPath> > _r = _t->getAllDownloadsWithMetadata((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])));
152  if (_a[0]) *reinterpret_cast< QDBusPendingReply<QList<QDBusObjectPath> >*>(_a[0]) = std::move(_r); } break;
153  case 8: { QDBusPendingReply<bool> _r = _t->isGSMDownloadAllowed();
154  if (_a[0]) *reinterpret_cast< QDBusPendingReply<bool>*>(_a[0]) = std::move(_r); } break;
155  case 9: { QDBusPendingReply<> _r = _t->setDefaultThrottle((*reinterpret_cast< qulonglong(*)>(_a[1])));
156  if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); } break;
157  default: ;
158  }
159  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
160  switch (_id) {
161  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
162  case 0:
163  switch (*reinterpret_cast<int*>(_a[1])) {
164  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
165  case 0:
166  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusObjectPath >(); break;
167  }
168  break;
169  case 2:
170  switch (*reinterpret_cast<int*>(_a[1])) {
171  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
172  case 0:
173  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< DownloadStruct >(); break;
174  }
175  break;
176  case 3:
177  switch (*reinterpret_cast<int*>(_a[1])) {
178  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
179  case 4:
180  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< StringMap >(); break;
181  case 0:
182  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< StructList >(); break;
183  }
184  break;
185  }
186  } else if (_c == QMetaObject::IndexOfMethod) {
187  int *result = reinterpret_cast<int *>(_a[0]);
188  {
189  typedef void (ManagerInterface::*_t)(const QDBusObjectPath & );
190  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ManagerInterface::downloadCreated)) {
191  *result = 0;
192  return;
193  }
194  }
195  }
196 }
197 
198 QT_INIT_METAOBJECT const QMetaObject Ubuntu::DownloadManager::ManagerInterface::staticMetaObject = {
199  { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface.data,
200  qt_meta_data_Ubuntu__DownloadManager__ManagerInterface, qt_static_metacall, nullptr, nullptr}
201 };
202 
203 
204 const QMetaObject *Ubuntu::DownloadManager::ManagerInterface::metaObject() const
205 {
206  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
207 }
208 
209 void *Ubuntu::DownloadManager::ManagerInterface::qt_metacast(const char *_clname)
210 {
211  if (!_clname) return nullptr;
212  if (!strcmp(_clname, qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface.stringdata0))
213  return static_cast<void*>(this);
214  return QDBusAbstractInterface::qt_metacast(_clname);
215 }
216 
217 int Ubuntu::DownloadManager::ManagerInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
218 {
219  _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a);
220  if (_id < 0)
221  return _id;
222  if (_c == QMetaObject::InvokeMetaMethod) {
223  if (_id < 10)
224  qt_static_metacall(this, _c, _id, _a);
225  _id -= 10;
226  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
227  if (_id < 10)
228  qt_static_metacall(this, _c, _id, _a);
229  _id -= 10;
230  }
231  return _id;
232 }
233 
234 // SIGNAL 0
235 void Ubuntu::DownloadManager::ManagerInterface::downloadCreated(const QDBusObjectPath & _t1)
236 {
237  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
238  QMetaObject::activate(this, &staticMetaObject, 0, _a);
239 }
240 QT_WARNING_POP
241 QT_END_MOC_NAMESPACE
#define QT_MOC_LITERAL(idx, ofs, len)