1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'kptydevice.h' |
3 | ** |
4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.7) |
5 | ** |
6 | ** WARNING! All changes made in this file will be lost! |
7 | *****************************************************************************/ |
8 | |
9 | #include <memory> |
10 | #include "../../../../3rdparty/unioncode-qtermwidget-0.14.1/lib/kptydevice.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'kptydevice.h' doesn't include <QObject>." |
15 | #elif Q_MOC_OUTPUT_REVISION != 67 |
16 | #error "This file was generated using the moc from 5.15.7. 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_KPtyDevice_t { |
25 | QByteArrayData data[5]; |
26 | char stringdata0[43]; |
27 | }; |
28 | #define QT_MOC_LITERAL(idx, ofs, len) \ |
29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ |
30 | qptrdiff(offsetof(qt_meta_stringdata_KPtyDevice_t, stringdata0) + ofs \ |
31 | - idx * sizeof(QByteArrayData)) \ |
32 | ) |
33 | static const qt_meta_stringdata_KPtyDevice_t qt_meta_stringdata_KPtyDevice = { |
34 | { |
35 | QT_MOC_LITERAL(0, 0, 10), // "KPtyDevice" |
36 | QT_MOC_LITERAL(1, 11, 7), // "readEof" |
37 | QT_MOC_LITERAL(2, 19, 0), // "" |
38 | QT_MOC_LITERAL(3, 20, 10), // "_k_canRead" |
39 | QT_MOC_LITERAL(4, 31, 11) // "_k_canWrite" |
40 | |
41 | }, |
42 | "KPtyDevice\0readEof\0\0_k_canRead\0" |
43 | "_k_canWrite" |
44 | }; |
45 | #undef QT_MOC_LITERAL |
46 | |
47 | static const uint qt_meta_data_KPtyDevice[] = { |
48 | |
49 | // content: |
50 | 8, // revision |
51 | 0, // classname |
52 | 0, 0, // classinfo |
53 | 3, 14, // methods |
54 | 0, 0, // properties |
55 | 0, 0, // enums/sets |
56 | 0, 0, // constructors |
57 | 0, // flags |
58 | 1, // signalCount |
59 | |
60 | // signals: name, argc, parameters, tag, flags |
61 | 1, 0, 29, 2, 0x06 /* Public */, |
62 | |
63 | // slots: name, argc, parameters, tag, flags |
64 | 3, 0, 30, 2, 0x08 /* Private */, |
65 | 4, 0, 31, 2, 0x08 /* Private */, |
66 | |
67 | // signals: parameters |
68 | QMetaType::Void, |
69 | |
70 | // slots: parameters |
71 | QMetaType::Bool, |
72 | QMetaType::Bool, |
73 | |
74 | 0 // eod |
75 | }; |
76 | |
77 | void KPtyDevice::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
78 | { |
79 | if (_c == QMetaObject::InvokeMetaMethod) { |
80 | auto *_t = static_cast<KPtyDevice *>(_o); |
81 | (void)_t; |
82 | switch (_id) { |
83 | case 0: _t->readEof(); break; |
84 | case 1: { bool _r = _t->d_func()->_k_canRead(); |
85 | if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break; |
86 | case 2: { bool _r = _t->d_func()->_k_canWrite(); |
87 | if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break; |
88 | default: ; |
89 | } |
90 | } else if (_c == QMetaObject::IndexOfMethod) { |
91 | int *result = reinterpret_cast<int *>(_a[0]); |
92 | { |
93 | using _t = void (KPtyDevice::*)(); |
94 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KPtyDevice::readEof)) { |
95 | *result = 0; |
96 | return; |
97 | } |
98 | } |
99 | } |
100 | } |
101 | |
102 | QT_INIT_METAOBJECT const QMetaObject KPtyDevice::staticMetaObject = { { |
103 | QMetaObject::SuperData::link<QIODevice::staticMetaObject>(), |
104 | qt_meta_stringdata_KPtyDevice.data, |
105 | qt_meta_data_KPtyDevice, |
106 | qt_static_metacall, |
107 | nullptr, |
108 | nullptr |
109 | } }; |
110 | |
111 | |
112 | const QMetaObject *KPtyDevice::metaObject() const |
113 | { |
114 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
115 | } |
116 | |
117 | void *KPtyDevice::qt_metacast(const char *_clname) |
118 | { |
119 | if (!_clname) return nullptr; |
120 | if (!strcmp(_clname, qt_meta_stringdata_KPtyDevice.stringdata0)) |
121 | return static_cast<void*>(this); |
122 | if (!strcmp(_clname, "KPty" )) |
123 | return static_cast< KPty*>(this); |
124 | return QIODevice::qt_metacast(_clname); |
125 | } |
126 | |
127 | int KPtyDevice::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
128 | { |
129 | _id = QIODevice::qt_metacall(_c, _id, _a); |
130 | if (_id < 0) |
131 | return _id; |
132 | if (_c == QMetaObject::InvokeMetaMethod) { |
133 | if (_id < 3) |
134 | qt_static_metacall(this, _c, _id, _a); |
135 | _id -= 3; |
136 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
137 | if (_id < 3) |
138 | *reinterpret_cast<int*>(_a[0]) = -1; |
139 | _id -= 3; |
140 | } |
141 | return _id; |
142 | } |
143 | |
144 | // SIGNAL 0 |
145 | void KPtyDevice::readEof() |
146 | { |
147 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); |
148 | } |
149 | QT_WARNING_POP |
150 | QT_END_MOC_NAMESPACE |
151 | |