Ubuntu Download Manager  1.2.0
A session-wide downloading service
moc_manager.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'manager.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.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'manager.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[13];
25  char stringdata0[171];
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__Manager_t, stringdata0) + ofs \
30  - idx * sizeof(QByteArrayData)) \
31  )
32 static const qt_meta_stringdata_Ubuntu__DownloadManager__Manager_t qt_meta_stringdata_Ubuntu__DownloadManager__Manager = {
33  {
34 QT_MOC_LITERAL(0, 0, 32), // "Ubuntu::DownloadManager::Manager"
35 QT_MOC_LITERAL(1, 33, 15), // "downloadCreated"
36 QT_MOC_LITERAL(2, 49, 0), // ""
37 QT_MOC_LITERAL(3, 50, 9), // "Download*"
38 QT_MOC_LITERAL(4, 60, 4), // "down"
39 QT_MOC_LITERAL(5, 65, 14), // "downloadsFound"
40 QT_MOC_LITERAL(6, 80, 14), // "DownloadsList*"
41 QT_MOC_LITERAL(7, 95, 9), // "downloads"
42 QT_MOC_LITERAL(8, 105, 26), // "downloadsWithMetadataFound"
43 QT_MOC_LITERAL(9, 132, 4), // "name"
44 QT_MOC_LITERAL(10, 137, 5), // "value"
45 QT_MOC_LITERAL(11, 143, 12), // "groupCreated"
46 QT_MOC_LITERAL(12, 156, 14) // "GroupDownload*"
47 
48  },
49  "Ubuntu::DownloadManager::Manager\0"
50  "downloadCreated\0\0Download*\0down\0"
51  "downloadsFound\0DownloadsList*\0downloads\0"
52  "downloadsWithMetadataFound\0name\0value\0"
53  "groupCreated\0GroupDownload*"
54 };
55 #undef QT_MOC_LITERAL
56 
57 static const uint qt_meta_data_Ubuntu__DownloadManager__Manager[] = {
58 
59  // content:
60  7, // revision
61  0, // classname
62  0, 0, // classinfo
63  4, 14, // methods
64  0, 0, // properties
65  0, 0, // enums/sets
66  0, 0, // constructors
67  0, // flags
68  4, // signalCount
69 
70  // signals: name, argc, parameters, tag, flags
71  1, 1, 34, 2, 0x06 /* Public */,
72  5, 1, 37, 2, 0x06 /* Public */,
73  8, 3, 40, 2, 0x06 /* Public */,
74  11, 1, 47, 2, 0x06 /* Public */,
75 
76  // signals: parameters
77  QMetaType::Void, 0x80000000 | 3, 4,
78  QMetaType::Void, 0x80000000 | 6, 7,
79  QMetaType::Void, QMetaType::QString, QMetaType::QString, 0x80000000 | 6, 9, 10, 7,
80  QMetaType::Void, 0x80000000 | 12, 4,
81 
82  0 // eod
83 };
84 
85 void Ubuntu::DownloadManager::Manager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
86 {
87  if (_c == QMetaObject::InvokeMetaMethod) {
88  Manager *_t = static_cast<Manager *>(_o);
89  Q_UNUSED(_t)
90  switch (_id) {
91  case 0: _t->downloadCreated((*reinterpret_cast< Download*(*)>(_a[1]))); break;
92  case 1: _t->downloadsFound((*reinterpret_cast< DownloadsList*(*)>(_a[1]))); break;
93  case 2: _t->downloadsWithMetadataFound((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< DownloadsList*(*)>(_a[3]))); break;
94  case 3: _t->groupCreated((*reinterpret_cast< GroupDownload*(*)>(_a[1]))); break;
95  default: ;
96  }
97  } else if (_c == QMetaObject::IndexOfMethod) {
98  int *result = reinterpret_cast<int *>(_a[0]);
99  {
100  typedef void (Manager::*_t)(Download * );
101  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Manager::downloadCreated)) {
102  *result = 0;
103  return;
104  }
105  }
106  {
107  typedef void (Manager::*_t)(DownloadsList * );
108  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Manager::downloadsFound)) {
109  *result = 1;
110  return;
111  }
112  }
113  {
114  typedef void (Manager::*_t)(const QString & , const QString & , DownloadsList * );
115  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Manager::downloadsWithMetadataFound)) {
116  *result = 2;
117  return;
118  }
119  }
120  {
121  typedef void (Manager::*_t)(GroupDownload * );
122  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Manager::groupCreated)) {
123  *result = 3;
124  return;
125  }
126  }
127  }
128 }
129 
130 QT_INIT_METAOBJECT const QMetaObject Ubuntu::DownloadManager::Manager::staticMetaObject = {
131  { &QObject::staticMetaObject, qt_meta_stringdata_Ubuntu__DownloadManager__Manager.data,
132  qt_meta_data_Ubuntu__DownloadManager__Manager, qt_static_metacall, nullptr, nullptr}
133 };
134 
135 
136 const QMetaObject *Ubuntu::DownloadManager::Manager::metaObject() const
137 {
138  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
139 }
140 
141 void *Ubuntu::DownloadManager::Manager::qt_metacast(const char *_clname)
142 {
143  if (!_clname) return nullptr;
144  if (!strcmp(_clname, qt_meta_stringdata_Ubuntu__DownloadManager__Manager.stringdata0))
145  return static_cast<void*>(this);
146  return QObject::qt_metacast(_clname);
147 }
148 
149 int Ubuntu::DownloadManager::Manager::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
150 {
151  _id = QObject::qt_metacall(_c, _id, _a);
152  if (_id < 0)
153  return _id;
154  if (_c == QMetaObject::InvokeMetaMethod) {
155  if (_id < 4)
156  qt_static_metacall(this, _c, _id, _a);
157  _id -= 4;
158  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
159  if (_id < 4)
160  *reinterpret_cast<int*>(_a[0]) = -1;
161  _id -= 4;
162  }
163  return _id;
164 }
165 
166 // SIGNAL 0
168 {
169  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
170  QMetaObject::activate(this, &staticMetaObject, 0, _a);
171 }
172 
173 // SIGNAL 1
175 {
176  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
177  QMetaObject::activate(this, &staticMetaObject, 1, _a);
178 }
179 
180 // SIGNAL 2
181 void Ubuntu::DownloadManager::Manager::downloadsWithMetadataFound(const QString & _t1, const QString & _t2, DownloadsList * _t3)
182 {
183  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
184  QMetaObject::activate(this, &staticMetaObject, 2, _a);
185 }
186 
187 // SIGNAL 3
189 {
190  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
191  QMetaObject::activate(this, &staticMetaObject, 3, _a);
192 }
193 QT_WARNING_POP
194 QT_END_MOC_NAMESPACE
void groupCreated(GroupDownload *down)
void downloadsFound(DownloadsList *downloads)
The Download class allows to control a download that was created in the download manager.
Definition: download.h:49
Manager(QObject *parent=0)
Definition: manager.h:84
void downloadCreated(Download *down)
void downloadsWithMetadataFound(const QString &name, const QString &value, DownloadsList *downloads)
#define QT_MOC_LITERAL(idx, ofs, len)
Definition: moc_manager.cpp:27