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.8.1)
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#include <QtCore/qtmochelpers.h>
13
14#include <memory>
15
16
17#include <QtCore/qxptype_traits.h>
18#if !defined(Q_MOC_OUTPUT_REVISION)
19#error "The header file 'abstractjob.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 68
21#error "This file was generated using the moc from 6.8.1. It"
22#error "cannot be used with the include files from this version of Qt."
23#error "(The moc has changed too much.)"
24#endif
25
26#ifndef Q_CONSTINIT
27#define Q_CONSTINIT
28#endif
29
30QT_WARNING_PUSH
31QT_WARNING_DISABLE_DEPRECATED
32QT_WARNING_DISABLE_GCC("-Wuseless-cast")
33namespace {
34struct qt_meta_tag_ZN11AbstractJobE_t {};
35} // unnamed namespace
36
37
38#ifdef QT_MOC_HAS_STRINGDATA
39static constexpr auto qt_meta_stringdata_ZN11AbstractJobE = QtMocHelpers::stringData(
40 "AbstractJob",
41 "progressUpdated",
42 "",
43 "QStandardItem*",
44 "item",
45 "percent",
46 "finished",
47 "AbstractJob*",
48 "job",
49 "isSuccess",
50 "failureTime",
51 "start",
52 "program",
53 "arguments",
54 "stop",
55 "pause",
56 "resume",
57 "onFinished",
58 "exitCode",
59 "QProcess::ExitStatus",
60 "exitStatus",
61 "onReadyRead",
62 "onStarted",
63 "onProgressUpdated"
64);
65#else // !QT_MOC_HAS_STRINGDATA
66#error "qtmochelpers.h not found or too old."
67#endif // !QT_MOC_HAS_STRINGDATA
68
69Q_CONSTINIT static const uint qt_meta_data_ZN11AbstractJobE[] = {
70
71 // content:
72 12, // revision
73 0, // classname
74 0, 0, // classinfo
75 13, 14, // methods
76 0, 0, // properties
77 0, 0, // enums/sets
78 0, 0, // constructors
79 0, // flags
80 3, // signalCount
81
82 // signals: name, argc, parameters, tag, flags, initial metatype offsets
83 1, 2, 92, 2, 0x06, 1 /* Public */,
84 6, 3, 97, 2, 0x06, 4 /* Public */,
85 6, 2, 104, 2, 0x26, 8 /* Public | MethodCloned */,
86
87 // slots: name, argc, parameters, tag, flags, initial metatype offsets
88 11, 2, 109, 2, 0x0a, 11 /* Public */,
89 11, 0, 114, 2, 0x0a, 14 /* Public */,
90 14, 0, 115, 2, 0x0a, 15 /* Public */,
91 15, 0, 116, 2, 0x0a, 16 /* Public */,
92 16, 0, 117, 2, 0x0a, 17 /* Public */,
93 17, 2, 118, 2, 0x09, 18 /* Protected */,
94 17, 1, 123, 2, 0x29, 21 /* Protected | MethodCloned */,
95 21, 0, 126, 2, 0x09, 23 /* Protected */,
96 22, 0, 127, 2, 0x09, 24 /* Protected */,
97 23, 2, 128, 2, 0x08, 25 /* Private */,
98
99 // signals: parameters
100 QMetaType::Void, 0x80000000 | 3, QMetaType::Int, 4, 5,
101 QMetaType::Void, 0x80000000 | 7, QMetaType::Bool, QMetaType::QString, 8, 9, 10,
102 QMetaType::Void, 0x80000000 | 7, QMetaType::Bool, 8, 9,
103
104 // slots: parameters
105 QMetaType::Void, QMetaType::QString, QMetaType::QStringList, 12, 13,
106 QMetaType::Void,
107 QMetaType::Void,
108 QMetaType::Void,
109 QMetaType::Void,
110 QMetaType::Void, QMetaType::Int, 0x80000000 | 19, 18, 20,
111 QMetaType::Void, QMetaType::Int, 18,
112 QMetaType::Void,
113 QMetaType::Void,
114 QMetaType::Void, 0x80000000 | 3, QMetaType::Int, 2, 5,
115
116 0 // eod
117};
118
119Q_CONSTINIT const QMetaObject AbstractJob::staticMetaObject = { {
120 QMetaObject::SuperData::link<QProcess::staticMetaObject>(),
121 qt_meta_stringdata_ZN11AbstractJobE.offsetsAndSizes,
122 qt_meta_data_ZN11AbstractJobE,
123 qt_static_metacall,
124 nullptr,
125 qt_incomplete_metaTypeArray<qt_meta_tag_ZN11AbstractJobE_t,
126 // Q_OBJECT / Q_GADGET
127 QtPrivate::TypeAndForceComplete<AbstractJob, std::true_type>,
128 // method 'progressUpdated'
129 QtPrivate::TypeAndForceComplete<void, std::false_type>,
130 QtPrivate::TypeAndForceComplete<QStandardItem *, std::false_type>,
131 QtPrivate::TypeAndForceComplete<int, std::false_type>,
132 // method 'finished'
133 QtPrivate::TypeAndForceComplete<void, std::false_type>,
134 QtPrivate::TypeAndForceComplete<AbstractJob *, std::false_type>,
135 QtPrivate::TypeAndForceComplete<bool, std::false_type>,
136 QtPrivate::TypeAndForceComplete<QString, std::false_type>,
137 // method 'finished'
138 QtPrivate::TypeAndForceComplete<void, std::false_type>,
139 QtPrivate::TypeAndForceComplete<AbstractJob *, std::false_type>,
140 QtPrivate::TypeAndForceComplete<bool, std::false_type>,
141 // method 'start'
142 QtPrivate::TypeAndForceComplete<void, std::false_type>,
143 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
144 QtPrivate::TypeAndForceComplete<const QStringList &, std::false_type>,
145 // method 'start'
146 QtPrivate::TypeAndForceComplete<void, std::false_type>,
147 // method 'stop'
148 QtPrivate::TypeAndForceComplete<void, std::false_type>,
149 // method 'pause'
150 QtPrivate::TypeAndForceComplete<void, std::false_type>,
151 // method 'resume'
152 QtPrivate::TypeAndForceComplete<void, std::false_type>,
153 // method 'onFinished'
154 QtPrivate::TypeAndForceComplete<void, std::false_type>,
155 QtPrivate::TypeAndForceComplete<int, std::false_type>,
156 QtPrivate::TypeAndForceComplete<QProcess::ExitStatus, std::false_type>,
157 // method 'onFinished'
158 QtPrivate::TypeAndForceComplete<void, std::false_type>,
159 QtPrivate::TypeAndForceComplete<int, std::false_type>,
160 // method 'onReadyRead'
161 QtPrivate::TypeAndForceComplete<void, std::false_type>,
162 // method 'onStarted'
163 QtPrivate::TypeAndForceComplete<void, std::false_type>,
164 // method 'onProgressUpdated'
165 QtPrivate::TypeAndForceComplete<void, std::false_type>,
166 QtPrivate::TypeAndForceComplete<QStandardItem *, std::false_type>,
167 QtPrivate::TypeAndForceComplete<int, std::false_type>
168 >,
169 nullptr
170} };
171
172void AbstractJob::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
173{
174 auto *_t = static_cast<AbstractJob *>(_o);
175 if (_c == QMetaObject::InvokeMetaMethod) {
176 switch (_id) {
177 case 0: _t->progressUpdated((*reinterpret_cast< std::add_pointer_t<QStandardItem*>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2]))); break;
178 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;
179 case 2: _t->finished((*reinterpret_cast< std::add_pointer_t<AbstractJob*>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<bool>>(_a[2]))); break;
180 case 3: _t->start((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QStringList>>(_a[2]))); break;
181 case 4: _t->start(); break;
182 case 5: _t->stop(); break;
183 case 6: _t->pause(); break;
184 case 7: _t->resume(); break;
185 case 8: _t->onFinished((*reinterpret_cast< std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QProcess::ExitStatus>>(_a[2]))); break;
186 case 9: _t->onFinished((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
187 case 10: _t->onReadyRead(); break;
188 case 11: _t->onStarted(); break;
189 case 12: _t->onProgressUpdated((*reinterpret_cast< std::add_pointer_t<QStandardItem*>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2]))); break;
190 default: ;
191 }
192 }
193 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
194 switch (_id) {
195 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
196 case 1:
197 switch (*reinterpret_cast<int*>(_a[1])) {
198 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
199 case 0:
200 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< AbstractJob* >(); break;
201 }
202 break;
203 case 2:
204 switch (*reinterpret_cast<int*>(_a[1])) {
205 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
206 case 0:
207 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< AbstractJob* >(); break;
208 }
209 break;
210 }
211 }
212 if (_c == QMetaObject::IndexOfMethod) {
213 int *result = reinterpret_cast<int *>(_a[0]);
214 {
215 using _q_method_type = void (AbstractJob::*)(QStandardItem * , int );
216 if (_q_method_type _q_method = &AbstractJob::progressUpdated; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
217 *result = 0;
218 return;
219 }
220 }
221 {
222 using _q_method_type = void (AbstractJob::*)(AbstractJob * , bool , QString );
223 if (_q_method_type _q_method = &AbstractJob::finished; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
224 *result = 1;
225 return;
226 }
227 }
228 }
229}
230
231const QMetaObject *AbstractJob::metaObject() const
232{
233 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
234}
235
236void *AbstractJob::qt_metacast(const char *_clname)
237{
238 if (!_clname) return nullptr;
239 if (!strcmp(_clname, qt_meta_stringdata_ZN11AbstractJobE.stringdata0))
240 return static_cast<void*>(this);
241 return QProcess::qt_metacast(_clname);
242}
243
244int AbstractJob::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
245{
246 _id = QProcess::qt_metacall(_c, _id, _a);
247 if (_id < 0)
248 return _id;
249 if (_c == QMetaObject::InvokeMetaMethod) {
250 if (_id < 13)
251 qt_static_metacall(this, _c, _id, _a);
252 _id -= 13;
253 }
254 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
255 if (_id < 13)
256 qt_static_metacall(this, _c, _id, _a);
257 _id -= 13;
258 }
259 return _id;
260}
261
262// SIGNAL 0
263void AbstractJob::progressUpdated(QStandardItem * _t1, int _t2)
264{
265 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
266 QMetaObject::activate(this, &staticMetaObject, 0, _a);
267}
268
269// SIGNAL 1
270void AbstractJob::finished(AbstractJob * _t1, bool _t2, QString _t3)
271{
272 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))) };
273 QMetaObject::activate(this, &staticMetaObject, 1, _a);
274}
275QT_WARNING_POP