1/****************************************************************************
2** Meta object code from reading C++ file 'Pty.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/Pty.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'Pty.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
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_Konsole__Pty_t {
25 QByteArrayData data[12];
26 char stringdata0[103];
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_Konsole__Pty_t, stringdata0) + ofs \
31 - idx * sizeof(QByteArrayData)) \
32 )
33static const qt_meta_stringdata_Konsole__Pty_t qt_meta_stringdata_Konsole__Pty = {
34 {
35QT_MOC_LITERAL(0, 0, 12), // "Konsole::Pty"
36QT_MOC_LITERAL(1, 13, 12), // "receivedData"
37QT_MOC_LITERAL(2, 26, 0), // ""
38QT_MOC_LITERAL(3, 27, 11), // "const char*"
39QT_MOC_LITERAL(4, 39, 6), // "buffer"
40QT_MOC_LITERAL(5, 46, 6), // "length"
41QT_MOC_LITERAL(6, 53, 11), // "setUtf8Mode"
42QT_MOC_LITERAL(7, 65, 2), // "on"
43QT_MOC_LITERAL(8, 68, 7), // "lockPty"
44QT_MOC_LITERAL(9, 76, 4), // "lock"
45QT_MOC_LITERAL(10, 81, 8), // "sendData"
46QT_MOC_LITERAL(11, 90, 12) // "dataReceived"
47
48 },
49 "Konsole::Pty\0receivedData\0\0const char*\0"
50 "buffer\0length\0setUtf8Mode\0on\0lockPty\0"
51 "lock\0sendData\0dataReceived"
52};
53#undef QT_MOC_LITERAL
54
55static const uint qt_meta_data_Konsole__Pty[] = {
56
57 // content:
58 8, // revision
59 0, // classname
60 0, 0, // classinfo
61 5, 14, // methods
62 0, 0, // properties
63 0, 0, // enums/sets
64 0, 0, // constructors
65 0, // flags
66 1, // signalCount
67
68 // signals: name, argc, parameters, tag, flags
69 1, 2, 39, 2, 0x06 /* Public */,
70
71 // slots: name, argc, parameters, tag, flags
72 6, 1, 44, 2, 0x0a /* Public */,
73 8, 1, 47, 2, 0x0a /* Public */,
74 10, 2, 50, 2, 0x0a /* Public */,
75 11, 0, 55, 2, 0x08 /* Private */,
76
77 // signals: parameters
78 QMetaType::Void, 0x80000000 | 3, QMetaType::Int, 4, 5,
79
80 // slots: parameters
81 QMetaType::Void, QMetaType::Bool, 7,
82 QMetaType::Void, QMetaType::Bool, 9,
83 QMetaType::Void, 0x80000000 | 3, QMetaType::Int, 4, 5,
84 QMetaType::Void,
85
86 0 // eod
87};
88
89void Konsole::Pty::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
90{
91 if (_c == QMetaObject::InvokeMetaMethod) {
92 auto *_t = static_cast<Pty *>(_o);
93 (void)_t;
94 switch (_id) {
95 case 0: _t->receivedData((*reinterpret_cast< const char*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
96 case 1: _t->setUtf8Mode((*reinterpret_cast< bool(*)>(_a[1]))); break;
97 case 2: _t->lockPty((*reinterpret_cast< bool(*)>(_a[1]))); break;
98 case 3: _t->sendData((*reinterpret_cast< const char*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
99 case 4: _t->dataReceived(); break;
100 default: ;
101 }
102 } else if (_c == QMetaObject::IndexOfMethod) {
103 int *result = reinterpret_cast<int *>(_a[0]);
104 {
105 using _t = void (Pty::*)(const char * , int );
106 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Pty::receivedData)) {
107 *result = 0;
108 return;
109 }
110 }
111 }
112}
113
114QT_INIT_METAOBJECT const QMetaObject Konsole::Pty::staticMetaObject = { {
115 QMetaObject::SuperData::link<KPtyProcess::staticMetaObject>(),
116 qt_meta_stringdata_Konsole__Pty.data,
117 qt_meta_data_Konsole__Pty,
118 qt_static_metacall,
119 nullptr,
120 nullptr
121} };
122
123
124const QMetaObject *Konsole::Pty::metaObject() const
125{
126 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
127}
128
129void *Konsole::Pty::qt_metacast(const char *_clname)
130{
131 if (!_clname) return nullptr;
132 if (!strcmp(_clname, qt_meta_stringdata_Konsole__Pty.stringdata0))
133 return static_cast<void*>(this);
134 return KPtyProcess::qt_metacast(_clname);
135}
136
137int Konsole::Pty::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
138{
139 _id = KPtyProcess::qt_metacall(_c, _id, _a);
140 if (_id < 0)
141 return _id;
142 if (_c == QMetaObject::InvokeMetaMethod) {
143 if (_id < 5)
144 qt_static_metacall(this, _c, _id, _a);
145 _id -= 5;
146 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
147 if (_id < 5)
148 *reinterpret_cast<int*>(_a[0]) = -1;
149 _id -= 5;
150 }
151 return _id;
152}
153
154// SIGNAL 0
155void Konsole::Pty::receivedData(const char * _t1, int _t2)
156{
157 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
158 QMetaObject::activate(this, &staticMetaObject, 0, _a);
159}
160QT_WARNING_POP
161QT_END_MOC_NAMESPACE
162