Связал Messenger и ViewerTrainee

This commit is contained in:
krivoshein
2024-12-16 11:32:44 +03:00
parent d52b9b3562
commit b4e30429f7
22 changed files with 369 additions and 377 deletions

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[44];
char stringdata0[764];
QByteArrayData data[45];
char stringdata0[785];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -59,24 +59,25 @@ QT_MOC_LITERAL(22, 331, 14), // "treeInstructor"
QT_MOC_LITERAL(23, 346, 11), // "treeTrainee"
QT_MOC_LITERAL(24, 358, 24), // "signal_ConnectedToServer"
QT_MOC_LITERAL(25, 383, 5), // "state"
QT_MOC_LITERAL(26, 389, 36), // "slot_AnswerQueryToDB_ListInst..."
QT_MOC_LITERAL(27, 426, 17), // "QList<Instructor>"
QT_MOC_LITERAL(28, 444, 15), // "listInstructors"
QT_MOC_LITERAL(29, 460, 31), // "slot_AnswerQueryToDB_ListGroups"
QT_MOC_LITERAL(30, 492, 12), // "QList<Group>"
QT_MOC_LITERAL(31, 505, 10), // "listGroups"
QT_MOC_LITERAL(32, 516, 33), // "slot_AnswerQueryToDB_ListTrai..."
QT_MOC_LITERAL(33, 550, 14), // "QList<Trainee>"
QT_MOC_LITERAL(34, 565, 12), // "listTrainees"
QT_MOC_LITERAL(35, 578, 34), // "slot_AnswerQueryToDB_ListComp..."
QT_MOC_LITERAL(36, 613, 15), // "QList<Computer>"
QT_MOC_LITERAL(37, 629, 13), // "listComputers"
QT_MOC_LITERAL(38, 643, 35), // "slot_AnswerQueryToDB_ListClas..."
QT_MOC_LITERAL(39, 679, 16), // "QList<Classroom>"
QT_MOC_LITERAL(40, 696, 14), // "listClassrooms"
QT_MOC_LITERAL(41, 711, 30), // "slot_AnswerQueryToDB_ListTasks"
QT_MOC_LITERAL(42, 742, 11), // "QList<Task>"
QT_MOC_LITERAL(43, 754, 9) // "listTasks"
QT_MOC_LITERAL(26, 389, 20), // "signal_InitMessanger"
QT_MOC_LITERAL(27, 410, 14), // "QList<Trainee>"
QT_MOC_LITERAL(28, 425, 12), // "listTrainees"
QT_MOC_LITERAL(29, 438, 36), // "slot_AnswerQueryToDB_ListInst..."
QT_MOC_LITERAL(30, 475, 17), // "QList<Instructor>"
QT_MOC_LITERAL(31, 493, 15), // "listInstructors"
QT_MOC_LITERAL(32, 509, 31), // "slot_AnswerQueryToDB_ListGroups"
QT_MOC_LITERAL(33, 541, 12), // "QList<Group>"
QT_MOC_LITERAL(34, 554, 10), // "listGroups"
QT_MOC_LITERAL(35, 565, 33), // "slot_AnswerQueryToDB_ListTrai..."
QT_MOC_LITERAL(36, 599, 34), // "slot_AnswerQueryToDB_ListComp..."
QT_MOC_LITERAL(37, 634, 15), // "QList<Computer>"
QT_MOC_LITERAL(38, 650, 13), // "listComputers"
QT_MOC_LITERAL(39, 664, 35), // "slot_AnswerQueryToDB_ListClas..."
QT_MOC_LITERAL(40, 700, 16), // "QList<Classroom>"
QT_MOC_LITERAL(41, 717, 14), // "listClassrooms"
QT_MOC_LITERAL(42, 732, 30), // "slot_AnswerQueryToDB_ListTasks"
QT_MOC_LITERAL(43, 763, 11), // "QList<Task>"
QT_MOC_LITERAL(44, 775, 9) // "listTasks"
},
"ConnectorToServer\0sigSetConnect\0\0"
@@ -90,12 +91,12 @@ QT_MOC_LITERAL(43, 754, 9) // "listTasks"
"serverDeAuth\0signal_UpdateDB\0"
"treeInstructor\0treeTrainee\0"
"signal_ConnectedToServer\0state\0"
"slot_AnswerQueryToDB_ListInstructors\0"
"signal_InitMessanger\0QList<Trainee>\0"
"listTrainees\0slot_AnswerQueryToDB_ListInstructors\0"
"QList<Instructor>\0listInstructors\0"
"slot_AnswerQueryToDB_ListGroups\0"
"QList<Group>\0listGroups\0"
"slot_AnswerQueryToDB_ListTrainees\0"
"QList<Trainee>\0listTrainees\0"
"slot_AnswerQueryToDB_ListComputers\0"
"QList<Computer>\0listComputers\0"
"slot_AnswerQueryToDB_ListClassrooms\0"
@@ -111,31 +112,32 @@ static const uint qt_meta_data_ConnectorToServer[] = {
8, // revision
0, // classname
0, 0, // classinfo
15, 14, // methods
16, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
9, // signalCount
10, // signalCount
// signals: name, argc, parameters, tag, flags
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 */,
24, 1, 115, 2, 0x06 /* Public */,
1, 2, 94, 2, 0x06 /* Public */,
7, 3, 99, 2, 0x06 /* Public */,
12, 0, 106, 2, 0x06 /* Public */,
13, 0, 107, 2, 0x06 /* Public */,
14, 0, 108, 2, 0x06 /* Public */,
15, 1, 109, 2, 0x06 /* Public */,
18, 1, 112, 2, 0x06 /* Public */,
21, 2, 115, 2, 0x06 /* Public */,
24, 1, 120, 2, 0x06 /* Public */,
26, 1, 123, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
26, 1, 118, 2, 0x0a /* Public */,
29, 1, 121, 2, 0x0a /* Public */,
32, 1, 124, 2, 0x0a /* Public */,
35, 1, 127, 2, 0x0a /* Public */,
38, 1, 130, 2, 0x0a /* Public */,
41, 1, 133, 2, 0x0a /* Public */,
29, 1, 126, 2, 0x0a /* Public */,
32, 1, 129, 2, 0x0a /* Public */,
35, 1, 132, 2, 0x0a /* Public */,
36, 1, 135, 2, 0x0a /* Public */,
39, 1, 138, 2, 0x0a /* Public */,
42, 1, 141, 2, 0x0a /* Public */,
// signals: parameters
QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, 4, 6,
@@ -147,14 +149,15 @@ static const uint qt_meta_data_ConnectorToServer[] = {
QMetaType::Void, 0x80000000 | 19, 20,
QMetaType::Void, QMetaType::Bool, QMetaType::Bool, 22, 23,
QMetaType::Void, QMetaType::Bool, 25,
QMetaType::Void, 0x80000000 | 27, 28,
// slots: parameters
QMetaType::Void, 0x80000000 | 27, 28,
QMetaType::Void, 0x80000000 | 30, 31,
QMetaType::Void, 0x80000000 | 33, 34,
QMetaType::Void, 0x80000000 | 36, 37,
QMetaType::Void, 0x80000000 | 39, 40,
QMetaType::Void, 0x80000000 | 42, 43,
QMetaType::Void, 0x80000000 | 27, 28,
QMetaType::Void, 0x80000000 | 37, 38,
QMetaType::Void, 0x80000000 | 40, 41,
QMetaType::Void, 0x80000000 | 43, 44,
0 // eod
};
@@ -174,12 +177,13 @@ 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->signal_ConnectedToServer((*reinterpret_cast< bool(*)>(_a[1]))); 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;
case 9: _t->signal_InitMessanger((*reinterpret_cast< QList<Trainee>(*)>(_a[1]))); break;
case 10: _t->slot_AnswerQueryToDB_ListInstructors((*reinterpret_cast< QList<Instructor>(*)>(_a[1]))); break;
case 11: _t->slot_AnswerQueryToDB_ListGroups((*reinterpret_cast< QList<Group>(*)>(_a[1]))); break;
case 12: _t->slot_AnswerQueryToDB_ListTrainees((*reinterpret_cast< QList<Trainee>(*)>(_a[1]))); break;
case 13: _t->slot_AnswerQueryToDB_ListComputers((*reinterpret_cast< QList<Computer>(*)>(_a[1]))); break;
case 14: _t->slot_AnswerQueryToDB_ListClassrooms((*reinterpret_cast< QList<Classroom>(*)>(_a[1]))); break;
case 15: _t->slot_AnswerQueryToDB_ListTasks((*reinterpret_cast< QList<Task>(*)>(_a[1]))); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
@@ -260,6 +264,13 @@ void ConnectorToServer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, in
return;
}
}
{
using _t = void (ConnectorToServer::*)(QList<Trainee> );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ConnectorToServer::signal_InitMessanger)) {
*result = 9;
return;
}
}
}
}
@@ -292,13 +303,13 @@ int ConnectorToServer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 15)
if (_id < 16)
qt_static_metacall(this, _c, _id, _a);
_id -= 15;
_id -= 16;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 15)
if (_id < 16)
qt_static_metacall(this, _c, _id, _a);
_id -= 15;
_id -= 16;
}
return _id;
}
@@ -362,5 +373,12 @@ void ConnectorToServer::signal_ConnectedToServer(bool _t1)
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 8, _a);
}
// SIGNAL 9
void ConnectorToServer::signal_InitMessanger(QList<Trainee> _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 9, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE