Ubuntu Download Manager: /build/ubuntu-download-manager-git/src/ubuntu-download-manager/src/downloads/client/ubuntu-download-manager-client_autogen/KVAQPNROTY/moc_manager.cpp Source File

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