CuteLogger
Fast and simple logging solution for Qt based applications
moc_abstractjob.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'abstractjob.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.6.2)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/jobs/abstractjob.h"
10#include <QtCore/qmetatype.h>
11
12#if __has_include(<QtCore/qtmochelpers.h>)
13#include <QtCore/qtmochelpers.h>
14#else
15QT_BEGIN_MOC_NAMESPACE
16#endif
17
18
19#include <memory>
20
21#if !defined(Q_MOC_OUTPUT_REVISION)
22#error "The header file 'abstractjob.h' doesn't include <QObject>."
23#elif Q_MOC_OUTPUT_REVISION != 68
24#error "This file was generated using the moc from 6.6.2. It"
25#error "cannot be used with the include files from this version of Qt."
26#error "(The moc has changed too much.)"
27#endif
28
29#ifndef Q_CONSTINIT
30#define Q_CONSTINIT
31#endif
32
33QT_WARNING_PUSH
34QT_WARNING_DISABLE_DEPRECATED
35QT_WARNING_DISABLE_GCC("-Wuseless-cast")
36namespace {
37
38#ifdef QT_MOC_HAS_STRINGDATA
39struct qt_meta_stringdata_CLASSAbstractJobENDCLASS_t {};
40constexpr auto qt_meta_stringdata_CLASSAbstractJobENDCLASS = QtMocHelpers::stringData(
41 "AbstractJob",
42 "progressUpdated",
43 "",
44 "QStandardItem*",
45 "item",
46 "percent",
47 "finished",
48 "AbstractJob*",
49 "job",
50 "isSuccess",
51 "failureTime",
52 "start",
53 "program",
54 "arguments",
55 "stop",
56 "pause",
57 "resume",
58 "onFinished",
59 "exitCode",
60 "QProcess::ExitStatus",
61 "exitStatus",
62 "onReadyRead",
63 "onStarted",
64 "onProgressUpdated"
65);
66#else // !QT_MOC_HAS_STRING_DATA
67struct qt_meta_stringdata_CLASSAbstractJobENDCLASS_t {
68 uint offsetsAndSizes[48];
69 char stringdata0[12];
70 char stringdata1[16];
71 char stringdata2[1];
72 char stringdata3[15];
73 char stringdata4[5];
74 char stringdata5[8];
75 char stringdata6[9];
76 char stringdata7[13];
77 char stringdata8[4];
78 char stringdata9[10];
79 char stringdata10[12];
80 char stringdata11[6];
81 char stringdata12[8];
82 char stringdata13[10];
83 char stringdata14[5];
84 char stringdata15[6];
85 char stringdata16[7];
86 char stringdata17[11];
87 char stringdata18[9];
88 char stringdata19[21];
89 char stringdata20[11];
90 char stringdata21[12];
91 char stringdata22[10];
92 char stringdata23[18];
93};
94#define QT_MOC_LITERAL(ofs, len) \
95 uint(sizeof(qt_meta_stringdata_CLASSAbstractJobENDCLASS_t::offsetsAndSizes) + ofs), len
96Q_CONSTINIT static const qt_meta_stringdata_CLASSAbstractJobENDCLASS_t qt_meta_stringdata_CLASSAbstractJobENDCLASS = {
97 {
98 QT_MOC_LITERAL(0, 11), // "AbstractJob"
99 QT_MOC_LITERAL(12, 15), // "progressUpdated"
100 QT_MOC_LITERAL(28, 0), // ""
101 QT_MOC_LITERAL(29, 14), // "QStandardItem*"
102 QT_MOC_LITERAL(44, 4), // "item"
103 QT_MOC_LITERAL(49, 7), // "percent"
104 QT_MOC_LITERAL(57, 8), // "finished"
105 QT_MOC_LITERAL(66, 12), // "AbstractJob*"
106 QT_MOC_LITERAL(79, 3), // "job"
107 QT_MOC_LITERAL(83, 9), // "isSuccess"
108 QT_MOC_LITERAL(93, 11), // "failureTime"
109 QT_MOC_LITERAL(105, 5), // "start"
110 QT_MOC_LITERAL(111, 7), // "program"
111 QT_MOC_LITERAL(119, 9), // "arguments"
112 QT_MOC_LITERAL(129, 4), // "stop"
113 QT_MOC_LITERAL(134, 5), // "pause"
114 QT_MOC_LITERAL(140, 6), // "resume"
115 QT_MOC_LITERAL(147, 10), // "onFinished"
116 QT_MOC_LITERAL(158, 8), // "exitCode"
117 QT_MOC_LITERAL(167, 20), // "QProcess::ExitStatus"
118 QT_MOC_LITERAL(188, 10), // "exitStatus"
119 QT_MOC_LITERAL(199, 11), // "onReadyRead"
120 QT_MOC_LITERAL(211, 9), // "onStarted"
121 QT_MOC_LITERAL(221, 17) // "onProgressUpdated"
122 },
123 "AbstractJob",
124 "progressUpdated",
125 "",
126 "QStandardItem*",
127 "item",
128 "percent",
129 "finished",
130 "AbstractJob*",
131 "job",
132 "isSuccess",
133 "failureTime",
134 "start",
135 "program",
136 "arguments",
137 "stop",
138 "pause",
139 "resume",
140 "onFinished",
141 "exitCode",
142 "QProcess::ExitStatus",
143 "exitStatus",
144 "onReadyRead",
145 "onStarted",
146 "onProgressUpdated"
147};
148#undef QT_MOC_LITERAL
149#endif // !QT_MOC_HAS_STRING_DATA
150} // unnamed namespace
151
152Q_CONSTINIT static const uint qt_meta_data_CLASSAbstractJobENDCLASS[] = {
153
154 // content:
155 12, // revision
156 0, // classname
157 0, 0, // classinfo
158 13, 14, // methods
159 0, 0, // properties
160 0, 0, // enums/sets
161 0, 0, // constructors
162 0, // flags
163 3, // signalCount
164
165 // signals: name, argc, parameters, tag, flags, initial metatype offsets
166 1, 2, 92, 2, 0x06, 1 /* Public */,
167 6, 3, 97, 2, 0x06, 4 /* Public */,
168 6, 2, 104, 2, 0x26, 8 /* Public | MethodCloned */,
169
170 // slots: name, argc, parameters, tag, flags, initial metatype offsets
171 11, 2, 109, 2, 0x0a, 11 /* Public */,
172 11, 0, 114, 2, 0x0a, 14 /* Public */,
173 14, 0, 115, 2, 0x0a, 15 /* Public */,
174 15, 0, 116, 2, 0x0a, 16 /* Public */,
175 16, 0, 117, 2, 0x0a, 17 /* Public */,
176 17, 2, 118, 2, 0x09, 18 /* Protected */,
177 17, 1, 123, 2, 0x29, 21 /* Protected | MethodCloned */,
178 21, 0, 126, 2, 0x09, 23 /* Protected */,
179 22, 0, 127, 2, 0x09, 24 /* Protected */,
180 23, 2, 128, 2, 0x08, 25 /* Private */,
181
182 // signals: parameters
183 QMetaType::Void, 0x80000000 | 3, QMetaType::Int, 4, 5,
184 QMetaType::Void, 0x80000000 | 7, QMetaType::Bool, QMetaType::QString, 8, 9, 10,
185 QMetaType::Void, 0x80000000 | 7, QMetaType::Bool, 8, 9,
186
187 // slots: parameters
188 QMetaType::Void, QMetaType::QString, QMetaType::QStringList, 12, 13,
189 QMetaType::Void,
190 QMetaType::Void,
191 QMetaType::Void,
192 QMetaType::Void,
193 QMetaType::Void, QMetaType::Int, 0x80000000 | 19, 18, 20,
194 QMetaType::Void, QMetaType::Int, 18,
195 QMetaType::Void,
196 QMetaType::Void,
197 QMetaType::Void, 0x80000000 | 3, QMetaType::Int, 2, 5,
198
199 0 // eod
200};
201
202Q_CONSTINIT const QMetaObject AbstractJob::staticMetaObject = { {
203 QMetaObject::SuperData::link<QProcess::staticMetaObject>(),
204 qt_meta_stringdata_CLASSAbstractJobENDCLASS.offsetsAndSizes,
205 qt_meta_data_CLASSAbstractJobENDCLASS,
206 qt_static_metacall,
207 nullptr,
208 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSAbstractJobENDCLASS_t,
209 // Q_OBJECT / Q_GADGET
210 QtPrivate::TypeAndForceComplete<AbstractJob, std::true_type>,
211 // method 'progressUpdated'
212 QtPrivate::TypeAndForceComplete<void, std::false_type>,
213 QtPrivate::TypeAndForceComplete<QStandardItem *, std::false_type>,
214 QtPrivate::TypeAndForceComplete<int, std::false_type>,
215 // method 'finished'
216 QtPrivate::TypeAndForceComplete<void, std::false_type>,
217 QtPrivate::TypeAndForceComplete<AbstractJob *, std::false_type>,
218 QtPrivate::TypeAndForceComplete<bool, std::false_type>,
219 QtPrivate::TypeAndForceComplete<QString, std::false_type>,
220 // method 'finished'
221 QtPrivate::TypeAndForceComplete<void, std::false_type>,
222 QtPrivate::TypeAndForceComplete<AbstractJob *, std::false_type>,
223 QtPrivate::TypeAndForceComplete<bool, std::false_type>,
224 // method 'start'
225 QtPrivate::TypeAndForceComplete<void, std::false_type>,
226 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
227 QtPrivate::TypeAndForceComplete<const QStringList &, std::false_type>,
228 // method 'start'
229 QtPrivate::TypeAndForceComplete<void, std::false_type>,
230 // method 'stop'
231 QtPrivate::TypeAndForceComplete<void, std::false_type>,
232 // method 'pause'
233 QtPrivate::TypeAndForceComplete<void, std::false_type>,
234 // method 'resume'
235 QtPrivate::TypeAndForceComplete<void, std::false_type>,
236 // method 'onFinished'
237 QtPrivate::TypeAndForceComplete<void, std::false_type>,
238 QtPrivate::TypeAndForceComplete<int, std::false_type>,
239 QtPrivate::TypeAndForceComplete<QProcess::ExitStatus, std::false_type>,
240 // method 'onFinished'
241 QtPrivate::TypeAndForceComplete<void, std::false_type>,
242 QtPrivate::TypeAndForceComplete<int, std::false_type>,
243 // method 'onReadyRead'
244 QtPrivate::TypeAndForceComplete<void, std::false_type>,
245 // method 'onStarted'
246 QtPrivate::TypeAndForceComplete<void, std::false_type>,
247 // method 'onProgressUpdated'
248 QtPrivate::TypeAndForceComplete<void, std::false_type>,
249 QtPrivate::TypeAndForceComplete<QStandardItem *, std::false_type>,
250 QtPrivate::TypeAndForceComplete<int, std::false_type>
251 >,
252 nullptr
253} };
254
255void AbstractJob::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
256{
257 if (_c == QMetaObject::InvokeMetaMethod) {
258 auto *_t = static_cast<AbstractJob *>(_o);
259 (void)_t;
260 switch (_id) {
261 case 0: _t->progressUpdated((*reinterpret_cast< std::add_pointer_t<QStandardItem*>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2]))); break;
262 case 1: _t->finished((*reinterpret_cast< std::add_pointer_t<AbstractJob*>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<bool>>(_a[2])),(*reinterpret_cast< std::add_pointer_t<QString>>(_a[3]))); break;
263 case 2: _t->finished((*reinterpret_cast< std::add_pointer_t<AbstractJob*>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<bool>>(_a[2]))); break;
264 case 3: _t->start((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QStringList>>(_a[2]))); break;
265 case 4: _t->start(); break;
266 case 5: _t->stop(); break;
267 case 6: _t->pause(); break;
268 case 7: _t->resume(); break;
269 case 8: _t->onFinished((*reinterpret_cast< std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QProcess::ExitStatus>>(_a[2]))); break;
270 case 9: _t->onFinished((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
271 case 10: _t->onReadyRead(); break;
272 case 11: _t->onStarted(); break;
273 case 12: _t->onProgressUpdated((*reinterpret_cast< std::add_pointer_t<QStandardItem*>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2]))); break;
274 default: ;
275 }
276 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
277 switch (_id) {
278 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
279 case 1:
280 switch (*reinterpret_cast<int*>(_a[1])) {
281 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
282 case 0:
283 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< AbstractJob* >(); break;
284 }
285 break;
286 case 2:
287 switch (*reinterpret_cast<int*>(_a[1])) {
288 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
289 case 0:
290 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< AbstractJob* >(); break;
291 }
292 break;
293 }
294 } else if (_c == QMetaObject::IndexOfMethod) {
295 int *result = reinterpret_cast<int *>(_a[0]);
296 {
297 using _t = void (AbstractJob::*)(QStandardItem * , int );
298 if (_t _q_method = &AbstractJob::progressUpdated; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
299 *result = 0;
300 return;
301 }
302 }
303 {
304 using _t = void (AbstractJob::*)(AbstractJob * , bool , QString );
305 if (_t _q_method = &AbstractJob::finished; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
306 *result = 1;
307 return;
308 }
309 }
310 }
311}
312
313const QMetaObject *AbstractJob::metaObject() const
314{
315 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
316}
317
318void *AbstractJob::qt_metacast(const char *_clname)
319{
320 if (!_clname) return nullptr;
321 if (!strcmp(_clname, qt_meta_stringdata_CLASSAbstractJobENDCLASS.stringdata0))
322 return static_cast<void*>(this);
323 return QProcess::qt_metacast(_clname);
324}
325
326int AbstractJob::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
327{
328 _id = QProcess::qt_metacall(_c, _id, _a);
329 if (_id < 0)
330 return _id;
331 if (_c == QMetaObject::InvokeMetaMethod) {
332 if (_id < 13)
333 qt_static_metacall(this, _c, _id, _a);
334 _id -= 13;
335 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
336 if (_id < 13)
337 qt_static_metacall(this, _c, _id, _a);
338 _id -= 13;
339 }
340 return _id;
341}
342
343// SIGNAL 0
344void AbstractJob::progressUpdated(QStandardItem * _t1, int _t2)
345{
346 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
347 QMetaObject::activate(this, &staticMetaObject, 0, _a);
348}
349
350// SIGNAL 1
351void AbstractJob::finished(AbstractJob * _t1, bool _t2, QString _t3)
352{
353 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))) };
354 QMetaObject::activate(this, &staticMetaObject, 1, _a);
355}
356QT_WARNING_POP