сделал newInstructor

This commit is contained in:
krivoshein
2024-12-11 12:50:52 +03:00
parent 4556c07fc9
commit 0cb03e49b1
89 changed files with 1318 additions and 671 deletions

View File

@@ -23,8 +23,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_RecognizeSystem_t {
QByteArrayData data[28];
char stringdata0[395];
QByteArrayData data[43];
char stringdata0[718];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -60,7 +60,22 @@ QT_MOC_LITERAL(23, 319, 13), // "QList<Group>*"
QT_MOC_LITERAL(24, 333, 10), // "listGroups"
QT_MOC_LITERAL(25, 344, 25), // "sigSocketWaitForReadyRead"
QT_MOC_LITERAL(26, 370, 8), // "waitTime"
QT_MOC_LITERAL(27, 379, 15) // "sigStartCompare"
QT_MOC_LITERAL(27, 379, 15), // "sigStartCompare"
QT_MOC_LITERAL(28, 395, 34), // "sigAnswerQueryToDB_ListInstru..."
QT_MOC_LITERAL(29, 430, 17), // "QList<Instructor>"
QT_MOC_LITERAL(30, 448, 29), // "sigAnswerQueryToDB_ListGroups"
QT_MOC_LITERAL(31, 478, 12), // "QList<Group>"
QT_MOC_LITERAL(32, 491, 31), // "sigAnswerQueryToDB_ListTrainees"
QT_MOC_LITERAL(33, 523, 14), // "QList<Trainee>"
QT_MOC_LITERAL(34, 538, 32), // "sigAnswerQueryToDB_ListComputers"
QT_MOC_LITERAL(35, 571, 15), // "QList<Computer>"
QT_MOC_LITERAL(36, 587, 13), // "listComputers"
QT_MOC_LITERAL(37, 601, 33), // "sigAnswerQueryToDB_ListClassr..."
QT_MOC_LITERAL(38, 635, 16), // "QList<Classroom>"
QT_MOC_LITERAL(39, 652, 14), // "listClassrooms"
QT_MOC_LITERAL(40, 667, 28), // "sigAnswerQueryToDB_ListTasks"
QT_MOC_LITERAL(41, 696, 11), // "QList<Task>"
QT_MOC_LITERAL(42, 708, 9) // "listTasks"
},
"RecognizeSystem\0sigUpdateBytesAvailable\0"
@@ -73,7 +88,16 @@ QT_MOC_LITERAL(27, 379, 15) // "sigStartCompare"
"QList<Instructor>*\0listInstructors\0"
"QList<Trainee>*\0listTrainees\0QList<Group>*\0"
"listGroups\0sigSocketWaitForReadyRead\0"
"waitTime\0sigStartCompare"
"waitTime\0sigStartCompare\0"
"sigAnswerQueryToDB_ListInstructors\0"
"QList<Instructor>\0sigAnswerQueryToDB_ListGroups\0"
"QList<Group>\0sigAnswerQueryToDB_ListTrainees\0"
"QList<Trainee>\0sigAnswerQueryToDB_ListComputers\0"
"QList<Computer>\0listComputers\0"
"sigAnswerQueryToDB_ListClassrooms\0"
"QList<Classroom>\0listClassrooms\0"
"sigAnswerQueryToDB_ListTasks\0QList<Task>\0"
"listTasks"
};
#undef QT_MOC_LITERAL
@@ -83,25 +107,31 @@ static const uint qt_meta_data_RecognizeSystem[] = {
8, // revision
0, // classname
0, 0, // classinfo
11, 14, // methods
17, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
11, // signalCount
17, // signalCount
// signals: name, argc, parameters, tag, flags
1, 0, 69, 2, 0x06 /* Public */,
3, 0, 70, 2, 0x06 /* Public */,
4, 3, 71, 2, 0x06 /* Public */,
8, 1, 78, 2, 0x06 /* Public */,
10, 0, 81, 2, 0x06 /* Public */,
11, 0, 82, 2, 0x06 /* Public */,
12, 1, 83, 2, 0x06 /* Public */,
15, 1, 86, 2, 0x06 /* Public */,
18, 3, 89, 2, 0x06 /* Public */,
25, 1, 96, 2, 0x06 /* Public */,
27, 0, 99, 2, 0x06 /* Public */,
1, 0, 99, 2, 0x06 /* Public */,
3, 0, 100, 2, 0x06 /* Public */,
4, 3, 101, 2, 0x06 /* Public */,
8, 1, 108, 2, 0x06 /* Public */,
10, 0, 111, 2, 0x06 /* Public */,
11, 0, 112, 2, 0x06 /* Public */,
12, 1, 113, 2, 0x06 /* Public */,
15, 1, 116, 2, 0x06 /* Public */,
18, 3, 119, 2, 0x06 /* Public */,
25, 1, 126, 2, 0x06 /* Public */,
27, 0, 129, 2, 0x06 /* Public */,
28, 1, 130, 2, 0x06 /* Public */,
30, 1, 133, 2, 0x06 /* Public */,
32, 1, 136, 2, 0x06 /* Public */,
34, 1, 139, 2, 0x06 /* Public */,
37, 1, 142, 2, 0x06 /* Public */,
40, 1, 145, 2, 0x06 /* Public */,
// signals: parameters
QMetaType::Void,
@@ -115,6 +145,12 @@ static const uint qt_meta_data_RecognizeSystem[] = {
QMetaType::Void, 0x80000000 | 19, 0x80000000 | 21, 0x80000000 | 23, 20, 22, 24,
QMetaType::Void, QMetaType::Int, 26,
QMetaType::Void,
QMetaType::Void, 0x80000000 | 29, 20,
QMetaType::Void, 0x80000000 | 31, 24,
QMetaType::Void, 0x80000000 | 33, 22,
QMetaType::Void, 0x80000000 | 35, 36,
QMetaType::Void, 0x80000000 | 38, 39,
QMetaType::Void, 0x80000000 | 41, 42,
0 // eod
};
@@ -136,6 +172,12 @@ void RecognizeSystem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
case 8: _t->sigAnswerQueryToDB((*reinterpret_cast< QList<Instructor>*(*)>(_a[1])),(*reinterpret_cast< QList<Trainee>*(*)>(_a[2])),(*reinterpret_cast< QList<Group>*(*)>(_a[3]))); break;
case 9: _t->sigSocketWaitForReadyRead((*reinterpret_cast< int(*)>(_a[1]))); break;
case 10: _t->sigStartCompare(); break;
case 11: _t->sigAnswerQueryToDB_ListInstructors((*reinterpret_cast< QList<Instructor>(*)>(_a[1]))); break;
case 12: _t->sigAnswerQueryToDB_ListGroups((*reinterpret_cast< QList<Group>(*)>(_a[1]))); break;
case 13: _t->sigAnswerQueryToDB_ListTrainees((*reinterpret_cast< QList<Trainee>(*)>(_a[1]))); break;
case 14: _t->sigAnswerQueryToDB_ListComputers((*reinterpret_cast< QList<Computer>(*)>(_a[1]))); break;
case 15: _t->sigAnswerQueryToDB_ListClassrooms((*reinterpret_cast< QList<Classroom>(*)>(_a[1]))); break;
case 16: _t->sigAnswerQueryToDB_ListTasks((*reinterpret_cast< QList<Task>(*)>(_a[1]))); break;
default: ;
}
} else if (_c == QMetaObject::IndexOfMethod) {
@@ -217,6 +259,48 @@ void RecognizeSystem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
return;
}
}
{
using _t = void (RecognizeSystem::*)(QList<Instructor> );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigAnswerQueryToDB_ListInstructors)) {
*result = 11;
return;
}
}
{
using _t = void (RecognizeSystem::*)(QList<Group> );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigAnswerQueryToDB_ListGroups)) {
*result = 12;
return;
}
}
{
using _t = void (RecognizeSystem::*)(QList<Trainee> );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigAnswerQueryToDB_ListTrainees)) {
*result = 13;
return;
}
}
{
using _t = void (RecognizeSystem::*)(QList<Computer> );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigAnswerQueryToDB_ListComputers)) {
*result = 14;
return;
}
}
{
using _t = void (RecognizeSystem::*)(QList<Classroom> );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigAnswerQueryToDB_ListClassrooms)) {
*result = 15;
return;
}
}
{
using _t = void (RecognizeSystem::*)(QList<Task> );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigAnswerQueryToDB_ListTasks)) {
*result = 16;
return;
}
}
}
}
@@ -249,13 +333,13 @@ int RecognizeSystem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 11)
if (_id < 17)
qt_static_metacall(this, _c, _id, _a);
_id -= 11;
_id -= 17;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 11)
if (_id < 17)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 11;
_id -= 17;
}
return _id;
}
@@ -331,5 +415,47 @@ void RecognizeSystem::sigStartCompare()
{
QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}
// SIGNAL 11
void RecognizeSystem::sigAnswerQueryToDB_ListInstructors(QList<Instructor> _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 11, _a);
}
// SIGNAL 12
void RecognizeSystem::sigAnswerQueryToDB_ListGroups(QList<Group> _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 12, _a);
}
// SIGNAL 13
void RecognizeSystem::sigAnswerQueryToDB_ListTrainees(QList<Trainee> _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 13, _a);
}
// SIGNAL 14
void RecognizeSystem::sigAnswerQueryToDB_ListComputers(QList<Computer> _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 14, _a);
}
// SIGNAL 15
void RecognizeSystem::sigAnswerQueryToDB_ListClassrooms(QList<Classroom> _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 15, _a);
}
// SIGNAL 16
void RecognizeSystem::sigAnswerQueryToDB_ListTasks(QList<Task> _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 16, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@@ -150,6 +150,17 @@ void InstructorsAndTraineesWidget::qt_static_metacall(QObject *_o, QMetaObject::
case 12: _t->on_btnQueryGetAllLists_clicked(); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
switch (_id) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 5:
switch (*reinterpret_cast<int*>(_a[1])) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 0:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<Trainee> >(); break;
}
break;
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
{
@@ -231,7 +242,7 @@ int InstructorsAndTraineesWidget::qt_metacall(QMetaObject::Call _c, int _id, voi
_id -= 13;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 13)
*reinterpret_cast<int*>(_a[0]) = -1;
qt_static_metacall(this, _c, _id, _a);
_id -= 13;
}
return _id;

View File

@@ -23,8 +23,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_ConnectorToServer_t {
QByteArrayData data[31];
char stringdata0[468];
QByteArrayData data[46];
char stringdata0[803];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -63,7 +63,22 @@ QT_MOC_LITERAL(26, 398, 15), // "listInstructors"
QT_MOC_LITERAL(27, 414, 15), // "QList<Trainee>*"
QT_MOC_LITERAL(28, 430, 12), // "listTrainees"
QT_MOC_LITERAL(29, 443, 13), // "QList<Group>*"
QT_MOC_LITERAL(30, 457, 10) // "listGroups"
QT_MOC_LITERAL(30, 457, 10), // "listGroups"
QT_MOC_LITERAL(31, 468, 36), // "slot_AnswerQueryToDB_ListInst..."
QT_MOC_LITERAL(32, 505, 17), // "QList<Instructor>"
QT_MOC_LITERAL(33, 523, 31), // "slot_AnswerQueryToDB_ListGroups"
QT_MOC_LITERAL(34, 555, 12), // "QList<Group>"
QT_MOC_LITERAL(35, 568, 33), // "slot_AnswerQueryToDB_ListTrai..."
QT_MOC_LITERAL(36, 602, 14), // "QList<Trainee>"
QT_MOC_LITERAL(37, 617, 34), // "slot_AnswerQueryToDB_ListComp..."
QT_MOC_LITERAL(38, 652, 15), // "QList<Computer>"
QT_MOC_LITERAL(39, 668, 13), // "listComputers"
QT_MOC_LITERAL(40, 682, 35), // "slot_AnswerQueryToDB_ListClas..."
QT_MOC_LITERAL(41, 718, 16), // "QList<Classroom>"
QT_MOC_LITERAL(42, 735, 14), // "listClassrooms"
QT_MOC_LITERAL(43, 750, 30), // "slot_AnswerQueryToDB_ListTasks"
QT_MOC_LITERAL(44, 781, 11), // "QList<Task>"
QT_MOC_LITERAL(45, 793, 9) // "listTasks"
},
"ConnectorToServer\0sigSetConnect\0\0"
@@ -78,7 +93,16 @@ QT_MOC_LITERAL(30, 457, 10) // "listGroups"
"treeInstructor\0treeTrainee\0"
"slot_AnswerQueryToDB\0QList<Instructor>*\0"
"listInstructors\0QList<Trainee>*\0"
"listTrainees\0QList<Group>*\0listGroups"
"listTrainees\0QList<Group>*\0listGroups\0"
"slot_AnswerQueryToDB_ListInstructors\0"
"QList<Instructor>\0slot_AnswerQueryToDB_ListGroups\0"
"QList<Group>\0slot_AnswerQueryToDB_ListTrainees\0"
"QList<Trainee>\0slot_AnswerQueryToDB_ListComputers\0"
"QList<Computer>\0listComputers\0"
"slot_AnswerQueryToDB_ListClassrooms\0"
"QList<Classroom>\0listClassrooms\0"
"slot_AnswerQueryToDB_ListTasks\0"
"QList<Task>\0listTasks"
};
#undef QT_MOC_LITERAL
@@ -88,7 +112,7 @@ static const uint qt_meta_data_ConnectorToServer[] = {
8, // revision
0, // classname
0, 0, // classinfo
9, 14, // methods
15, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
@@ -96,17 +120,23 @@ static const uint qt_meta_data_ConnectorToServer[] = {
8, // signalCount
// signals: name, argc, parameters, tag, flags
1, 2, 59, 2, 0x06 /* Public */,
7, 3, 64, 2, 0x06 /* Public */,
12, 0, 71, 2, 0x06 /* Public */,
13, 0, 72, 2, 0x06 /* Public */,
14, 0, 73, 2, 0x06 /* Public */,
15, 1, 74, 2, 0x06 /* Public */,
18, 1, 77, 2, 0x06 /* Public */,
21, 2, 80, 2, 0x06 /* Public */,
1, 2, 89, 2, 0x06 /* Public */,
7, 3, 94, 2, 0x06 /* Public */,
12, 0, 101, 2, 0x06 /* Public */,
13, 0, 102, 2, 0x06 /* Public */,
14, 0, 103, 2, 0x06 /* Public */,
15, 1, 104, 2, 0x06 /* Public */,
18, 1, 107, 2, 0x06 /* Public */,
21, 2, 110, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
24, 3, 85, 2, 0x0a /* Public */,
24, 3, 115, 2, 0x0a /* Public */,
31, 1, 122, 2, 0x0a /* Public */,
33, 1, 125, 2, 0x0a /* Public */,
35, 1, 128, 2, 0x0a /* Public */,
37, 1, 131, 2, 0x0a /* Public */,
40, 1, 134, 2, 0x0a /* Public */,
43, 1, 137, 2, 0x0a /* Public */,
// signals: parameters
QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, 4, 6,
@@ -120,6 +150,12 @@ static const uint qt_meta_data_ConnectorToServer[] = {
// slots: parameters
QMetaType::Void, 0x80000000 | 25, 0x80000000 | 27, 0x80000000 | 29, 26, 28, 30,
QMetaType::Void, 0x80000000 | 32, 26,
QMetaType::Void, 0x80000000 | 34, 30,
QMetaType::Void, 0x80000000 | 36, 28,
QMetaType::Void, 0x80000000 | 38, 39,
QMetaType::Void, 0x80000000 | 41, 42,
QMetaType::Void, 0x80000000 | 44, 45,
0 // eod
};
@@ -139,6 +175,12 @@ void ConnectorToServer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, in
case 6: _t->sigDeLoginResult((*reinterpret_cast< ServerDeAuthorization*(*)>(_a[1]))); break;
case 7: _t->signal_UpdateDB((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
case 8: _t->slot_AnswerQueryToDB((*reinterpret_cast< QList<Instructor>*(*)>(_a[1])),(*reinterpret_cast< QList<Trainee>*(*)>(_a[2])),(*reinterpret_cast< QList<Group>*(*)>(_a[3]))); break;
case 9: _t->slot_AnswerQueryToDB_ListInstructors((*reinterpret_cast< QList<Instructor>(*)>(_a[1]))); break;
case 10: _t->slot_AnswerQueryToDB_ListGroups((*reinterpret_cast< QList<Group>(*)>(_a[1]))); break;
case 11: _t->slot_AnswerQueryToDB_ListTrainees((*reinterpret_cast< QList<Trainee>(*)>(_a[1]))); break;
case 12: _t->slot_AnswerQueryToDB_ListComputers((*reinterpret_cast< QList<Computer>(*)>(_a[1]))); break;
case 13: _t->slot_AnswerQueryToDB_ListClassrooms((*reinterpret_cast< QList<Classroom>(*)>(_a[1]))); break;
case 14: _t->slot_AnswerQueryToDB_ListTasks((*reinterpret_cast< QList<Task>(*)>(_a[1]))); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
@@ -244,13 +286,13 @@ int ConnectorToServer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 9)
if (_id < 15)
qt_static_metacall(this, _c, _id, _a);
_id -= 9;
_id -= 15;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 9)
if (_id < 15)
qt_static_metacall(this, _c, _id, _a);
_id -= 9;
_id -= 15;
}
return _id;
}