feat: loading base version

This commit is contained in:
semenov
2024-12-16 16:36:43 +03:00
parent 31e42a97e4
commit 448dbdbd6d
68 changed files with 1895 additions and 373 deletions

View File

@@ -23,8 +23,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_MainWindow_t {
QByteArrayData data[43];
char stringdata0[668];
QByteArrayData data[45];
char stringdata0[692];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -46,43 +46,46 @@ QT_MOC_LITERAL(9, 123, 8), // "QThread*"
QT_MOC_LITERAL(10, 132, 6), // "thread"
QT_MOC_LITERAL(11, 139, 14), // "sigSendCommand"
QT_MOC_LITERAL(12, 154, 7), // "command"
QT_MOC_LITERAL(13, 162, 22), // "sigUpdateFilesOnServer"
QT_MOC_LITERAL(14, 185, 16), // "QList<FileData>*"
QT_MOC_LITERAL(15, 202, 12), // "fileSendList"
QT_MOC_LITERAL(16, 215, 13), // "sigSetConnect"
QT_MOC_LITERAL(17, 229, 15), // "ServerSettings*"
QT_MOC_LITERAL(18, 245, 14), // "serverSettings"
QT_MOC_LITERAL(19, 260, 16), // "sigCalculateHash"
QT_MOC_LITERAL(20, 277, 19), // "sigSendAutorization"
QT_MOC_LITERAL(21, 297, 15), // "sigGetConnected"
QT_MOC_LITERAL(22, 313, 14), // "updateProgress"
QT_MOC_LITERAL(23, 328, 12), // "loadComplete"
QT_MOC_LITERAL(24, 341, 14), // "lostConnection"
QT_MOC_LITERAL(25, 356, 13), // "serverBlocked"
QT_MOC_LITERAL(26, 370, 16), // "checkLoginResult"
QT_MOC_LITERAL(27, 387, 20), // "ServerAuthorization*"
QT_MOC_LITERAL(28, 408, 10), // "serverAuth"
QT_MOC_LITERAL(29, 419, 13), // "setNeedUpdate"
QT_MOC_LITERAL(30, 433, 4), // "flag"
QT_MOC_LITERAL(31, 438, 4), // "size"
QT_MOC_LITERAL(32, 443, 9), // "fileCount"
QT_MOC_LITERAL(33, 453, 25), // "on_settingsButton_clicked"
QT_MOC_LITERAL(34, 479, 29), // "on_languageComboBox_activated"
QT_MOC_LITERAL(35, 509, 4), // "arg1"
QT_MOC_LITERAL(36, 514, 17), // "slotDisableNotify"
QT_MOC_LITERAL(37, 532, 19), // "slotConnectionState"
QT_MOC_LITERAL(38, 552, 20), // "slotServerDisconnect"
QT_MOC_LITERAL(39, 573, 37), // "on_updateListGuideLabel_linkA..."
QT_MOC_LITERAL(40, 611, 4), // "link"
QT_MOC_LITERAL(41, 616, 21), // "on_exitButton_clicked"
QT_MOC_LITERAL(42, 638, 29) // "on_offlineStartButton_clicked"
QT_MOC_LITERAL(13, 162, 16), // "sigSendXMLAnswer"
QT_MOC_LITERAL(14, 179, 6), // "answer"
QT_MOC_LITERAL(15, 186, 22), // "sigUpdateFilesOnServer"
QT_MOC_LITERAL(16, 209, 16), // "QList<FileData>*"
QT_MOC_LITERAL(17, 226, 12), // "fileSendList"
QT_MOC_LITERAL(18, 239, 13), // "sigSetConnect"
QT_MOC_LITERAL(19, 253, 15), // "ServerSettings*"
QT_MOC_LITERAL(20, 269, 14), // "serverSettings"
QT_MOC_LITERAL(21, 284, 16), // "sigCalculateHash"
QT_MOC_LITERAL(22, 301, 19), // "sigSendAutorization"
QT_MOC_LITERAL(23, 321, 15), // "sigGetConnected"
QT_MOC_LITERAL(24, 337, 14), // "updateProgress"
QT_MOC_LITERAL(25, 352, 12), // "loadComplete"
QT_MOC_LITERAL(26, 365, 14), // "lostConnection"
QT_MOC_LITERAL(27, 380, 13), // "serverBlocked"
QT_MOC_LITERAL(28, 394, 16), // "checkLoginResult"
QT_MOC_LITERAL(29, 411, 20), // "ServerAuthorization*"
QT_MOC_LITERAL(30, 432, 10), // "serverAuth"
QT_MOC_LITERAL(31, 443, 13), // "setNeedUpdate"
QT_MOC_LITERAL(32, 457, 4), // "flag"
QT_MOC_LITERAL(33, 462, 4), // "size"
QT_MOC_LITERAL(34, 467, 9), // "fileCount"
QT_MOC_LITERAL(35, 477, 25), // "on_settingsButton_clicked"
QT_MOC_LITERAL(36, 503, 29), // "on_languageComboBox_activated"
QT_MOC_LITERAL(37, 533, 4), // "arg1"
QT_MOC_LITERAL(38, 538, 17), // "slotDisableNotify"
QT_MOC_LITERAL(39, 556, 19), // "slotConnectionState"
QT_MOC_LITERAL(40, 576, 20), // "slotServerDisconnect"
QT_MOC_LITERAL(41, 597, 37), // "on_updateListGuideLabel_linkA..."
QT_MOC_LITERAL(42, 635, 4), // "link"
QT_MOC_LITERAL(43, 640, 21), // "on_exitButton_clicked"
QT_MOC_LITERAL(44, 662, 29) // "on_offlineStartButton_clicked"
},
"MainWindow\0sigInitializeClient\0\0"
"RecognizeSystem*\0recognizeSystem\0"
"ExternalExecuter*\0externalExecuter\0"
"SendSystem*\0sendSystem\0QThread*\0thread\0"
"sigSendCommand\0command\0sigUpdateFilesOnServer\0"
"sigSendCommand\0command\0sigSendXMLAnswer\0"
"answer\0sigUpdateFilesOnServer\0"
"QList<FileData>*\0fileSendList\0"
"sigSetConnect\0ServerSettings*\0"
"serverSettings\0sigCalculateHash\0"
@@ -107,43 +110,45 @@ static const uint qt_meta_data_MainWindow[] = {
8, // revision
0, // classname
0, 0, // classinfo
21, 14, // methods
22, 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, 4, 119, 2, 0x06 /* Public */,
11, 1, 128, 2, 0x06 /* Public */,
13, 1, 131, 2, 0x06 /* Public */,
16, 2, 134, 2, 0x06 /* Public */,
19, 0, 139, 2, 0x06 /* Public */,
20, 0, 140, 2, 0x06 /* Public */,
21, 0, 141, 2, 0x06 /* Public */,
1, 4, 124, 2, 0x06 /* Public */,
11, 1, 133, 2, 0x06 /* Public */,
13, 1, 136, 2, 0x06 /* Public */,
15, 1, 139, 2, 0x06 /* Public */,
18, 2, 142, 2, 0x06 /* Public */,
21, 0, 147, 2, 0x06 /* Public */,
22, 0, 148, 2, 0x06 /* Public */,
23, 0, 149, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
22, 0, 142, 2, 0x0a /* Public */,
23, 0, 143, 2, 0x0a /* Public */,
24, 0, 144, 2, 0x0a /* Public */,
25, 0, 145, 2, 0x0a /* Public */,
26, 1, 146, 2, 0x0a /* Public */,
29, 3, 149, 2, 0x0a /* Public */,
33, 0, 156, 2, 0x08 /* Private */,
34, 1, 157, 2, 0x08 /* Private */,
36, 0, 160, 2, 0x08 /* Private */,
37, 1, 161, 2, 0x08 /* Private */,
38, 0, 164, 2, 0x08 /* Private */,
39, 1, 165, 2, 0x08 /* Private */,
41, 0, 168, 2, 0x08 /* Private */,
42, 0, 169, 2, 0x08 /* Private */,
24, 0, 150, 2, 0x0a /* Public */,
25, 0, 151, 2, 0x0a /* Public */,
26, 0, 152, 2, 0x0a /* Public */,
27, 0, 153, 2, 0x0a /* Public */,
28, 1, 154, 2, 0x0a /* Public */,
31, 3, 157, 2, 0x0a /* Public */,
35, 0, 164, 2, 0x08 /* Private */,
36, 1, 165, 2, 0x08 /* Private */,
38, 0, 168, 2, 0x08 /* Private */,
39, 1, 169, 2, 0x08 /* Private */,
40, 0, 172, 2, 0x08 /* Private */,
41, 1, 173, 2, 0x08 /* Private */,
43, 0, 176, 2, 0x08 /* Private */,
44, 0, 177, 2, 0x08 /* Private */,
// signals: parameters
QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, 0x80000000 | 7, 0x80000000 | 9, 4, 6, 8, 10,
QMetaType::Void, QMetaType::QString, 12,
QMetaType::Void, 0x80000000 | 14, 15,
QMetaType::Void, 0x80000000 | 17, 0x80000000 | 9, 18, 10,
QMetaType::Void, QMetaType::QString, 14,
QMetaType::Void, 0x80000000 | 16, 17,
QMetaType::Void, 0x80000000 | 19, 0x80000000 | 9, 20, 10,
QMetaType::Void,
QMetaType::Void,
QMetaType::Bool,
@@ -153,14 +158,14 @@ static const uint qt_meta_data_MainWindow[] = {
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, 0x80000000 | 27, 28,
QMetaType::Void, QMetaType::Bool, QMetaType::ULongLong, QMetaType::ULongLong, 30, 31, 32,
QMetaType::Void, 0x80000000 | 29, 30,
QMetaType::Void, QMetaType::Bool, QMetaType::ULongLong, QMetaType::ULongLong, 32, 33, 34,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 35,
QMetaType::Void, QMetaType::QString, 37,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 30,
QMetaType::Void, QMetaType::Bool, 32,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 40,
QMetaType::Void, QMetaType::QString, 42,
QMetaType::Void,
QMetaType::Void,
@@ -175,26 +180,27 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
switch (_id) {
case 0: _t->sigInitializeClient((*reinterpret_cast< RecognizeSystem*(*)>(_a[1])),(*reinterpret_cast< ExternalExecuter*(*)>(_a[2])),(*reinterpret_cast< SendSystem*(*)>(_a[3])),(*reinterpret_cast< QThread*(*)>(_a[4]))); break;
case 1: _t->sigSendCommand((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 2: _t->sigUpdateFilesOnServer((*reinterpret_cast< QList<FileData>*(*)>(_a[1]))); break;
case 3: _t->sigSetConnect((*reinterpret_cast< ServerSettings*(*)>(_a[1])),(*reinterpret_cast< QThread*(*)>(_a[2]))); break;
case 4: _t->sigCalculateHash(); break;
case 5: _t->sigSendAutorization(); break;
case 6: { bool _r = _t->sigGetConnected();
case 2: _t->sigSendXMLAnswer((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 3: _t->sigUpdateFilesOnServer((*reinterpret_cast< QList<FileData>*(*)>(_a[1]))); break;
case 4: _t->sigSetConnect((*reinterpret_cast< ServerSettings*(*)>(_a[1])),(*reinterpret_cast< QThread*(*)>(_a[2]))); break;
case 5: _t->sigCalculateHash(); break;
case 6: _t->sigSendAutorization(); break;
case 7: { bool _r = _t->sigGetConnected();
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
case 7: _t->updateProgress(); break;
case 8: _t->loadComplete(); break;
case 9: _t->lostConnection(); break;
case 10: _t->serverBlocked(); break;
case 11: _t->checkLoginResult((*reinterpret_cast< ServerAuthorization*(*)>(_a[1]))); break;
case 12: _t->setNeedUpdate((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< quint64(*)>(_a[2])),(*reinterpret_cast< quint64(*)>(_a[3]))); break;
case 13: _t->on_settingsButton_clicked(); break;
case 14: _t->on_languageComboBox_activated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 15: _t->slotDisableNotify(); break;
case 16: _t->slotConnectionState((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 17: _t->slotServerDisconnect(); break;
case 18: _t->on_updateListGuideLabel_linkActivated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 19: _t->on_exitButton_clicked(); break;
case 20: _t->on_offlineStartButton_clicked(); break;
case 8: _t->updateProgress(); break;
case 9: _t->loadComplete(); break;
case 10: _t->lostConnection(); break;
case 11: _t->serverBlocked(); break;
case 12: _t->checkLoginResult((*reinterpret_cast< ServerAuthorization*(*)>(_a[1]))); break;
case 13: _t->setNeedUpdate((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< quint64(*)>(_a[2])),(*reinterpret_cast< quint64(*)>(_a[3]))); break;
case 14: _t->on_settingsButton_clicked(); break;
case 15: _t->on_languageComboBox_activated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 16: _t->slotDisableNotify(); break;
case 17: _t->slotConnectionState((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 18: _t->slotServerDisconnect(); break;
case 19: _t->on_updateListGuideLabel_linkActivated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 20: _t->on_exitButton_clicked(); break;
case 21: _t->on_offlineStartButton_clicked(); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
@@ -213,7 +219,7 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< SendSystem* >(); break;
}
break;
case 3:
case 4:
switch (*reinterpret_cast<int*>(_a[1])) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 1:
@@ -237,38 +243,45 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
return;
}
}
{
using _t = void (MainWindow::*)(QString );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigSendXMLAnswer)) {
*result = 2;
return;
}
}
{
using _t = void (MainWindow::*)(QList<FileData> * );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigUpdateFilesOnServer)) {
*result = 2;
*result = 3;
return;
}
}
{
using _t = void (MainWindow::*)(ServerSettings * , QThread * );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigSetConnect)) {
*result = 3;
return;
}
}
{
using _t = void (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigCalculateHash)) {
*result = 4;
return;
}
}
{
using _t = void (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigSendAutorization)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigCalculateHash)) {
*result = 5;
return;
}
}
{
using _t = void (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigSendAutorization)) {
*result = 6;
return;
}
}
{
using _t = bool (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigGetConnected)) {
*result = 6;
*result = 7;
return;
}
}
@@ -304,13 +317,13 @@ int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 21)
if (_id < 22)
qt_static_metacall(this, _c, _id, _a);
_id -= 21;
_id -= 22;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 21)
if (_id < 22)
qt_static_metacall(this, _c, _id, _a);
_id -= 21;
_id -= 22;
}
return _id;
}
@@ -330,37 +343,44 @@ void MainWindow::sigSendCommand(QString _t1)
}
// SIGNAL 2
void MainWindow::sigUpdateFilesOnServer(QList<FileData> * _t1)
void MainWindow::sigSendXMLAnswer(QString _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
// SIGNAL 3
void MainWindow::sigSetConnect(ServerSettings * _t1, QThread * _t2)
void MainWindow::sigUpdateFilesOnServer(QList<FileData> * _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
// SIGNAL 4
void MainWindow::sigCalculateHash()
void MainWindow::sigSetConnect(ServerSettings * _t1, QThread * _t2)
{
QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
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 MainWindow::sigSendAutorization()
void MainWindow::sigCalculateHash()
{
QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
// SIGNAL 6
void MainWindow::sigSendAutorization()
{
QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
// SIGNAL 7
bool MainWindow::sigGetConnected()
{
bool _t0{};
void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t0))) };
QMetaObject::activate(this, &staticMetaObject, 6, _a);
QMetaObject::activate(this, &staticMetaObject, 7, _a);
return _t0;
}
QT_WARNING_POP