mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Мессенджер полностью работает
This commit is contained in:
@@ -171,6 +171,13 @@ void ClientHandler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _i
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
switch (_id) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 0:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 1:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< PacketType >(); break;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
|
||||
@@ -22,8 +22,8 @@ QT_BEGIN_MOC_NAMESPACE
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED
|
||||
struct qt_meta_stringdata_ProcessingSystem_t {
|
||||
QByteArrayData data[10];
|
||||
char stringdata0[125];
|
||||
QByteArrayData data[11];
|
||||
char stringdata0[151];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
@@ -41,13 +41,15 @@ QT_MOC_LITERAL(5, 68, 3), // "log"
|
||||
QT_MOC_LITERAL(6, 72, 17), // "sigAddToMessanger"
|
||||
QT_MOC_LITERAL(7, 90, 5), // "login"
|
||||
QT_MOC_LITERAL(8, 96, 4), // "text"
|
||||
QT_MOC_LITERAL(9, 101, 23) // "signal_msgToClientReady"
|
||||
QT_MOC_LITERAL(9, 101, 23), // "signal_msgToClientReady"
|
||||
QT_MOC_LITERAL(10, 125, 25) // "signal_msgFromClientReady"
|
||||
|
||||
},
|
||||
"ProcessingSystem\0sigUpdateListClients\0"
|
||||
"\0sigAuthChanged\0sigLogMessage\0log\0"
|
||||
"sigAddToMessanger\0login\0text\0"
|
||||
"signal_msgToClientReady"
|
||||
"signal_msgToClientReady\0"
|
||||
"signal_msgFromClientReady"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
@@ -57,25 +59,27 @@ static const uint qt_meta_data_ProcessingSystem[] = {
|
||||
8, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
5, 14, // methods
|
||||
6, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
5, // signalCount
|
||||
6, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 0, 39, 2, 0x06 /* Public */,
|
||||
3, 0, 40, 2, 0x06 /* Public */,
|
||||
4, 1, 41, 2, 0x06 /* Public */,
|
||||
6, 2, 44, 2, 0x06 /* Public */,
|
||||
9, 2, 49, 2, 0x06 /* Public */,
|
||||
1, 0, 44, 2, 0x06 /* Public */,
|
||||
3, 0, 45, 2, 0x06 /* Public */,
|
||||
4, 1, 46, 2, 0x06 /* Public */,
|
||||
6, 2, 49, 2, 0x06 /* Public */,
|
||||
9, 2, 54, 2, 0x06 /* Public */,
|
||||
10, 2, 59, 2, 0x06 /* Public */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, QMetaType::QString, 5,
|
||||
QMetaType::Void, QMetaType::QString, QMetaType::QString, 7, 8,
|
||||
QMetaType::Void, QMetaType::QString, QMetaType::QString, 7, 8,
|
||||
QMetaType::Void, QMetaType::QString, QMetaType::QString, 7, 8,
|
||||
|
||||
0 // eod
|
||||
@@ -92,6 +96,7 @@ void ProcessingSystem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
|
||||
case 2: _t->sigLogMessage((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 3: _t->sigAddToMessanger((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
|
||||
case 4: _t->signal_msgToClientReady((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
|
||||
case 5: _t->signal_msgFromClientReady((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::IndexOfMethod) {
|
||||
@@ -131,6 +136,13 @@ void ProcessingSystem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
using _t = void (ProcessingSystem::*)(QString , QString );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ProcessingSystem::signal_msgFromClientReady)) {
|
||||
*result = 5;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,13 +175,13 @@ int ProcessingSystem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 5)
|
||||
if (_id < 6)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 5;
|
||||
_id -= 6;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 5)
|
||||
if (_id < 6)
|
||||
*reinterpret_cast<int*>(_a[0]) = -1;
|
||||
_id -= 5;
|
||||
_id -= 6;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
@@ -206,5 +218,12 @@ void ProcessingSystem::signal_msgToClientReady(QString _t1, QString _t2)
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 4, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 5
|
||||
void ProcessingSystem::signal_msgFromClientReady(QString _t1, QString _t2)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 5, _a);
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
|
||||
@@ -22,8 +22,8 @@ QT_BEGIN_MOC_NAMESPACE
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED
|
||||
struct qt_meta_stringdata_SendSystem_t {
|
||||
QByteArrayData data[10];
|
||||
char stringdata0[110];
|
||||
QByteArrayData data[11];
|
||||
char stringdata0[116];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
@@ -38,15 +38,17 @@ QT_MOC_LITERAL(2, 23, 0), // ""
|
||||
QT_MOC_LITERAL(3, 24, 15), // "sigSendToLogger"
|
||||
QT_MOC_LITERAL(4, 40, 7), // "message"
|
||||
QT_MOC_LITERAL(5, 48, 17), // "sigSendXMLmessage"
|
||||
QT_MOC_LITERAL(6, 66, 13), // "sigSendNotify"
|
||||
QT_MOC_LITERAL(7, 80, 11), // "socketWrite"
|
||||
QT_MOC_LITERAL(8, 92, 5), // "array"
|
||||
QT_MOC_LITERAL(9, 98, 11) // "socketClose"
|
||||
QT_MOC_LITERAL(6, 66, 5), // "login"
|
||||
QT_MOC_LITERAL(7, 72, 13), // "sigSendNotify"
|
||||
QT_MOC_LITERAL(8, 86, 11), // "socketWrite"
|
||||
QT_MOC_LITERAL(9, 98, 5), // "array"
|
||||
QT_MOC_LITERAL(10, 104, 11) // "socketClose"
|
||||
|
||||
},
|
||||
"SendSystem\0sigLoadHash\0\0sigSendToLogger\0"
|
||||
"message\0sigSendXMLmessage\0sigSendNotify\0"
|
||||
"socketWrite\0array\0socketClose"
|
||||
"message\0sigSendXMLmessage\0login\0"
|
||||
"sigSendNotify\0socketWrite\0array\0"
|
||||
"socketClose"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
@@ -56,31 +58,33 @@ static const uint qt_meta_data_SendSystem[] = {
|
||||
8, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
6, 14, // methods
|
||||
7, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
4, // signalCount
|
||||
5, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 0, 44, 2, 0x06 /* Public */,
|
||||
3, 1, 45, 2, 0x06 /* Public */,
|
||||
5, 1, 48, 2, 0x06 /* Public */,
|
||||
6, 1, 51, 2, 0x06 /* Public */,
|
||||
1, 0, 49, 2, 0x06 /* Public */,
|
||||
3, 1, 50, 2, 0x06 /* Public */,
|
||||
5, 2, 53, 2, 0x06 /* Public */,
|
||||
5, 1, 58, 2, 0x26 /* Public | MethodCloned */,
|
||||
7, 1, 61, 2, 0x06 /* Public */,
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
7, 1, 54, 2, 0x0a /* Public */,
|
||||
9, 0, 57, 2, 0x0a /* Public */,
|
||||
8, 1, 64, 2, 0x0a /* Public */,
|
||||
10, 0, 67, 2, 0x0a /* Public */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, QMetaType::QString, 4,
|
||||
QMetaType::QByteArray, QMetaType::QString, QMetaType::QString, 4, 6,
|
||||
QMetaType::QByteArray, QMetaType::QString, 4,
|
||||
QMetaType::QByteArray, QMetaType::QString, 4,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void, QMetaType::QByteArray, 8,
|
||||
QMetaType::Void, QMetaType::QByteArray, 9,
|
||||
QMetaType::Void,
|
||||
|
||||
0 // eod
|
||||
@@ -94,12 +98,14 @@ void SendSystem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
|
||||
switch (_id) {
|
||||
case 0: _t->sigLoadHash(); break;
|
||||
case 1: _t->sigSendToLogger((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 2: { QByteArray _r = _t->sigSendXMLmessage((*reinterpret_cast< QString(*)>(_a[1])));
|
||||
case 2: { QByteArray _r = _t->sigSendXMLmessage((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2])));
|
||||
if (_a[0]) *reinterpret_cast< QByteArray*>(_a[0]) = std::move(_r); } break;
|
||||
case 3: { QByteArray _r = _t->sigSendNotify((*reinterpret_cast< QString(*)>(_a[1])));
|
||||
case 3: { QByteArray _r = _t->sigSendXMLmessage((*reinterpret_cast< QString(*)>(_a[1])));
|
||||
if (_a[0]) *reinterpret_cast< QByteArray*>(_a[0]) = std::move(_r); } break;
|
||||
case 4: _t->socketWrite((*reinterpret_cast< QByteArray(*)>(_a[1]))); break;
|
||||
case 5: _t->socketClose(); break;
|
||||
case 4: { QByteArray _r = _t->sigSendNotify((*reinterpret_cast< QString(*)>(_a[1])));
|
||||
if (_a[0]) *reinterpret_cast< QByteArray*>(_a[0]) = std::move(_r); } break;
|
||||
case 5: _t->socketWrite((*reinterpret_cast< QByteArray(*)>(_a[1]))); break;
|
||||
case 6: _t->socketClose(); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::IndexOfMethod) {
|
||||
@@ -119,7 +125,7 @@ void SendSystem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
|
||||
}
|
||||
}
|
||||
{
|
||||
using _t = QByteArray (SendSystem::*)(QString );
|
||||
using _t = QByteArray (SendSystem::*)(QString , QString );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SendSystem::sigSendXMLmessage)) {
|
||||
*result = 2;
|
||||
return;
|
||||
@@ -128,7 +134,7 @@ void SendSystem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
|
||||
{
|
||||
using _t = QByteArray (SendSystem::*)(QString );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SendSystem::sigSendNotify)) {
|
||||
*result = 3;
|
||||
*result = 4;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -164,13 +170,13 @@ int SendSystem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 6)
|
||||
if (_id < 7)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 6;
|
||||
_id -= 7;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 6)
|
||||
if (_id < 7)
|
||||
*reinterpret_cast<int*>(_a[0]) = -1;
|
||||
_id -= 6;
|
||||
_id -= 7;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
@@ -189,20 +195,20 @@ void SendSystem::sigSendToLogger(QString _t1)
|
||||
}
|
||||
|
||||
// SIGNAL 2
|
||||
QByteArray SendSystem::sigSendXMLmessage(QString _t1)
|
||||
QByteArray SendSystem::sigSendXMLmessage(QString _t1, QString _t2)
|
||||
{
|
||||
QByteArray _t0{};
|
||||
void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t0))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
||||
void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t0))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 2, _a);
|
||||
return _t0;
|
||||
}
|
||||
|
||||
// SIGNAL 3
|
||||
// SIGNAL 4
|
||||
QByteArray SendSystem::sigSendNotify(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))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 3, _a);
|
||||
QMetaObject::activate(this, &staticMetaObject, 4, _a);
|
||||
return _t0;
|
||||
}
|
||||
QT_WARNING_POP
|
||||
|
||||
Reference in New Issue
Block a user