mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: before threading
This commit is contained in:
@@ -22,8 +22,8 @@ QT_BEGIN_MOC_NAMESPACE
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED
|
||||
struct qt_meta_stringdata_TCPClient_t {
|
||||
QByteArrayData data[6];
|
||||
char stringdata0[61];
|
||||
QByteArrayData data[9];
|
||||
char stringdata0[90];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
@@ -36,11 +36,15 @@ QT_MOC_LITERAL(0, 0, 9), // "TCPClient"
|
||||
QT_MOC_LITERAL(1, 10, 14), // "onSendDebugLog"
|
||||
QT_MOC_LITERAL(2, 25, 0), // ""
|
||||
QT_MOC_LITERAL(3, 26, 7), // "message"
|
||||
QT_MOC_LITERAL(4, 34, 14), // "MessageEntered"
|
||||
QT_MOC_LITERAL(5, 49, 11) // "onReadyRead"
|
||||
QT_MOC_LITERAL(4, 34, 9), // "Recognize"
|
||||
QT_MOC_LITERAL(5, 44, 11), // "QTcpSocket*"
|
||||
QT_MOC_LITERAL(6, 56, 6), // "socket"
|
||||
QT_MOC_LITERAL(7, 63, 14), // "MessageEntered"
|
||||
QT_MOC_LITERAL(8, 78, 11) // "onReadyRead"
|
||||
|
||||
},
|
||||
"TCPClient\0onSendDebugLog\0\0message\0"
|
||||
"Recognize\0QTcpSocket*\0socket\0"
|
||||
"MessageEntered\0onReadyRead"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
@@ -51,22 +55,24 @@ static const uint qt_meta_data_TCPClient[] = {
|
||||
8, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
3, 14, // methods
|
||||
4, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
1, // signalCount
|
||||
2, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 1, 29, 2, 0x06 /* Public */,
|
||||
1, 1, 34, 2, 0x06 /* Public */,
|
||||
4, 1, 37, 2, 0x06 /* Public */,
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
4, 1, 32, 2, 0x0a /* Public */,
|
||||
5, 0, 35, 2, 0x08 /* Private */,
|
||||
7, 1, 40, 2, 0x0a /* Public */,
|
||||
8, 0, 43, 2, 0x08 /* Private */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void, QMetaType::QString, 3,
|
||||
QMetaType::Void, 0x80000000 | 5, 6,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void, QMetaType::QString, 3,
|
||||
@@ -82,10 +88,22 @@ void TCPClient::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, v
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->onSendDebugLog((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 1: _t->MessageEntered((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 2: _t->onReadyRead(); break;
|
||||
case 1: _t->Recognize((*reinterpret_cast< QTcpSocket*(*)>(_a[1]))); break;
|
||||
case 2: _t->MessageEntered((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 3: _t->onReadyRead(); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
switch (_id) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 1:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 0:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QTcpSocket* >(); break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
} else if (_c == QMetaObject::IndexOfMethod) {
|
||||
int *result = reinterpret_cast<int *>(_a[0]);
|
||||
{
|
||||
@@ -95,6 +113,13 @@ void TCPClient::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, v
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
using _t = void (TCPClient::*)(QTcpSocket * );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPClient::Recognize)) {
|
||||
*result = 1;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,13 +152,13 @@ int TCPClient::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 3)
|
||||
if (_id < 4)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 3;
|
||||
_id -= 4;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 3)
|
||||
*reinterpret_cast<int*>(_a[0]) = -1;
|
||||
_id -= 3;
|
||||
if (_id < 4)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 4;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
@@ -144,5 +169,12 @@ void TCPClient::onSendDebugLog(QString _t1)
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 1
|
||||
void TCPClient::Recognize(QTcpSocket * _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
|
||||
Reference in New Issue
Block a user