feat: add instructor updateBehaviour

This commit is contained in:
semenov
2024-10-02 11:19:38 +03:00
parent 11e71f46a7
commit 44cd6e2433
27 changed files with 382 additions and 2361 deletions

View File

@@ -10,6 +10,7 @@
#include "../mainwindow.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mainwindow.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
@@ -22,8 +23,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_MainWindow_t {
QByteArrayData data[33];
char stringdata0[551];
QByteArrayData data[39];
char stringdata0[704];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -43,35 +44,42 @@ 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, 13), // "sigSetConnect"
QT_MOC_LITERAL(12, 153, 15), // "ServerSettings*"
QT_MOC_LITERAL(13, 169, 14), // "serverSettings"
QT_MOC_LITERAL(14, 184, 16), // "sigCalculateHash"
QT_MOC_LITERAL(15, 201, 14), // "sigSendCommand"
QT_MOC_LITERAL(16, 216, 7), // "message"
QT_MOC_LITERAL(17, 224, 19), // "sigSendAutorization"
QT_MOC_LITERAL(18, 244, 15), // "sigGetConnected"
QT_MOC_LITERAL(19, 260, 22), // "on_loginButton_clicked"
QT_MOC_LITERAL(20, 283, 23), // "on_updateButton_clicked"
QT_MOC_LITERAL(21, 307, 22), // "on_startButton_clicked"
QT_MOC_LITERAL(22, 330, 27), // "on_saveServerButton_clicked"
QT_MOC_LITERAL(23, 358, 25), // "on_settingsButton_clicked"
QT_MOC_LITERAL(24, 384, 24), // "on_connectButton_clicked"
QT_MOC_LITERAL(25, 409, 29), // "on_languageComboBox_activated"
QT_MOC_LITERAL(26, 439, 4), // "arg1"
QT_MOC_LITERAL(27, 444, 17), // "slotDisableNotify"
QT_MOC_LITERAL(28, 462, 19), // "slotConnectionState"
QT_MOC_LITERAL(29, 482, 4), // "flag"
QT_MOC_LITERAL(30, 487, 20), // "slotServerDisconnect"
QT_MOC_LITERAL(31, 508, 37), // "on_updateListGuideLabel_linkA..."
QT_MOC_LITERAL(32, 546, 4) // "link"
QT_MOC_LITERAL(11, 139, 22), // "sigUpdateFilesOnServer"
QT_MOC_LITERAL(12, 162, 16), // "QList<FileData>*"
QT_MOC_LITERAL(13, 179, 12), // "fileSendList"
QT_MOC_LITERAL(14, 192, 13), // "sigSetConnect"
QT_MOC_LITERAL(15, 206, 15), // "ServerSettings*"
QT_MOC_LITERAL(16, 222, 14), // "serverSettings"
QT_MOC_LITERAL(17, 237, 16), // "sigCalculateHash"
QT_MOC_LITERAL(18, 254, 14), // "sigSendCommand"
QT_MOC_LITERAL(19, 269, 7), // "message"
QT_MOC_LITERAL(20, 277, 19), // "sigSendAutorization"
QT_MOC_LITERAL(21, 297, 15), // "sigGetConnected"
QT_MOC_LITERAL(22, 313, 22), // "on_loginButton_clicked"
QT_MOC_LITERAL(23, 336, 23), // "on_updateButton_clicked"
QT_MOC_LITERAL(24, 360, 22), // "on_startButton_clicked"
QT_MOC_LITERAL(25, 383, 27), // "on_saveServerButton_clicked"
QT_MOC_LITERAL(26, 411, 25), // "on_settingsButton_clicked"
QT_MOC_LITERAL(27, 437, 24), // "on_connectButton_clicked"
QT_MOC_LITERAL(28, 462, 29), // "on_languageComboBox_activated"
QT_MOC_LITERAL(29, 492, 4), // "arg1"
QT_MOC_LITERAL(30, 497, 17), // "slotDisableNotify"
QT_MOC_LITERAL(31, 515, 19), // "slotConnectionState"
QT_MOC_LITERAL(32, 535, 4), // "flag"
QT_MOC_LITERAL(33, 540, 20), // "slotServerDisconnect"
QT_MOC_LITERAL(34, 561, 37), // "on_updateListGuideLabel_linkA..."
QT_MOC_LITERAL(35, 599, 4), // "link"
QT_MOC_LITERAL(36, 604, 29), // "on_loadToServerButton_clicked"
QT_MOC_LITERAL(37, 634, 28), // "on_undoChangesButton_clicked"
QT_MOC_LITERAL(38, 663, 40) // "on_startWithCurrentChangesBut..."
},
"MainWindow\0sigInitializeClient\0\0"
"RecognizeSystem*\0recognizeSystem\0"
"ExternalExecuter*\0externalExecuter\0"
"SendSystem*\0sendSystem\0QThread*\0thread\0"
"sigSetConnect\0ServerSettings*\0"
"sigUpdateFilesOnServer\0QList<FileData>*\0"
"fileSendList\0sigSetConnect\0ServerSettings*\0"
"serverSettings\0sigCalculateHash\0"
"sigSendCommand\0message\0sigSendAutorization\0"
"sigGetConnected\0on_loginButton_clicked\0"
@@ -83,7 +91,9 @@ QT_MOC_LITERAL(32, 546, 4) // "link"
"slotDisableNotify\0slotConnectionState\0"
"flag\0slotServerDisconnect\0"
"on_updateListGuideLabel_linkActivated\0"
"link"
"link\0on_loadToServerButton_clicked\0"
"on_undoChangesButton_clicked\0"
"on_startWithCurrentChangesButton_clicked"
};
#undef QT_MOC_LITERAL
@@ -93,39 +103,44 @@ static const uint qt_meta_data_MainWindow[] = {
8, // revision
0, // classname
0, 0, // classinfo
17, 14, // methods
21, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
6, // signalCount
7, // signalCount
// signals: name, argc, parameters, tag, flags
1, 4, 99, 2, 0x06 /* Public */,
11, 2, 108, 2, 0x06 /* Public */,
14, 0, 113, 2, 0x06 /* Public */,
15, 1, 114, 2, 0x06 /* Public */,
17, 0, 117, 2, 0x06 /* Public */,
18, 0, 118, 2, 0x06 /* Public */,
1, 4, 119, 2, 0x06 /* Public */,
11, 1, 128, 2, 0x06 /* Public */,
14, 2, 131, 2, 0x06 /* Public */,
17, 0, 136, 2, 0x06 /* Public */,
18, 1, 137, 2, 0x06 /* Public */,
20, 0, 140, 2, 0x06 /* Public */,
21, 0, 141, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
19, 0, 119, 2, 0x08 /* Private */,
20, 0, 120, 2, 0x08 /* Private */,
21, 0, 121, 2, 0x08 /* Private */,
22, 0, 122, 2, 0x08 /* Private */,
23, 0, 123, 2, 0x08 /* Private */,
24, 0, 124, 2, 0x08 /* Private */,
25, 1, 125, 2, 0x08 /* Private */,
27, 0, 128, 2, 0x08 /* Private */,
28, 1, 129, 2, 0x08 /* Private */,
30, 0, 132, 2, 0x08 /* Private */,
31, 1, 133, 2, 0x08 /* Private */,
22, 0, 142, 2, 0x08 /* Private */,
23, 0, 143, 2, 0x08 /* Private */,
24, 0, 144, 2, 0x08 /* Private */,
25, 0, 145, 2, 0x08 /* Private */,
26, 0, 146, 2, 0x08 /* Private */,
27, 0, 147, 2, 0x08 /* Private */,
28, 1, 148, 2, 0x08 /* Private */,
30, 0, 151, 2, 0x08 /* Private */,
31, 1, 152, 2, 0x08 /* Private */,
33, 0, 155, 2, 0x08 /* Private */,
34, 1, 156, 2, 0x08 /* Private */,
36, 0, 159, 2, 0x08 /* Private */,
37, 0, 160, 2, 0x08 /* Private */,
38, 0, 161, 2, 0x08 /* Private */,
// signals: parameters
QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, 0x80000000 | 7, 0x80000000 | 9, 4, 6, 8, 10,
QMetaType::Void, 0x80000000 | 12, 0x80000000 | 9, 13, 10,
QMetaType::Void, 0x80000000 | 12, 13,
QMetaType::Void, 0x80000000 | 15, 0x80000000 | 9, 16, 10,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 16,
QMetaType::Void, QMetaType::QString, 19,
QMetaType::Void,
QMetaType::Bool,
@@ -136,11 +151,14 @@ static const uint qt_meta_data_MainWindow[] = {
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 26,
QMetaType::Void, QMetaType::QString, 29,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 32,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 35,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 29,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 32,
0 // eod
};
@@ -152,23 +170,27 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
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->sigSetConnect((*reinterpret_cast< ServerSettings*(*)>(_a[1])),(*reinterpret_cast< QThread*(*)>(_a[2]))); break;
case 2: _t->sigCalculateHash(); break;
case 3: _t->sigSendCommand((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 4: _t->sigSendAutorization(); break;
case 5: { bool _r = _t->sigGetConnected();
case 1: _t->sigUpdateFilesOnServer((*reinterpret_cast< QList<FileData>*(*)>(_a[1]))); break;
case 2: _t->sigSetConnect((*reinterpret_cast< ServerSettings*(*)>(_a[1])),(*reinterpret_cast< QThread*(*)>(_a[2]))); break;
case 3: _t->sigCalculateHash(); break;
case 4: _t->sigSendCommand((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 5: _t->sigSendAutorization(); break;
case 6: { bool _r = _t->sigGetConnected();
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
case 6: _t->on_loginButton_clicked(); break;
case 7: _t->on_updateButton_clicked(); break;
case 8: _t->on_startButton_clicked(); break;
case 9: _t->on_saveServerButton_clicked(); break;
case 10: _t->on_settingsButton_clicked(); break;
case 11: _t->on_connectButton_clicked(); break;
case 12: _t->on_languageComboBox_activated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 13: _t->slotDisableNotify(); break;
case 14: _t->slotConnectionState((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 15: _t->slotServerDisconnect(); break;
case 16: _t->on_updateListGuideLabel_linkActivated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 7: _t->on_loginButton_clicked(); break;
case 8: _t->on_updateButton_clicked(); break;
case 9: _t->on_startButton_clicked(); break;
case 10: _t->on_saveServerButton_clicked(); break;
case 11: _t->on_settingsButton_clicked(); break;
case 12: _t->on_connectButton_clicked(); break;
case 13: _t->on_languageComboBox_activated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 14: _t->slotDisableNotify(); break;
case 15: _t->slotConnectionState((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 16: _t->slotServerDisconnect(); break;
case 17: _t->on_updateListGuideLabel_linkActivated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 18: _t->on_loadToServerButton_clicked(); break;
case 19: _t->on_undoChangesButton_clicked(); break;
case 20: _t->on_startWithCurrentChangesButton_clicked(); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
@@ -187,7 +209,7 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< SendSystem* >(); break;
}
break;
case 1:
case 2:
switch (*reinterpret_cast<int*>(_a[1])) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 1:
@@ -204,38 +226,45 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
return;
}
}
{
using _t = void (MainWindow::*)(QList<FileData> * );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigUpdateFilesOnServer)) {
*result = 1;
return;
}
}
{
using _t = void (MainWindow::*)(ServerSettings * , QThread * );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigSetConnect)) {
*result = 1;
*result = 2;
return;
}
}
{
using _t = void (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigCalculateHash)) {
*result = 2;
*result = 3;
return;
}
}
{
using _t = void (MainWindow::*)(QString );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigSendCommand)) {
*result = 3;
*result = 4;
return;
}
}
{
using _t = void (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigSendAutorization)) {
*result = 4;
*result = 5;
return;
}
}
{
using _t = bool (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::sigGetConnected)) {
*result = 5;
*result = 6;
return;
}
}
@@ -271,13 +300,13 @@ int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 17)
if (_id < 21)
qt_static_metacall(this, _c, _id, _a);
_id -= 17;
_id -= 21;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 17)
if (_id < 21)
qt_static_metacall(this, _c, _id, _a);
_id -= 17;
_id -= 21;
}
return _id;
}
@@ -290,37 +319,44 @@ void MainWindow::sigInitializeClient(RecognizeSystem * _t1, ExternalExecuter * _
}
// SIGNAL 1
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, 1, _a);
}
// SIGNAL 2
void MainWindow::sigCalculateHash()
void MainWindow::sigSetConnect(ServerSettings * _t1, QThread * _t2)
{
QMetaObject::activate(this, &staticMetaObject, 2, 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, 2, _a);
}
// SIGNAL 3
void MainWindow::sigSendCommand(QString _t1)
void MainWindow::sigCalculateHash()
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 3, _a);
QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
// SIGNAL 4
void MainWindow::sigSendAutorization()
void MainWindow::sigSendCommand(QString _t1)
{
QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 4, _a);
}
// SIGNAL 5
void MainWindow::sigSendAutorization()
{
QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
// SIGNAL 6
bool MainWindow::sigGetConnected()
{
bool _t0{};
void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t0))) };
QMetaObject::activate(this, &staticMetaObject, 5, _a);
QMetaObject::activate(this, &staticMetaObject, 6, _a);
return _t0;
}
QT_WARNING_POP