ref: refactoring treads, check local update instructor

This commit is contained in:
semenov
2024-12-17 17:22:33 +03:00
parent 7aeb9d8000
commit f7ca02444c
53 changed files with 2292 additions and 1558 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

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[45];
char stringdata0[692];
QByteArrayData data[58];
char stringdata0[871];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -36,68 +36,86 @@ static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
QT_MOC_LITERAL(0, 0, 10), // "MainWindow"
QT_MOC_LITERAL(1, 11, 19), // "sigInitializeClient"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 16), // "RecognizeSystem*"
QT_MOC_LITERAL(4, 49, 15), // "recognizeSystem"
QT_MOC_LITERAL(5, 65, 17), // "ExternalExecuter*"
QT_MOC_LITERAL(6, 83, 16), // "externalExecuter"
QT_MOC_LITERAL(7, 100, 11), // "SendSystem*"
QT_MOC_LITERAL(8, 112, 10), // "sendSystem"
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, 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"
QT_MOC_LITERAL(3, 32, 11), // "MainWindow*"
QT_MOC_LITERAL(4, 44, 10), // "mainWindow"
QT_MOC_LITERAL(5, 55, 16), // "RecognizeSystem*"
QT_MOC_LITERAL(6, 72, 15), // "recognizeSystem"
QT_MOC_LITERAL(7, 88, 17), // "ExternalExecuter*"
QT_MOC_LITERAL(8, 106, 16), // "externalExecuter"
QT_MOC_LITERAL(9, 123, 11), // "SendSystem*"
QT_MOC_LITERAL(10, 135, 10), // "sendSystem"
QT_MOC_LITERAL(11, 146, 8), // "QThread*"
QT_MOC_LITERAL(12, 155, 6), // "thread"
QT_MOC_LITERAL(13, 162, 12), // "sigRecognize"
QT_MOC_LITERAL(14, 175, 17), // "UpdateController*"
QT_MOC_LITERAL(15, 193, 16), // "updateController"
QT_MOC_LITERAL(16, 210, 11), // "DataParser*"
QT_MOC_LITERAL(17, 222, 10), // "dataParser"
QT_MOC_LITERAL(18, 233, 13), // "HashComparer*"
QT_MOC_LITERAL(19, 247, 12), // "hashComparer"
QT_MOC_LITERAL(20, 260, 10), // "TCPClient*"
QT_MOC_LITERAL(21, 271, 9), // "tcpClient"
QT_MOC_LITERAL(22, 281, 14), // "sigSendCommand"
QT_MOC_LITERAL(23, 296, 7), // "command"
QT_MOC_LITERAL(24, 304, 16), // "sigSendXMLAnswer"
QT_MOC_LITERAL(25, 321, 6), // "answer"
QT_MOC_LITERAL(26, 328, 22), // "sigUpdateFilesOnServer"
QT_MOC_LITERAL(27, 351, 16), // "QList<FileData>*"
QT_MOC_LITERAL(28, 368, 12), // "fileSendList"
QT_MOC_LITERAL(29, 381, 13), // "sigSetConnect"
QT_MOC_LITERAL(30, 395, 15), // "ServerSettings*"
QT_MOC_LITERAL(31, 411, 14), // "serverSettings"
QT_MOC_LITERAL(32, 426, 16), // "sigCalculateHash"
QT_MOC_LITERAL(33, 443, 19), // "sigSendAutorization"
QT_MOC_LITERAL(34, 463, 15), // "sigGetConnected"
QT_MOC_LITERAL(35, 479, 14), // "showUpdateInfo"
QT_MOC_LITERAL(36, 494, 21), // "showCompleteDialogBox"
QT_MOC_LITERAL(37, 516, 19), // "slotConnectionState"
QT_MOC_LITERAL(38, 536, 4), // "flag"
QT_MOC_LITERAL(39, 541, 20), // "slotServerDisconnect"
QT_MOC_LITERAL(40, 562, 14), // "updateProgress"
QT_MOC_LITERAL(41, 577, 12), // "loadComplete"
QT_MOC_LITERAL(42, 590, 14), // "lostConnection"
QT_MOC_LITERAL(43, 605, 13), // "serverBlocked"
QT_MOC_LITERAL(44, 619, 16), // "checkLoginResult"
QT_MOC_LITERAL(45, 636, 20), // "ServerAuthorization*"
QT_MOC_LITERAL(46, 657, 10), // "serverAuth"
QT_MOC_LITERAL(47, 668, 13), // "setNeedUpdate"
QT_MOC_LITERAL(48, 682, 4), // "size"
QT_MOC_LITERAL(49, 687, 9), // "fileCount"
QT_MOC_LITERAL(50, 697, 25), // "on_settingsButton_clicked"
QT_MOC_LITERAL(51, 723, 29), // "on_languageComboBox_activated"
QT_MOC_LITERAL(52, 753, 4), // "arg1"
QT_MOC_LITERAL(53, 758, 17), // "slotDisableNotify"
QT_MOC_LITERAL(54, 776, 37), // "on_updateListGuideLabel_linkA..."
QT_MOC_LITERAL(55, 814, 4), // "link"
QT_MOC_LITERAL(56, 819, 21), // "on_exitButton_clicked"
QT_MOC_LITERAL(57, 841, 29) // "on_offlineStartButton_clicked"
},
"MainWindow\0sigInitializeClient\0\0"
"RecognizeSystem*\0recognizeSystem\0"
"ExternalExecuter*\0externalExecuter\0"
"SendSystem*\0sendSystem\0QThread*\0thread\0"
"MainWindow*\0mainWindow\0RecognizeSystem*\0"
"recognizeSystem\0ExternalExecuter*\0"
"externalExecuter\0SendSystem*\0sendSystem\0"
"QThread*\0thread\0sigRecognize\0"
"UpdateController*\0updateController\0"
"DataParser*\0dataParser\0HashComparer*\0"
"hashComparer\0TCPClient*\0tcpClient\0"
"sigSendCommand\0command\0sigSendXMLAnswer\0"
"answer\0sigUpdateFilesOnServer\0"
"QList<FileData>*\0fileSendList\0"
"sigSetConnect\0ServerSettings*\0"
"serverSettings\0sigCalculateHash\0"
"sigSendAutorization\0sigGetConnected\0"
"showUpdateInfo\0showCompleteDialogBox\0"
"slotConnectionState\0flag\0slotServerDisconnect\0"
"updateProgress\0loadComplete\0lostConnection\0"
"serverBlocked\0checkLoginResult\0"
"ServerAuthorization*\0serverAuth\0"
"setNeedUpdate\0flag\0size\0fileCount\0"
"setNeedUpdate\0size\0fileCount\0"
"on_settingsButton_clicked\0"
"on_languageComboBox_activated\0arg1\0"
"slotDisableNotify\0slotConnectionState\0"
"slotServerDisconnect\0"
"slotDisableNotify\0"
"on_updateListGuideLabel_linkActivated\0"
"link\0on_exitButton_clicked\0"
"on_offlineStartButton_clicked"
@@ -110,45 +128,49 @@ static const uint qt_meta_data_MainWindow[] = {
8, // revision
0, // classname
0, 0, // classinfo
22, 14, // methods
25, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
8, // signalCount
9, // signalCount
// signals: name, argc, parameters, tag, flags
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 */,
1, 5, 139, 2, 0x06 /* Public */,
13, 5, 150, 2, 0x06 /* Public */,
22, 1, 161, 2, 0x06 /* Public */,
24, 1, 164, 2, 0x06 /* Public */,
26, 1, 167, 2, 0x06 /* Public */,
29, 2, 170, 2, 0x06 /* Public */,
32, 0, 175, 2, 0x06 /* Public */,
33, 0, 176, 2, 0x06 /* Public */,
34, 0, 177, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
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 */,
35, 0, 178, 2, 0x0a /* Public */,
36, 0, 179, 2, 0x0a /* Public */,
37, 1, 180, 2, 0x0a /* Public */,
39, 0, 183, 2, 0x0a /* Public */,
40, 0, 184, 2, 0x0a /* Public */,
41, 0, 185, 2, 0x0a /* Public */,
42, 0, 186, 2, 0x0a /* Public */,
43, 0, 187, 2, 0x0a /* Public */,
44, 1, 188, 2, 0x0a /* Public */,
47, 3, 191, 2, 0x0a /* Public */,
50, 0, 198, 2, 0x08 /* Private */,
51, 1, 199, 2, 0x08 /* Private */,
53, 0, 202, 2, 0x08 /* Private */,
54, 1, 203, 2, 0x08 /* Private */,
56, 0, 206, 2, 0x08 /* Private */,
57, 0, 207, 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, QMetaType::QString, 14,
QMetaType::Void, 0x80000000 | 16, 17,
QMetaType::Void, 0x80000000 | 19, 0x80000000 | 9, 20, 10,
QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, 0x80000000 | 7, 0x80000000 | 9, 0x80000000 | 11, 4, 6, 8, 10, 12,
QMetaType::Void, 0x80000000 | 14, 0x80000000 | 16, 0x80000000 | 3, 0x80000000 | 18, 0x80000000 | 20, 15, 17, 4, 19, 21,
QMetaType::Void, QMetaType::QString, 23,
QMetaType::Void, QMetaType::QString, 25,
QMetaType::Void, 0x80000000 | 27, 28,
QMetaType::Void, 0x80000000 | 30, 0x80000000 | 11, 31, 12,
QMetaType::Void,
QMetaType::Void,
QMetaType::Bool,
@@ -156,16 +178,18 @@ static const uint qt_meta_data_MainWindow[] = {
// slots: parameters
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 38,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, 0x80000000 | 29, 30,
QMetaType::Void, QMetaType::Bool, QMetaType::ULongLong, QMetaType::ULongLong, 32, 33, 34,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 37,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 32,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 42,
QMetaType::Void, 0x80000000 | 45, 46,
QMetaType::Void, QMetaType::Bool, QMetaType::ULongLong, QMetaType::ULongLong, 38, 48, 49,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 52,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 55,
QMetaType::Void,
QMetaType::Void,
@@ -178,29 +202,32 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
auto *_t = static_cast<MainWindow *>(_o);
Q_UNUSED(_t)
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->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();
case 0: _t->sigInitializeClient((*reinterpret_cast< MainWindow*(*)>(_a[1])),(*reinterpret_cast< RecognizeSystem*(*)>(_a[2])),(*reinterpret_cast< ExternalExecuter*(*)>(_a[3])),(*reinterpret_cast< SendSystem*(*)>(_a[4])),(*reinterpret_cast< QThread*(*)>(_a[5]))); break;
case 1: _t->sigRecognize((*reinterpret_cast< UpdateController*(*)>(_a[1])),(*reinterpret_cast< DataParser*(*)>(_a[2])),(*reinterpret_cast< MainWindow*(*)>(_a[3])),(*reinterpret_cast< HashComparer*(*)>(_a[4])),(*reinterpret_cast< TCPClient*(*)>(_a[5]))); break;
case 2: _t->sigSendCommand((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 3: _t->sigSendXMLAnswer((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 4: _t->sigUpdateFilesOnServer((*reinterpret_cast< QList<FileData>*(*)>(_a[1]))); break;
case 5: _t->sigSetConnect((*reinterpret_cast< ServerSettings*(*)>(_a[1])),(*reinterpret_cast< QThread*(*)>(_a[2]))); break;
case 6: _t->sigCalculateHash(); break;
case 7: _t->sigSendAutorization(); break;
case 8: { bool _r = _t->sigGetConnected();
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } 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;
case 9: _t->showUpdateInfo(); break;
case 10: _t->showCompleteDialogBox(); break;
case 11: _t->slotConnectionState((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 12: _t->slotServerDisconnect(); break;
case 13: _t->updateProgress(); break;
case 14: _t->loadComplete(); break;
case 15: _t->lostConnection(); break;
case 16: _t->serverBlocked(); break;
case 17: _t->checkLoginResult((*reinterpret_cast< ServerAuthorization*(*)>(_a[1]))); break;
case 18: _t->setNeedUpdate((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< quint64(*)>(_a[2])),(*reinterpret_cast< quint64(*)>(_a[3]))); break;
case 19: _t->on_settingsButton_clicked(); break;
case 20: _t->on_languageComboBox_activated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 21: _t->slotDisableNotify(); break;
case 22: _t->on_updateListGuideLabel_linkActivated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 23: _t->on_exitButton_clicked(); break;
case 24: _t->on_offlineStartButton_clicked(); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
@@ -209,17 +236,34 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
case 0:
switch (*reinterpret_cast<int*>(_a[1])) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 1:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< ExternalExecuter* >(); break;
case 3:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QThread* >(); break;
case 0:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< RecognizeSystem* >(); break;
case 2:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< ExternalExecuter* >(); break;
case 0:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< MainWindow* >(); break;
case 4:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QThread* >(); break;
case 1:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< RecognizeSystem* >(); break;
case 3:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< SendSystem* >(); break;
}
break;
case 4:
case 1:
switch (*reinterpret_cast<int*>(_a[1])) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 1:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< DataParser* >(); break;
case 3:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< HashComparer* >(); break;
case 2:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< MainWindow* >(); break;
case 4:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TCPClient* >(); break;
case 0:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< UpdateController* >(); break;
}
break;
case 5:
switch (*reinterpret_cast<int*>(_a[1])) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 1:
@@ -230,58 +274,65 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
{
using _t = void (MainWindow::*)(RecognizeSystem * , ExternalExecuter * , SendSystem * , QThread * );
using _t = void (MainWindow::*)(MainWindow * , RecognizeSystem * , ExternalExecuter * , SendSystem * , QThread * );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigInitializeClient)) {
*result = 0;
return;
}
}
{
using _t = void (MainWindow::*)(QString );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigSendCommand)) {
using _t = void (MainWindow::*)(UpdateController * , DataParser * , MainWindow * , HashComparer * , TCPClient * );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigRecognize)) {
*result = 1;
return;
}
}
{
using _t = void (MainWindow::*)(QString );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigSendXMLAnswer)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigSendCommand)) {
*result = 2;
return;
}
}
{
using _t = void (MainWindow::*)(QString );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigSendXMLAnswer)) {
*result = 3;
return;
}
}
{
using _t = void (MainWindow::*)(QList<FileData> * );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigUpdateFilesOnServer)) {
*result = 3;
*result = 4;
return;
}
}
{
using _t = void (MainWindow::*)(ServerSettings * , QThread * );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigSetConnect)) {
*result = 4;
return;
}
}
{
using _t = void (MainWindow::*)();
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)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigCalculateHash)) {
*result = 6;
return;
}
}
{
using _t = void (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigSendAutorization)) {
*result = 7;
return;
}
}
{
using _t = bool (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigGetConnected)) {
*result = 7;
*result = 8;
return;
}
}
@@ -317,70 +368,77 @@ int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 22)
if (_id < 25)
qt_static_metacall(this, _c, _id, _a);
_id -= 22;
_id -= 25;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 22)
if (_id < 25)
qt_static_metacall(this, _c, _id, _a);
_id -= 22;
_id -= 25;
}
return _id;
}
// SIGNAL 0
void MainWindow::sigInitializeClient(RecognizeSystem * _t1, ExternalExecuter * _t2, SendSystem * _t3, QThread * _t4)
void MainWindow::sigInitializeClient(MainWindow * _t1, RecognizeSystem * _t2, ExternalExecuter * _t3, SendSystem * _t4, QThread * _t5)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t4))) };
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t4))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t5))) };
QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
// SIGNAL 1
void MainWindow::sigSendCommand(QString _t1)
void MainWindow::sigRecognize(UpdateController * _t1, DataParser * _t2, MainWindow * _t3, HashComparer * _t4, TCPClient * _t5)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t4))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t5))) };
QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
// SIGNAL 2
void MainWindow::sigSendXMLAnswer(QString _t1)
void MainWindow::sigSendCommand(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::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, 3, _a);
}
// SIGNAL 4
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, 4, _a);
}
// SIGNAL 5
void MainWindow::sigCalculateHash()
void MainWindow::sigSetConnect(ServerSettings * _t1, QThread * _t2)
{
QMetaObject::activate(this, &staticMetaObject, 5, 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, 5, _a);
}
// SIGNAL 6
void MainWindow::sigSendAutorization()
void MainWindow::sigCalculateHash()
{
QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
// SIGNAL 7
void MainWindow::sigSendAutorization()
{
QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}
// SIGNAL 8
bool MainWindow::sigGetConnected()
{
bool _t0{};
void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t0))) };
QMetaObject::activate(this, &staticMetaObject, 7, _a);
QMetaObject::activate(this, &staticMetaObject, 8, _a);
return _t0;
}
QT_WARNING_POP

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_TCPClient_t {
QByteArrayData data[14];
char stringdata0[172];
QByteArrayData data[10];
char stringdata0[127];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -36,23 +36,18 @@ QT_MOC_LITERAL(0, 0, 9), // "TCPClient"
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, 19), // "sigServerDisconnect"
QT_MOC_LITERAL(8, 87, 18), // "sigConnectionState"
QT_MOC_LITERAL(9, 106, 4), // "flag"
QT_MOC_LITERAL(10, 111, 12), // "sigSetSocket"
QT_MOC_LITERAL(11, 124, 15), // "slotSendCommand"
QT_MOC_LITERAL(12, 140, 17), // "slotConnectNotify"
QT_MOC_LITERAL(13, 158, 13) // "slotReadyRead"
QT_MOC_LITERAL(4, 35, 19), // "sigServerDisconnect"
QT_MOC_LITERAL(5, 55, 18), // "sigConnectionState"
QT_MOC_LITERAL(6, 74, 4), // "flag"
QT_MOC_LITERAL(7, 79, 15), // "slotSendCommand"
QT_MOC_LITERAL(8, 95, 17), // "slotConnectNotify"
QT_MOC_LITERAL(9, 113, 13) // "slotReadyRead"
},
"TCPClient\0sigSendDebugLog\0\0message\0"
"sigRecognize\0QTcpSocket*\0socket\0"
"sigServerDisconnect\0sigConnectionState\0"
"flag\0sigSetSocket\0slotSendCommand\0"
"slotConnectNotify\0slotReadyRead"
"flag\0slotSendCommand\0slotConnectNotify\0"
"slotReadyRead"
};
#undef QT_MOC_LITERAL
@@ -62,31 +57,27 @@ static const uint qt_meta_data_TCPClient[] = {
8, // revision
0, // classname
0, 0, // classinfo
8, 14, // methods
6, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
5, // signalCount
3, // signalCount
// signals: name, argc, parameters, tag, flags
1, 1, 54, 2, 0x06 /* Public */,
4, 1, 57, 2, 0x06 /* Public */,
7, 0, 60, 2, 0x06 /* Public */,
8, 1, 61, 2, 0x06 /* Public */,
10, 1, 64, 2, 0x06 /* Public */,
1, 1, 44, 2, 0x06 /* Public */,
4, 0, 47, 2, 0x06 /* Public */,
5, 1, 48, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
11, 1, 67, 2, 0x0a /* Public */,
12, 0, 70, 2, 0x0a /* Public */,
13, 0, 71, 2, 0x08 /* Private */,
7, 1, 51, 2, 0x0a /* Public */,
8, 0, 54, 2, 0x0a /* Public */,
9, 0, 55, 2, 0x08 /* Private */,
// signals: parameters
QMetaType::Void, QMetaType::QString, 3,
QMetaType::Void, 0x80000000 | 5, 6,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 9,
QMetaType::Void, 0x80000000 | 5, 6,
QMetaType::Void, QMetaType::Bool, 6,
// slots: parameters
QMetaType::Void, QMetaType::QString, 3,
@@ -103,33 +94,13 @@ void TCPClient::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, v
Q_UNUSED(_t)
switch (_id) {
case 0: _t->sigSendDebugLog((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 1: _t->sigRecognize((*reinterpret_cast< QTcpSocket*(*)>(_a[1]))); break;
case 2: _t->sigServerDisconnect(); break;
case 3: _t->sigConnectionState((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 4: _t->sigSetSocket((*reinterpret_cast< QTcpSocket*(*)>(_a[1]))); break;
case 5: _t->slotSendCommand((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 6: _t->slotConnectNotify(); break;
case 7: _t->slotReadyRead(); break;
case 1: _t->sigServerDisconnect(); break;
case 2: _t->sigConnectionState((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 3: _t->slotSendCommand((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 4: _t->slotConnectNotify(); break;
case 5: _t->slotReadyRead(); 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;
case 4:
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]);
{
@@ -139,31 +110,17 @@ 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::sigRecognize)) {
*result = 1;
return;
}
}
{
using _t = void (TCPClient::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPClient::sigServerDisconnect)) {
*result = 2;
*result = 1;
return;
}
}
{
using _t = void (TCPClient::*)(bool );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPClient::sigConnectionState)) {
*result = 3;
return;
}
}
{
using _t = void (TCPClient::*)(QTcpSocket * );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPClient::sigSetSocket)) {
*result = 4;
*result = 2;
return;
}
}
@@ -199,13 +156,13 @@ int TCPClient::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 8)
if (_id < 6)
qt_static_metacall(this, _c, _id, _a);
_id -= 8;
_id -= 6;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 8)
qt_static_metacall(this, _c, _id, _a);
_id -= 8;
if (_id < 6)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 6;
}
return _id;
}
@@ -218,30 +175,16 @@ void TCPClient::sigSendDebugLog(QString _t1)
}
// SIGNAL 1
void TCPClient::sigRecognize(QTcpSocket * _t1)
void TCPClient::sigServerDisconnect()
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 1, _a);
QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
// SIGNAL 2
void TCPClient::sigServerDisconnect()
{
QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
// SIGNAL 3
void TCPClient::sigConnectionState(bool _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
// SIGNAL 4
void TCPClient::sigSetSocket(QTcpSocket * _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 4, _a);
QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.