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