mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
refactoring
This commit is contained in:
@@ -23,7 +23,7 @@ QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED
|
||||
struct qt_meta_stringdata_TCPClient_t {
|
||||
QByteArrayData data[12];
|
||||
char stringdata0[130];
|
||||
char stringdata0[140];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
@@ -33,23 +33,23 @@ struct qt_meta_stringdata_TCPClient_t {
|
||||
static const qt_meta_stringdata_TCPClient_t qt_meta_stringdata_TCPClient = {
|
||||
{
|
||||
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, 9), // "Recognize"
|
||||
QT_MOC_LITERAL(5, 44, 11), // "QTcpSocket*"
|
||||
QT_MOC_LITERAL(6, 56, 6), // "socket"
|
||||
QT_MOC_LITERAL(7, 63, 15), // "ConnectionState"
|
||||
QT_MOC_LITERAL(8, 79, 4), // "flag"
|
||||
QT_MOC_LITERAL(9, 84, 18), // "signalGetXmlAnswer"
|
||||
QT_MOC_LITERAL(10, 103, 14), // "MessageEntered"
|
||||
QT_MOC_LITERAL(11, 118, 11) // "onReadyRead"
|
||||
QT_MOC_LITERAL(1, 10, 15), // "sigSendDebugLog"
|
||||
QT_MOC_LITERAL(2, 26, 0), // ""
|
||||
QT_MOC_LITERAL(3, 27, 7), // "message"
|
||||
QT_MOC_LITERAL(4, 35, 12), // "sigRecognize"
|
||||
QT_MOC_LITERAL(5, 48, 11), // "QTcpSocket*"
|
||||
QT_MOC_LITERAL(6, 60, 6), // "socket"
|
||||
QT_MOC_LITERAL(7, 67, 18), // "sigConnectionState"
|
||||
QT_MOC_LITERAL(8, 86, 4), // "flag"
|
||||
QT_MOC_LITERAL(9, 91, 15), // "sigGetXmlAnswer"
|
||||
QT_MOC_LITERAL(10, 107, 18), // "slotMessageEntered"
|
||||
QT_MOC_LITERAL(11, 126, 13) // "slotReadyRead"
|
||||
|
||||
},
|
||||
"TCPClient\0onSendDebugLog\0\0message\0"
|
||||
"Recognize\0QTcpSocket*\0socket\0"
|
||||
"ConnectionState\0flag\0signalGetXmlAnswer\0"
|
||||
"MessageEntered\0onReadyRead"
|
||||
"TCPClient\0sigSendDebugLog\0\0message\0"
|
||||
"sigRecognize\0QTcpSocket*\0socket\0"
|
||||
"sigConnectionState\0flag\0sigGetXmlAnswer\0"
|
||||
"slotMessageEntered\0slotReadyRead"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
@@ -95,13 +95,13 @@ void TCPClient::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, v
|
||||
auto *_t = static_cast<TCPClient *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->onSendDebugLog((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 1: _t->Recognize((*reinterpret_cast< QTcpSocket*(*)>(_a[1]))); break;
|
||||
case 2: _t->ConnectionState((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 3: { QByteArray _r = _t->signalGetXmlAnswer((*reinterpret_cast< QString(*)>(_a[1])));
|
||||
case 0: _t->sigSendDebugLog((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 1: _t->sigRecognize((*reinterpret_cast< QTcpSocket*(*)>(_a[1]))); break;
|
||||
case 2: _t->sigConnectionState((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 3: { QByteArray _r = _t->sigGetXmlAnswer((*reinterpret_cast< QString(*)>(_a[1])));
|
||||
if (_a[0]) *reinterpret_cast< QByteArray*>(_a[0]) = std::move(_r); } break;
|
||||
case 4: _t->MessageEntered((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 5: _t->onReadyRead(); break;
|
||||
case 4: _t->slotMessageEntered((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 5: _t->slotReadyRead(); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
@@ -119,28 +119,28 @@ void TCPClient::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, v
|
||||
int *result = reinterpret_cast<int *>(_a[0]);
|
||||
{
|
||||
using _t = void (TCPClient::*)(QString );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPClient::onSendDebugLog)) {
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPClient::sigSendDebugLog)) {
|
||||
*result = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
using _t = void (TCPClient::*)(QTcpSocket * );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPClient::Recognize)) {
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPClient::sigRecognize)) {
|
||||
*result = 1;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
using _t = void (TCPClient::*)(bool );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPClient::ConnectionState)) {
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPClient::sigConnectionState)) {
|
||||
*result = 2;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
using _t = QByteArray (TCPClient::*)(QString );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPClient::signalGetXmlAnswer)) {
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPClient::sigGetXmlAnswer)) {
|
||||
*result = 3;
|
||||
return;
|
||||
}
|
||||
@@ -189,28 +189,28 @@ int TCPClient::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void TCPClient::onSendDebugLog(QString _t1)
|
||||
void TCPClient::sigSendDebugLog(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 TCPClient::sigRecognize(QTcpSocket * _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 2
|
||||
void TCPClient::ConnectionState(bool _t1)
|
||||
void TCPClient::sigConnectionState(bool _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 2, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 3
|
||||
QByteArray TCPClient::signalGetXmlAnswer(QString _t1)
|
||||
QByteArray TCPClient::sigGetXmlAnswer(QString _t1)
|
||||
{
|
||||
QByteArray _t0{};
|
||||
void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t0))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
||||
|
||||
Reference in New Issue
Block a user