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 | |
21 | QT_BEGIN_MOC_NAMESPACE |
22 | QT_WARNING_PUSH |
23 | QT_WARNING_DISABLE_DEPRECATED |
24 | struct 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 |
30 | static const qt_meta_stringdata_QProcess_t qt_meta_stringdata_QProcess = { |
31 | { |
32 | QT_MOC_LITERAL(0, 8), // "QProcess" |
33 | QT_MOC_LITERAL(9, 7), // "started" |
34 | QT_MOC_LITERAL(17, 0), // "" |
35 | QT_MOC_LITERAL(18, 8), // "finished" |
36 | QT_MOC_LITERAL(27, 8), // "exitCode" |
37 | QT_MOC_LITERAL(36, 20), // "QProcess::ExitStatus" |
38 | QT_MOC_LITERAL(57, 10), // "exitStatus" |
39 | QT_MOC_LITERAL(68, 13), // "errorOccurred" |
40 | QT_MOC_LITERAL(82, 22), // "QProcess::ProcessError" |
41 | QT_MOC_LITERAL(105, 5), // "error" |
42 | QT_MOC_LITERAL(111, 12), // "stateChanged" |
43 | QT_MOC_LITERAL(124, 22), // "QProcess::ProcessState" |
44 | QT_MOC_LITERAL(147, 5), // "state" |
45 | QT_MOC_LITERAL(153, 23), // "readyReadStandardOutput" |
46 | QT_MOC_LITERAL(177, 22), // "readyReadStandardError" |
47 | QT_MOC_LITERAL(200, 9), // "terminate" |
48 | QT_MOC_LITERAL(210, 4), // "kill" |
49 | QT_MOC_LITERAL(215, 24), // "_q_canReadStandardOutput" |
50 | QT_MOC_LITERAL(240, 23), // "_q_canReadStandardError" |
51 | QT_MOC_LITERAL(264, 11), // "_q_canWrite" |
52 | QT_MOC_LITERAL(276, 22), // "_q_startupNotification" |
53 | QT_MOC_LITERAL(299, 14), // "_q_processDied" |
54 | QT_MOC_LITERAL(314, 12), // "ProcessError" |
55 | QT_MOC_LITERAL(327, 13), // "FailedToStart" |
56 | QT_MOC_LITERAL(341, 7), // "Crashed" |
57 | QT_MOC_LITERAL(349, 8), // "Timedout" |
58 | QT_MOC_LITERAL(358, 9), // "ReadError" |
59 | QT_MOC_LITERAL(368, 10), // "WriteError" |
60 | QT_MOC_LITERAL(379, 12), // "UnknownError" |
61 | QT_MOC_LITERAL(392, 12), // "ProcessState" |
62 | QT_MOC_LITERAL(405, 10), // "NotRunning" |
63 | QT_MOC_LITERAL(416, 8), // "Starting" |
64 | QT_MOC_LITERAL(425, 7), // "Running" |
65 | QT_MOC_LITERAL(433, 14), // "ProcessChannel" |
66 | QT_MOC_LITERAL(448, 14), // "StandardOutput" |
67 | QT_MOC_LITERAL(463, 13), // "StandardError" |
68 | QT_MOC_LITERAL(477, 18), // "ProcessChannelMode" |
69 | QT_MOC_LITERAL(496, 16), // "SeparateChannels" |
70 | QT_MOC_LITERAL(513, 14), // "MergedChannels" |
71 | QT_MOC_LITERAL(528, 17), // "ForwardedChannels" |
72 | QT_MOC_LITERAL(546, 22), // "ForwardedOutputChannel" |
73 | QT_MOC_LITERAL(569, 21), // "ForwardedErrorChannel" |
74 | QT_MOC_LITERAL(591, 16), // "InputChannelMode" |
75 | QT_MOC_LITERAL(608, 19), // "ManagedInputChannel" |
76 | QT_MOC_LITERAL(628, 21), // "ForwardedInputChannel" |
77 | QT_MOC_LITERAL(650, 10), // "ExitStatus" |
78 | QT_MOC_LITERAL(661, 10), // "NormalExit" |
79 | QT_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 | |
105 | static 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 | |
187 | void 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 | |
262 | const 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, |
268 | qt_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 | |
278 | const QMetaObject *QProcess::metaObject() const |
279 | { |
280 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
281 | } |
282 | |
283 | void *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 | |
291 | int 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 |
309 | void 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 |
316 | void 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 |
323 | void 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 |
330 | void 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 |
337 | void 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 |
344 | void 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 | } |
349 | QT_WARNING_POP |
350 | QT_END_MOC_NAMESPACE |
351 | |