1/****************************************************************************
2** Meta object code from reading C++ file 'qprocess.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include <memory>
10#include "io/qprocess.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qprocess.h' doesn't include <QObject>."
15#elif Q_MOC_OUTPUT_REVISION != 68
16#error "This file was generated using the moc from 6.0.0. 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
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_QProcess_t {
25 const uint offsetsAndSize[96];
26 char stringdata0[682];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QProcess_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QProcess_t qt_meta_stringdata_QProcess = {
31 {
32QT_MOC_LITERAL(0, 8), // "QProcess"
33QT_MOC_LITERAL(9, 7), // "started"
34QT_MOC_LITERAL(17, 0), // ""
35QT_MOC_LITERAL(18, 8), // "finished"
36QT_MOC_LITERAL(27, 8), // "exitCode"
37QT_MOC_LITERAL(36, 20), // "QProcess::ExitStatus"
38QT_MOC_LITERAL(57, 10), // "exitStatus"
39QT_MOC_LITERAL(68, 13), // "errorOccurred"
40QT_MOC_LITERAL(82, 22), // "QProcess::ProcessError"
41QT_MOC_LITERAL(105, 5), // "error"
42QT_MOC_LITERAL(111, 12), // "stateChanged"
43QT_MOC_LITERAL(124, 22), // "QProcess::ProcessState"
44QT_MOC_LITERAL(147, 5), // "state"
45QT_MOC_LITERAL(153, 23), // "readyReadStandardOutput"
46QT_MOC_LITERAL(177, 22), // "readyReadStandardError"
47QT_MOC_LITERAL(200, 9), // "terminate"
48QT_MOC_LITERAL(210, 4), // "kill"
49QT_MOC_LITERAL(215, 24), // "_q_canReadStandardOutput"
50QT_MOC_LITERAL(240, 23), // "_q_canReadStandardError"
51QT_MOC_LITERAL(264, 11), // "_q_canWrite"
52QT_MOC_LITERAL(276, 22), // "_q_startupNotification"
53QT_MOC_LITERAL(299, 14), // "_q_processDied"
54QT_MOC_LITERAL(314, 12), // "ProcessError"
55QT_MOC_LITERAL(327, 13), // "FailedToStart"
56QT_MOC_LITERAL(341, 7), // "Crashed"
57QT_MOC_LITERAL(349, 8), // "Timedout"
58QT_MOC_LITERAL(358, 9), // "ReadError"
59QT_MOC_LITERAL(368, 10), // "WriteError"
60QT_MOC_LITERAL(379, 12), // "UnknownError"
61QT_MOC_LITERAL(392, 12), // "ProcessState"
62QT_MOC_LITERAL(405, 10), // "NotRunning"
63QT_MOC_LITERAL(416, 8), // "Starting"
64QT_MOC_LITERAL(425, 7), // "Running"
65QT_MOC_LITERAL(433, 14), // "ProcessChannel"
66QT_MOC_LITERAL(448, 14), // "StandardOutput"
67QT_MOC_LITERAL(463, 13), // "StandardError"
68QT_MOC_LITERAL(477, 18), // "ProcessChannelMode"
69QT_MOC_LITERAL(496, 16), // "SeparateChannels"
70QT_MOC_LITERAL(513, 14), // "MergedChannels"
71QT_MOC_LITERAL(528, 17), // "ForwardedChannels"
72QT_MOC_LITERAL(546, 22), // "ForwardedOutputChannel"
73QT_MOC_LITERAL(569, 21), // "ForwardedErrorChannel"
74QT_MOC_LITERAL(591, 16), // "InputChannelMode"
75QT_MOC_LITERAL(608, 19), // "ManagedInputChannel"
76QT_MOC_LITERAL(628, 21), // "ForwardedInputChannel"
77QT_MOC_LITERAL(650, 10), // "ExitStatus"
78QT_MOC_LITERAL(661, 10), // "NormalExit"
79QT_MOC_LITERAL(672, 9) // "CrashExit"
80
81 },
82 "QProcess\0started\0\0finished\0exitCode\0"
83 "QProcess::ExitStatus\0exitStatus\0"
84 "errorOccurred\0QProcess::ProcessError\0"
85 "error\0stateChanged\0QProcess::ProcessState\0"
86 "state\0readyReadStandardOutput\0"
87 "readyReadStandardError\0terminate\0kill\0"
88 "_q_canReadStandardOutput\0"
89 "_q_canReadStandardError\0_q_canWrite\0"
90 "_q_startupNotification\0_q_processDied\0"
91 "ProcessError\0FailedToStart\0Crashed\0"
92 "Timedout\0ReadError\0WriteError\0"
93 "UnknownError\0ProcessState\0NotRunning\0"
94 "Starting\0Running\0ProcessChannel\0"
95 "StandardOutput\0StandardError\0"
96 "ProcessChannelMode\0SeparateChannels\0"
97 "MergedChannels\0ForwardedChannels\0"
98 "ForwardedOutputChannel\0ForwardedErrorChannel\0"
99 "InputChannelMode\0ManagedInputChannel\0"
100 "ForwardedInputChannel\0ExitStatus\0"
101 "NormalExit\0CrashExit"
102};
103#undef QT_MOC_LITERAL
104
105static const uint qt_meta_data_QProcess[] = {
106
107 // content:
108 9, // revision
109 0, // classname
110 0, 0, // classinfo
111 14, 14, // methods
112 0, 0, // properties
113 6, 122, // enums/sets
114 0, 0, // constructors
115 0, // flags
116 7, // signalCount
117
118 // signals: name, argc, parameters, tag, flags, initial metatype offsets
119 1, 0, 98, 2, 0x06, 0 /* Public */,
120 3, 2, 99, 2, 0x06, 1 /* Public */,
121 3, 1, 104, 2, 0x26, 4 /* Public | MethodCloned */,
122 7, 1, 107, 2, 0x06, 6 /* Public */,
123 10, 1, 110, 2, 0x06, 8 /* Public */,
124 13, 0, 113, 2, 0x06, 10 /* Public */,
125 14, 0, 114, 2, 0x06, 11 /* Public */,
126
127 // slots: name, argc, parameters, tag, flags, initial metatype offsets
128 15, 0, 115, 2, 0x0a, 12 /* Public */,
129 16, 0, 116, 2, 0x0a, 13 /* Public */,
130 17, 0, 117, 2, 0x08, 14 /* Private */,
131 18, 0, 118, 2, 0x08, 15 /* Private */,
132 19, 0, 119, 2, 0x08, 16 /* Private */,
133 20, 0, 120, 2, 0x08, 17 /* Private */,
134 21, 0, 121, 2, 0x08, 18 /* Private */,
135
136 // signals: parameters
137 QMetaType::Void,
138 QMetaType::Void, QMetaType::Int, 0x80000000 | 5, 4, 6,
139 QMetaType::Void, QMetaType::Int, 4,
140 QMetaType::Void, 0x80000000 | 8, 9,
141 QMetaType::Void, 0x80000000 | 11, 12,
142 QMetaType::Void,
143 QMetaType::Void,
144
145 // slots: parameters
146 QMetaType::Void,
147 QMetaType::Void,
148 QMetaType::Bool,
149 QMetaType::Bool,
150 QMetaType::Bool,
151 QMetaType::Bool,
152 QMetaType::Bool,
153
154 // enums: name, alias, flags, count, data
155 22, 22, 0x0, 6, 152,
156 29, 29, 0x0, 3, 164,
157 33, 33, 0x0, 2, 170,
158 36, 36, 0x0, 5, 174,
159 42, 42, 0x0, 2, 184,
160 45, 45, 0x0, 2, 188,
161
162 // enum data: key, value
163 23, uint(QProcess::FailedToStart),
164 24, uint(QProcess::Crashed),
165 25, uint(QProcess::Timedout),
166 26, uint(QProcess::ReadError),
167 27, uint(QProcess::WriteError),
168 28, uint(QProcess::UnknownError),
169 30, uint(QProcess::NotRunning),
170 31, uint(QProcess::Starting),
171 32, uint(QProcess::Running),
172 34, uint(QProcess::StandardOutput),
173 35, uint(QProcess::StandardError),
174 37, uint(QProcess::SeparateChannels),
175 38, uint(QProcess::MergedChannels),
176 39, uint(QProcess::ForwardedChannels),
177 40, uint(QProcess::ForwardedOutputChannel),
178 41, uint(QProcess::ForwardedErrorChannel),
179 43, uint(QProcess::ManagedInputChannel),
180 44, uint(QProcess::ForwardedInputChannel),
181 46, uint(QProcess::NormalExit),
182 47, uint(QProcess::CrashExit),
183
184 0 // eod
185};
186
187void QProcess::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
188{
189 if (_c == QMetaObject::InvokeMetaMethod) {
190 Q_ASSERT(staticMetaObject.cast(_o));
191 auto *_t = static_cast<QProcess *>(_o);
192 Q_UNUSED(_t)
193 switch (_id) {
194 case 0: _t->started(QPrivateSignal()); break;
195 case 1: _t->finished((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QProcess::ExitStatus(*)>(_a[2]))); break;
196 case 2: _t->finished((*reinterpret_cast< int(*)>(_a[1]))); break;
197 case 3: _t->errorOccurred((*reinterpret_cast< QProcess::ProcessError(*)>(_a[1]))); break;
198 case 4: _t->stateChanged((*reinterpret_cast< QProcess::ProcessState(*)>(_a[1])), QPrivateSignal()); break;
199 case 5: _t->readyReadStandardOutput(QPrivateSignal()); break;
200 case 6: _t->readyReadStandardError(QPrivateSignal()); break;
201 case 7: _t->terminate(); break;
202 case 8: _t->kill(); break;
203 case 9: { bool _r = _t->d_func()->_q_canReadStandardOutput();
204 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
205 case 10: { bool _r = _t->d_func()->_q_canReadStandardError();
206 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
207 case 11: { bool _r = _t->d_func()->_q_canWrite();
208 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
209 case 12: { bool _r = _t->d_func()->_q_startupNotification();
210 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
211 case 13: { bool _r = _t->d_func()->_q_processDied();
212 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
213 default: ;
214 }
215 } else if (_c == QMetaObject::IndexOfMethod) {
216 int *result = reinterpret_cast<int *>(_a[0]);
217 {
218 using _t = void (QProcess::*)(QPrivateSignal);
219 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QProcess::started)) {
220 *result = 0;
221 return;
222 }
223 }
224 {
225 using _t = void (QProcess::*)(int , QProcess::ExitStatus );
226 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QProcess::finished)) {
227 *result = 1;
228 return;
229 }
230 }
231 {
232 using _t = void (QProcess::*)(QProcess::ProcessError );
233 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QProcess::errorOccurred)) {
234 *result = 3;
235 return;
236 }
237 }
238 {
239 using _t = void (QProcess::*)(QProcess::ProcessState , QPrivateSignal);
240 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QProcess::stateChanged)) {
241 *result = 4;
242 return;
243 }
244 }
245 {
246 using _t = void (QProcess::*)(QPrivateSignal);
247 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QProcess::readyReadStandardOutput)) {
248 *result = 5;
249 return;
250 }
251 }
252 {
253 using _t = void (QProcess::*)(QPrivateSignal);
254 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QProcess::readyReadStandardError)) {
255 *result = 6;
256 return;
257 }
258 }
259 }
260}
261
262const QMetaObject QProcess::staticMetaObject = { {
263 QMetaObject::SuperData::link<QIODevice::staticMetaObject>(),
264 qt_meta_stringdata_QProcess.offsetsAndSize,
265 qt_meta_data_QProcess,
266 qt_static_metacall,
267 nullptr,
268qt_incomplete_metaTypeArray<qt_meta_stringdata_QProcess_t
269, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<QProcess::ExitStatus, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QProcess::ProcessError, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QProcess::ProcessState, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
270, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>
271
272
273>,
274 nullptr
275} };
276
277
278const QMetaObject *QProcess::metaObject() const
279{
280 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
281}
282
283void *QProcess::qt_metacast(const char *_clname)
284{
285 if (!_clname) return nullptr;
286 if (!strcmp(_clname, qt_meta_stringdata_QProcess.stringdata0))
287 return static_cast<void*>(this);
288 return QIODevice::qt_metacast(_clname);
289}
290
291int QProcess::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
292{
293 _id = QIODevice::qt_metacall(_c, _id, _a);
294 if (_id < 0)
295 return _id;
296 if (_c == QMetaObject::InvokeMetaMethod) {
297 if (_id < 14)
298 qt_static_metacall(this, _c, _id, _a);
299 _id -= 14;
300 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
301 if (_id < 14)
302 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
303 _id -= 14;
304 }
305 return _id;
306}
307
308// SIGNAL 0
309void QProcess::started(QPrivateSignal _t1)
310{
311 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
312 QMetaObject::activate(this, &staticMetaObject, 0, _a);
313}
314
315// SIGNAL 1
316void QProcess::finished(int _t1, QProcess::ExitStatus _t2)
317{
318 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
319 QMetaObject::activate(this, &staticMetaObject, 1, _a);
320}
321
322// SIGNAL 3
323void QProcess::errorOccurred(QProcess::ProcessError _t1)
324{
325 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
326 QMetaObject::activate(this, &staticMetaObject, 3, _a);
327}
328
329// SIGNAL 4
330void QProcess::stateChanged(QProcess::ProcessState _t1, QPrivateSignal _t2)
331{
332 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
333 QMetaObject::activate(this, &staticMetaObject, 4, _a);
334}
335
336// SIGNAL 5
337void QProcess::readyReadStandardOutput(QPrivateSignal _t1)
338{
339 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
340 QMetaObject::activate(this, &staticMetaObject, 5, _a);
341}
342
343// SIGNAL 6
344void QProcess::readyReadStandardError(QPrivateSignal _t1)
345{
346 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
347 QMetaObject::activate(this, &staticMetaObject, 6, _a);
348}
349QT_WARNING_POP
350QT_END_MOC_NAMESPACE
351