feat: add instructor updateBehaviour

This commit is contained in:
semenov
2024-10-02 11:19:38 +03:00
parent 5f457e3ac6
commit 0b8a384d58
27 changed files with 382 additions and 2361 deletions

View File

@@ -10,7 +10,6 @@
#include "../updatenotifywidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'updatenotifywidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
@@ -23,8 +22,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_UpdateNotifyWidget_t {
QByteArrayData data[10];
char stringdata0[174];
QByteArrayData data[3];
char stringdata0[43];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -34,22 +33,12 @@ struct qt_meta_stringdata_UpdateNotifyWidget_t {
static const qt_meta_stringdata_UpdateNotifyWidget_t qt_meta_stringdata_UpdateNotifyWidget = {
{
QT_MOC_LITERAL(0, 0, 18), // "UpdateNotifyWidget"
QT_MOC_LITERAL(1, 19, 22), // "sigUpdateFilesOnServer"
QT_MOC_LITERAL(2, 42, 0), // ""
QT_MOC_LITERAL(3, 43, 16), // "QList<FileData>*"
QT_MOC_LITERAL(4, 60, 12), // "fileSendList"
QT_MOC_LITERAL(5, 73, 21), // "showCompleteDialogBox"
QT_MOC_LITERAL(6, 95, 4), // "flag"
QT_MOC_LITERAL(7, 100, 26), // "on_StartLoadButton_clicked"
QT_MOC_LITERAL(8, 127, 23), // "on_CancelButton_clicked"
QT_MOC_LITERAL(9, 151, 22) // "on_closeButton_clicked"
QT_MOC_LITERAL(1, 19, 22), // "on_closeButton_clicked"
QT_MOC_LITERAL(2, 42, 0) // ""
},
"UpdateNotifyWidget\0sigUpdateFilesOnServer\0"
"\0QList<FileData>*\0fileSendList\0"
"showCompleteDialogBox\0flag\0"
"on_StartLoadButton_clicked\0"
"on_CancelButton_clicked\0on_closeButton_clicked"
"UpdateNotifyWidget\0on_closeButton_clicked\0"
""
};
#undef QT_MOC_LITERAL
@@ -59,29 +48,17 @@ static const uint qt_meta_data_UpdateNotifyWidget[] = {
8, // revision
0, // classname
0, 0, // classinfo
5, 14, // methods
1, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
1, // signalCount
// signals: name, argc, parameters, tag, flags
1, 1, 39, 2, 0x06 /* Public */,
0, // signalCount
// slots: name, argc, parameters, tag, flags
5, 1, 42, 2, 0x08 /* Private */,
7, 0, 45, 2, 0x08 /* Private */,
8, 0, 46, 2, 0x08 /* Private */,
9, 0, 47, 2, 0x08 /* Private */,
// signals: parameters
QMetaType::Void, 0x80000000 | 3, 4,
1, 0, 19, 2, 0x08 /* Private */,
// slots: parameters
QMetaType::Void, QMetaType::Bool, 6,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
0 // eod
@@ -93,23 +70,11 @@ void UpdateNotifyWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, i
auto *_t = static_cast<UpdateNotifyWidget *>(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: _t->sigUpdateFilesOnServer((*reinterpret_cast< QList<FileData>*(*)>(_a[1]))); break;
case 1: _t->showCompleteDialogBox((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 2: _t->on_StartLoadButton_clicked(); break;
case 3: _t->on_CancelButton_clicked(); break;
case 4: _t->on_closeButton_clicked(); break;
case 0: _t->on_closeButton_clicked(); break;
default: ;
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
{
using _t = void (UpdateNotifyWidget::*)(QList<FileData> * );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&UpdateNotifyWidget::sigUpdateFilesOnServer)) {
*result = 0;
return;
}
}
}
Q_UNUSED(_a);
}
QT_INIT_METAOBJECT const QMetaObject UpdateNotifyWidget::staticMetaObject = { {
@@ -141,22 +106,15 @@ int UpdateNotifyWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 5)
if (_id < 1)
qt_static_metacall(this, _c, _id, _a);
_id -= 5;
_id -= 1;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 5)
if (_id < 1)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 5;
_id -= 1;
}
return _id;
}
// SIGNAL 0
void UpdateNotifyWidget::sigUpdateFilesOnServer(QList<FileData> * _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE