Ubuntu Download Manager  1.2.0
A session-wide downloading service
moc_download.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'download.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/download.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'download.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[23];
25  char stringdata0[265];
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__Download_t, stringdata0) + ofs \
30  - idx * sizeof(QByteArrayData)) \
31  )
32 static const qt_meta_stringdata_Ubuntu__DownloadManager__Download_t qt_meta_stringdata_Ubuntu__DownloadManager__Download = {
33  {
34 QT_MOC_LITERAL(0, 0, 33), // "Ubuntu::DownloadManager::Down..."
35 QT_MOC_LITERAL(1, 34, 8), // "canceled"
36 QT_MOC_LITERAL(2, 43, 0), // ""
37 QT_MOC_LITERAL(3, 44, 7), // "success"
38 QT_MOC_LITERAL(4, 52, 5), // "error"
39 QT_MOC_LITERAL(5, 58, 6), // "Error*"
40 QT_MOC_LITERAL(6, 65, 8), // "finished"
41 QT_MOC_LITERAL(7, 74, 4), // "path"
42 QT_MOC_LITERAL(8, 79, 6), // "paused"
43 QT_MOC_LITERAL(9, 86, 10), // "processing"
44 QT_MOC_LITERAL(10, 97, 8), // "progress"
45 QT_MOC_LITERAL(11, 106, 8), // "received"
46 QT_MOC_LITERAL(12, 115, 5), // "total"
47 QT_MOC_LITERAL(13, 121, 7), // "resumed"
48 QT_MOC_LITERAL(14, 129, 7), // "started"
49 QT_MOC_LITERAL(15, 137, 20), // "clickPackagedChanged"
50 QT_MOC_LITERAL(16, 158, 22), // "showInIndicatorChanged"
51 QT_MOC_LITERAL(17, 181, 12), // "titleChanged"
52 QT_MOC_LITERAL(18, 194, 21), // "destinationAppChanged"
53 QT_MOC_LITERAL(19, 216, 12), // "ClickPackage"
54 QT_MOC_LITERAL(20, 229, 15), // "ShowInIndicator"
55 QT_MOC_LITERAL(21, 245, 5), // "Title"
56 QT_MOC_LITERAL(22, 251, 13) // "DownloadOwner"
57 
58  },
59  "Ubuntu::DownloadManager::Download\0"
60  "canceled\0\0success\0error\0Error*\0finished\0"
61  "path\0paused\0processing\0progress\0"
62  "received\0total\0resumed\0started\0"
63  "clickPackagedChanged\0showInIndicatorChanged\0"
64  "titleChanged\0destinationAppChanged\0"
65  "ClickPackage\0ShowInIndicator\0Title\0"
66  "DownloadOwner"
67 };
68 #undef QT_MOC_LITERAL
69 
70 static const uint qt_meta_data_Ubuntu__DownloadManager__Download[] = {
71 
72  // content:
73  7, // revision
74  0, // classname
75  0, 0, // classinfo
76  12, 14, // methods
77  4, 104, // properties
78  0, 0, // enums/sets
79  0, 0, // constructors
80  0, // flags
81  12, // signalCount
82 
83  // signals: name, argc, parameters, tag, flags
84  1, 1, 74, 2, 0x06 /* Public */,
85  4, 1, 77, 2, 0x06 /* Public */,
86  6, 1, 80, 2, 0x06 /* Public */,
87  8, 1, 83, 2, 0x06 /* Public */,
88  9, 1, 86, 2, 0x06 /* Public */,
89  10, 2, 89, 2, 0x06 /* Public */,
90  13, 1, 94, 2, 0x06 /* Public */,
91  14, 1, 97, 2, 0x06 /* Public */,
92  15, 0, 100, 2, 0x06 /* Public */,
93  16, 0, 101, 2, 0x06 /* Public */,
94  17, 0, 102, 2, 0x06 /* Public */,
95  18, 0, 103, 2, 0x06 /* Public */,
96 
97  // signals: parameters
98  QMetaType::Void, QMetaType::Bool, 3,
99  QMetaType::Void, 0x80000000 | 5, 4,
100  QMetaType::Void, QMetaType::QString, 7,
101  QMetaType::Void, QMetaType::Bool, 3,
102  QMetaType::Void, QMetaType::QString, 7,
103  QMetaType::Void, QMetaType::ULongLong, QMetaType::ULongLong, 11, 12,
104  QMetaType::Void, QMetaType::Bool, 3,
105  QMetaType::Void, QMetaType::Bool, 3,
106  QMetaType::Void,
107  QMetaType::Void,
108  QMetaType::Void,
109  QMetaType::Void,
110 
111  // properties: name, type, flags
112  19, QMetaType::QString, 0x00495001,
113  20, QMetaType::Bool, 0x00495001,
114  21, QMetaType::QString, 0x00495001,
115  22, QMetaType::QString, 0x00495001,
116 
117  // properties: notify_signal_id
118  8,
119  9,
120  10,
121  11,
122 
123  0 // eod
124 };
125 
126 void Ubuntu::DownloadManager::Download::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
127 {
128  if (_c == QMetaObject::InvokeMetaMethod) {
129  Download *_t = static_cast<Download *>(_o);
130  Q_UNUSED(_t)
131  switch (_id) {
132  case 0: _t->canceled((*reinterpret_cast< bool(*)>(_a[1]))); break;
133  case 1: _t->error((*reinterpret_cast< Error*(*)>(_a[1]))); break;
134  case 2: _t->finished((*reinterpret_cast< const QString(*)>(_a[1]))); break;
135  case 3: _t->paused((*reinterpret_cast< bool(*)>(_a[1]))); break;
136  case 4: _t->processing((*reinterpret_cast< const QString(*)>(_a[1]))); break;
137  case 5: _t->progress((*reinterpret_cast< qulonglong(*)>(_a[1])),(*reinterpret_cast< qulonglong(*)>(_a[2]))); break;
138  case 6: _t->resumed((*reinterpret_cast< bool(*)>(_a[1]))); break;
139  case 7: _t->started((*reinterpret_cast< bool(*)>(_a[1]))); break;
140  case 8: _t->clickPackagedChanged(); break;
141  case 9: _t->showInIndicatorChanged(); break;
142  case 10: _t->titleChanged(); break;
143  case 11: _t->destinationAppChanged(); break;
144  default: ;
145  }
146  } else if (_c == QMetaObject::IndexOfMethod) {
147  int *result = reinterpret_cast<int *>(_a[0]);
148  {
149  typedef void (Download::*_t)(bool );
150  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Download::canceled)) {
151  *result = 0;
152  return;
153  }
154  }
155  {
156  typedef void (Download::*_t)(Error * );
157  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Download::error)) {
158  *result = 1;
159  return;
160  }
161  }
162  {
163  typedef void (Download::*_t)(const QString & );
164  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Download::finished)) {
165  *result = 2;
166  return;
167  }
168  }
169  {
170  typedef void (Download::*_t)(bool );
171  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Download::paused)) {
172  *result = 3;
173  return;
174  }
175  }
176  {
177  typedef void (Download::*_t)(const QString & );
178  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Download::processing)) {
179  *result = 4;
180  return;
181  }
182  }
183  {
184  typedef void (Download::*_t)(qulonglong , qulonglong );
185  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Download::progress)) {
186  *result = 5;
187  return;
188  }
189  }
190  {
191  typedef void (Download::*_t)(bool );
192  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Download::resumed)) {
193  *result = 6;
194  return;
195  }
196  }
197  {
198  typedef void (Download::*_t)(bool );
199  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Download::started)) {
200  *result = 7;
201  return;
202  }
203  }
204  {
205  typedef void (Download::*_t)();
206  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Download::clickPackagedChanged)) {
207  *result = 8;
208  return;
209  }
210  }
211  {
212  typedef void (Download::*_t)();
213  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Download::showInIndicatorChanged)) {
214  *result = 9;
215  return;
216  }
217  }
218  {
219  typedef void (Download::*_t)();
220  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Download::titleChanged)) {
221  *result = 10;
222  return;
223  }
224  }
225  {
226  typedef void (Download::*_t)();
227  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Download::destinationAppChanged)) {
228  *result = 11;
229  return;
230  }
231  }
232  }
233 #ifndef QT_NO_PROPERTIES
234  else if (_c == QMetaObject::ReadProperty) {
235  Download *_t = static_cast<Download *>(_o);
236  Q_UNUSED(_t)
237  void *_v = _a[0];
238  switch (_id) {
239  case 0: *reinterpret_cast< QString*>(_v) = _t->clickPackage(); break;
240  case 1: *reinterpret_cast< bool*>(_v) = _t->showInIndicator(); break;
241  case 2: *reinterpret_cast< QString*>(_v) = _t->title(); break;
242  case 3: *reinterpret_cast< QString*>(_v) = _t->destinationApp(); break;
243  default: break;
244  }
245  } else if (_c == QMetaObject::WriteProperty) {
246  } else if (_c == QMetaObject::ResetProperty) {
247  }
248 #endif // QT_NO_PROPERTIES
249 }
250 
251 QT_INIT_METAOBJECT const QMetaObject Ubuntu::DownloadManager::Download::staticMetaObject = {
252  { &QObject::staticMetaObject, qt_meta_stringdata_Ubuntu__DownloadManager__Download.data,
253  qt_meta_data_Ubuntu__DownloadManager__Download, qt_static_metacall, nullptr, nullptr}
254 };
255 
256 
257 const QMetaObject *Ubuntu::DownloadManager::Download::metaObject() const
258 {
259  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
260 }
261 
262 void *Ubuntu::DownloadManager::Download::qt_metacast(const char *_clname)
263 {
264  if (!_clname) return nullptr;
265  if (!strcmp(_clname, qt_meta_stringdata_Ubuntu__DownloadManager__Download.stringdata0))
266  return static_cast<void*>(this);
267  return QObject::qt_metacast(_clname);
268 }
269 
270 int Ubuntu::DownloadManager::Download::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
271 {
272  _id = QObject::qt_metacall(_c, _id, _a);
273  if (_id < 0)
274  return _id;
275  if (_c == QMetaObject::InvokeMetaMethod) {
276  if (_id < 12)
277  qt_static_metacall(this, _c, _id, _a);
278  _id -= 12;
279  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
280  if (_id < 12)
281  *reinterpret_cast<int*>(_a[0]) = -1;
282  _id -= 12;
283  }
284 #ifndef QT_NO_PROPERTIES
285  else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
286  || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
287  qt_static_metacall(this, _c, _id, _a);
288  _id -= 4;
289  } else if (_c == QMetaObject::QueryPropertyDesignable) {
290  _id -= 4;
291  } else if (_c == QMetaObject::QueryPropertyScriptable) {
292  _id -= 4;
293  } else if (_c == QMetaObject::QueryPropertyStored) {
294  _id -= 4;
295  } else if (_c == QMetaObject::QueryPropertyEditable) {
296  _id -= 4;
297  } else if (_c == QMetaObject::QueryPropertyUser) {
298  _id -= 4;
299  }
300 #endif // QT_NO_PROPERTIES
301  return _id;
302 }
303 
304 // SIGNAL 0
306 {
307  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
308  QMetaObject::activate(this, &staticMetaObject, 0, _a);
309 }
310 
311 // SIGNAL 1
313 {
314  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
315  QMetaObject::activate(this, &staticMetaObject, 1, _a);
316 }
317 
318 // SIGNAL 2
320 {
321  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
322  QMetaObject::activate(this, &staticMetaObject, 2, _a);
323 }
324 
325 // SIGNAL 3
327 {
328  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
329  QMetaObject::activate(this, &staticMetaObject, 3, _a);
330 }
331 
332 // SIGNAL 4
334 {
335  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
336  QMetaObject::activate(this, &staticMetaObject, 4, _a);
337 }
338 
339 // SIGNAL 5
340 void Ubuntu::DownloadManager::Download::progress(qulonglong _t1, qulonglong _t2)
341 {
342  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
343  QMetaObject::activate(this, &staticMetaObject, 5, _a);
344 }
345 
346 // SIGNAL 6
348 {
349  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
350  QMetaObject::activate(this, &staticMetaObject, 6, _a);
351 }
352 
353 // SIGNAL 7
355 {
356  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
357  QMetaObject::activate(this, &staticMetaObject, 7, _a);
358 }
359 
360 // SIGNAL 8
362 {
363  QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
364 }
365 
366 // SIGNAL 9
368 {
369  QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
370 }
371 
372 // SIGNAL 10
374 {
375  QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
376 }
377 
378 // SIGNAL 11
380 {
381  QMetaObject::activate(this, &staticMetaObject, 11, nullptr);
382 }
383 QT_WARNING_POP
384 QT_END_MOC_NAMESPACE
The Error class is the base class that represents an error in the download manager API...
Definition: error.h:55
void finished(const QString &path)
Download(QObject *parent=0)
Definition: download.h:57
void processing(const QString &path)
virtual Error * error() const =0
#define QT_MOC_LITERAL(idx, ofs, len)
virtual qulonglong progress()=0