feat: add server blocked behaviour

This commit is contained in:
semenov
2024-09-12 12:16:41 +03:00
parent e9cd136238
commit f2163b97b5
26 changed files with 172 additions and 114 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -22,8 +22,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_RecognizeSystem_t {
QByteArrayData data[17];
char stringdata0[224];
QByteArrayData data[18];
char stringdata0[241];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -44,19 +44,21 @@ QT_MOC_LITERAL(8, 88, 9), // "fileCount"
QT_MOC_LITERAL(9, 98, 15), // "sigSendDebugLog"
QT_MOC_LITERAL(10, 114, 7), // "message"
QT_MOC_LITERAL(11, 122, 17), // "sigSocketDisabled"
QT_MOC_LITERAL(12, 140, 16), // "sigSaveLoginData"
QT_MOC_LITERAL(13, 157, 20), // "ServerAuthorization*"
QT_MOC_LITERAL(14, 178, 10), // "serverAuth"
QT_MOC_LITERAL(15, 189, 25), // "sigSocketWaitForReadyRead"
QT_MOC_LITERAL(16, 215, 8) // "waitTime"
QT_MOC_LITERAL(12, 140, 16), // "sigServerBlocked"
QT_MOC_LITERAL(13, 157, 16), // "sigSaveLoginData"
QT_MOC_LITERAL(14, 174, 20), // "ServerAuthorization*"
QT_MOC_LITERAL(15, 195, 10), // "serverAuth"
QT_MOC_LITERAL(16, 206, 25), // "sigSocketWaitForReadyRead"
QT_MOC_LITERAL(17, 232, 8) // "waitTime"
},
"RecognizeSystem\0sigUpdateBytesAvailable\0"
"\0size\0sended\0sigLoadComplete\0sigNeedUpdate\0"
"flag\0fileCount\0sigSendDebugLog\0message\0"
"sigSocketDisabled\0sigSaveLoginData\0"
"ServerAuthorization*\0serverAuth\0"
"sigSocketWaitForReadyRead\0waitTime"
"sigSocketDisabled\0sigServerBlocked\0"
"sigSaveLoginData\0ServerAuthorization*\0"
"serverAuth\0sigSocketWaitForReadyRead\0"
"waitTime"
};
#undef QT_MOC_LITERAL
@@ -66,21 +68,22 @@ static const uint qt_meta_data_RecognizeSystem[] = {
8, // revision
0, // classname
0, 0, // classinfo
7, 14, // methods
8, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
7, // signalCount
8, // signalCount
// signals: name, argc, parameters, tag, flags
1, 2, 49, 2, 0x06 /* Public */,
5, 0, 54, 2, 0x06 /* Public */,
6, 3, 55, 2, 0x06 /* Public */,
9, 1, 62, 2, 0x06 /* Public */,
11, 0, 65, 2, 0x06 /* Public */,
12, 1, 66, 2, 0x06 /* Public */,
15, 1, 69, 2, 0x06 /* Public */,
1, 2, 54, 2, 0x06 /* Public */,
5, 0, 59, 2, 0x06 /* Public */,
6, 3, 60, 2, 0x06 /* Public */,
9, 1, 67, 2, 0x06 /* Public */,
11, 0, 70, 2, 0x06 /* Public */,
12, 0, 71, 2, 0x06 /* Public */,
13, 1, 72, 2, 0x06 /* Public */,
16, 1, 75, 2, 0x06 /* Public */,
// signals: parameters
QMetaType::Void, QMetaType::LongLong, QMetaType::ULongLong, 3, 4,
@@ -88,8 +91,9 @@ static const uint qt_meta_data_RecognizeSystem[] = {
QMetaType::Void, QMetaType::Bool, QMetaType::LongLong, QMetaType::ULongLong, 7, 3, 8,
QMetaType::Void, QMetaType::QString, 10,
QMetaType::Void,
QMetaType::Void, 0x80000000 | 13, 14,
QMetaType::Void, QMetaType::Int, 16,
QMetaType::Void,
QMetaType::Void, 0x80000000 | 14, 15,
QMetaType::Void, QMetaType::Int, 17,
0 // eod
};
@@ -105,8 +109,9 @@ void RecognizeSystem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
case 2: _t->sigNeedUpdate((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< qint64(*)>(_a[2])),(*reinterpret_cast< quint64(*)>(_a[3]))); break;
case 3: _t->sigSendDebugLog((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 4: _t->sigSocketDisabled(); break;
case 5: _t->sigSaveLoginData((*reinterpret_cast< ServerAuthorization*(*)>(_a[1]))); break;
case 6: _t->sigSocketWaitForReadyRead((*reinterpret_cast< int(*)>(_a[1]))); break;
case 5: _t->sigServerBlocked(); break;
case 6: _t->sigSaveLoginData((*reinterpret_cast< ServerAuthorization*(*)>(_a[1]))); break;
case 7: _t->sigSocketWaitForReadyRead((*reinterpret_cast< int(*)>(_a[1]))); break;
default: ;
}
} else if (_c == QMetaObject::IndexOfMethod) {
@@ -146,17 +151,24 @@ void RecognizeSystem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
return;
}
}
{
using _t = void (RecognizeSystem::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigServerBlocked)) {
*result = 5;
return;
}
}
{
using _t = void (RecognizeSystem::*)(ServerAuthorization * );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigSaveLoginData)) {
*result = 5;
*result = 6;
return;
}
}
{
using _t = void (RecognizeSystem::*)(int );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigSocketWaitForReadyRead)) {
*result = 6;
*result = 7;
return;
}
}
@@ -192,13 +204,13 @@ int RecognizeSystem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 7)
if (_id < 8)
qt_static_metacall(this, _c, _id, _a);
_id -= 7;
_id -= 8;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 7)
if (_id < 8)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 7;
_id -= 8;
}
return _id;
}
@@ -237,17 +249,23 @@ void RecognizeSystem::sigSocketDisabled()
}
// SIGNAL 5
void RecognizeSystem::sigSaveLoginData(ServerAuthorization * _t1)
void RecognizeSystem::sigServerBlocked()
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 5, _a);
QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
// SIGNAL 6
void RecognizeSystem::sigSocketWaitForReadyRead(int _t1)
void RecognizeSystem::sigSaveLoginData(ServerAuthorization * _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 6, _a);
}
// SIGNAL 7
void RecognizeSystem::sigSocketWaitForReadyRead(int _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 7, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.