QtPass 1.5.1
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
moc_executor.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'executor.h'
3**
4** Created by: The Qt Meta Object Compiler version 69 (Qt 6.10.2)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
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 'executor.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 69
21#error "This file was generated using the moc from 6.10.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
32QT_WARNING_DISABLE_GCC("-Wuseless-cast")
33namespace {
35} // unnamed namespace
36
37template <> constexpr inline auto Executor::qt_create_metaobjectdata<qt_meta_tag_ZN8ExecutorE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "Executor",
42 "finished",
43 "",
44 "id",
45 "exitCode",
46 "output",
47 "errout",
48 "starting",
49 "error",
50 "QProcess::ExitStatus",
51 "exitStatus"
52 };
53
54 QtMocHelpers::UintData qt_methods {
55 // Signal 'finished'
56 QtMocHelpers::SignalData<void(int, int, const QString &, const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
57 { QMetaType::Int, 3 }, { QMetaType::Int, 4 }, { QMetaType::QString, 5 }, { QMetaType::QString, 6 },
58 }}),
59 // Signal 'starting'
60 QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
61 // Signal 'error'
62 QtMocHelpers::SignalData<void(int, int, const QString &, const QString &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
63 { QMetaType::Int, 3 }, { QMetaType::Int, 4 }, { QMetaType::QString, 5 }, { QMetaType::QString, 6 },
64 }}),
65 // Slot 'finished'
66 QtMocHelpers::SlotData<void(int, QProcess::ExitStatus)>(1, 2, QMC::AccessPrivate, QMetaType::Void, {{
67 { QMetaType::Int, 4 }, { 0x80000000 | 9, 10 },
68 }}),
69 };
70 QtMocHelpers::UintData qt_properties {
71 };
72 QtMocHelpers::UintData qt_enums {
73 };
74 return QtMocHelpers::metaObjectData<Executor, qt_meta_tag_ZN8ExecutorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
75 qt_methods, qt_properties, qt_enums);
76}
77Q_CONSTINIT const QMetaObject Executor::staticMetaObject = { {
78 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
79 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8ExecutorE_t>.stringdata,
80 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8ExecutorE_t>.data,
81 qt_static_metacall,
82 nullptr,
83 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8ExecutorE_t>.metaTypes,
84 nullptr
85} };
86
87void Executor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
88{
89 auto *_t = static_cast<Executor *>(_o);
90 if (_c == QMetaObject::InvokeMetaMethod) {
91 switch (_id) {
92 case 0: _t->finished((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4]))); break;
93 case 1: _t->starting(); break;
94 case 2: _t->error((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4]))); break;
95 case 3: _t->finished((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QProcess::ExitStatus>>(_a[2]))); break;
96 default: ;
97 }
98 }
99 if (_c == QMetaObject::IndexOfMethod) {
100 if (QtMocHelpers::indexOfMethod<void (Executor::*)(int , int , const QString & , const QString & )>(_a, &Executor::finished, 0))
101 return;
102 if (QtMocHelpers::indexOfMethod<void (Executor::*)()>(_a, &Executor::starting, 1))
103 return;
104 if (QtMocHelpers::indexOfMethod<void (Executor::*)(int , int , const QString & , const QString & )>(_a, &Executor::error, 2))
105 return;
106 }
107}
108
109const QMetaObject *Executor::metaObject() const
110{
111 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
112}
113
114void *Executor::qt_metacast(const char *_clname)
115{
116 if (!_clname) return nullptr;
117 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8ExecutorE_t>.strings))
118 return static_cast<void*>(this);
119 return QObject::qt_metacast(_clname);
120}
121
122int Executor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
123{
124 _id = QObject::qt_metacall(_c, _id, _a);
125 if (_id < 0)
126 return _id;
127 if (_c == QMetaObject::InvokeMetaMethod) {
128 if (_id < 4)
129 qt_static_metacall(this, _c, _id, _a);
130 _id -= 4;
131 }
132 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
133 if (_id < 4)
134 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
135 _id -= 4;
136 }
137 return _id;
138}
139
140// SIGNAL 0
141void Executor::finished(int _t1, int _t2, const QString & _t3, const QString & _t4)
142{
143 QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3, _t4);
144}
145
146// SIGNAL 1
148{
149 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
150}
151
152// SIGNAL 2
153void Executor::error(int _t1, int _t2, const QString & _t3, const QString & _t4)
154{
155 QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2, _t3, _t4);
156}
157QT_WARNING_POP
Executor(QObject *parent=0)
Executor::Executor executes external applications.
Definition executor.cpp:22
void error(int id, int exitCode, const QString &output, const QString &errout)
error signal that is emited when process finishes with an error
void starting()
starting signal that is emited when process starts
#define Q_CONSTINIT