mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Начал реализовывать обмен запросами к БД
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "../../../InstructorsAndTrainees/connectorToServer/Core/recognizesystem.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#include <QtCore/QList>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'recognizesystem.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_RecognizeSystem_t {
|
||||
QByteArrayData data[21];
|
||||
char stringdata0[296];
|
||||
QByteArrayData data[24];
|
||||
char stringdata0[341];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
@@ -44,25 +45,30 @@ QT_MOC_LITERAL(8, 91, 15), // "sigSendDebugLog"
|
||||
QT_MOC_LITERAL(9, 107, 7), // "message"
|
||||
QT_MOC_LITERAL(10, 115, 17), // "sigSocketDisabled"
|
||||
QT_MOC_LITERAL(11, 133, 16), // "sigServerBlocked"
|
||||
QT_MOC_LITERAL(12, 150, 16), // "sigSaveLoginData"
|
||||
QT_MOC_LITERAL(13, 167, 20), // "ServerAuthorization*"
|
||||
QT_MOC_LITERAL(14, 188, 10), // "serverAuth"
|
||||
QT_MOC_LITERAL(15, 199, 9), // "sigDeAuth"
|
||||
QT_MOC_LITERAL(16, 209, 22), // "ServerDeAuthorization*"
|
||||
QT_MOC_LITERAL(17, 232, 12), // "serverDeAuth"
|
||||
QT_MOC_LITERAL(18, 245, 25), // "sigSocketWaitForReadyRead"
|
||||
QT_MOC_LITERAL(19, 271, 8), // "waitTime"
|
||||
QT_MOC_LITERAL(20, 280, 15) // "sigStartCompare"
|
||||
QT_MOC_LITERAL(12, 150, 7), // "sigAuth"
|
||||
QT_MOC_LITERAL(13, 158, 20), // "ServerAuthorization*"
|
||||
QT_MOC_LITERAL(14, 179, 10), // "serverAuth"
|
||||
QT_MOC_LITERAL(15, 190, 9), // "sigDeAuth"
|
||||
QT_MOC_LITERAL(16, 200, 22), // "ServerDeAuthorization*"
|
||||
QT_MOC_LITERAL(17, 223, 12), // "serverDeAuth"
|
||||
QT_MOC_LITERAL(18, 236, 18), // "sigAnswerQueryToDB"
|
||||
QT_MOC_LITERAL(19, 255, 18), // "QList<Instructor>*"
|
||||
QT_MOC_LITERAL(20, 274, 15), // "listInstructors"
|
||||
QT_MOC_LITERAL(21, 290, 25), // "sigSocketWaitForReadyRead"
|
||||
QT_MOC_LITERAL(22, 316, 8), // "waitTime"
|
||||
QT_MOC_LITERAL(23, 325, 15) // "sigStartCompare"
|
||||
|
||||
},
|
||||
"RecognizeSystem\0sigUpdateBytesAvailable\0"
|
||||
"\0sigLoadComplete\0sigNeedUpdate\0flag\0"
|
||||
"size\0fileCount\0sigSendDebugLog\0message\0"
|
||||
"sigSocketDisabled\0sigServerBlocked\0"
|
||||
"sigSaveLoginData\0ServerAuthorization*\0"
|
||||
"serverAuth\0sigDeAuth\0ServerDeAuthorization*\0"
|
||||
"serverDeAuth\0sigSocketWaitForReadyRead\0"
|
||||
"waitTime\0sigStartCompare"
|
||||
"sigAuth\0ServerAuthorization*\0serverAuth\0"
|
||||
"sigDeAuth\0ServerDeAuthorization*\0"
|
||||
"serverDeAuth\0sigAnswerQueryToDB\0"
|
||||
"QList<Instructor>*\0listInstructors\0"
|
||||
"sigSocketWaitForReadyRead\0waitTime\0"
|
||||
"sigStartCompare"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
@@ -72,24 +78,25 @@ static const uint qt_meta_data_RecognizeSystem[] = {
|
||||
8, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
10, 14, // methods
|
||||
11, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
10, // signalCount
|
||||
11, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 0, 64, 2, 0x06 /* Public */,
|
||||
3, 0, 65, 2, 0x06 /* Public */,
|
||||
4, 3, 66, 2, 0x06 /* Public */,
|
||||
8, 1, 73, 2, 0x06 /* Public */,
|
||||
10, 0, 76, 2, 0x06 /* Public */,
|
||||
11, 0, 77, 2, 0x06 /* Public */,
|
||||
12, 1, 78, 2, 0x06 /* Public */,
|
||||
15, 1, 81, 2, 0x06 /* Public */,
|
||||
18, 1, 84, 2, 0x06 /* Public */,
|
||||
20, 0, 87, 2, 0x06 /* Public */,
|
||||
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, 1, 89, 2, 0x06 /* Public */,
|
||||
21, 1, 92, 2, 0x06 /* Public */,
|
||||
23, 0, 95, 2, 0x06 /* Public */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void,
|
||||
@@ -100,7 +107,8 @@ static const uint qt_meta_data_RecognizeSystem[] = {
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, 0x80000000 | 13, 14,
|
||||
QMetaType::Void, 0x80000000 | 16, 17,
|
||||
QMetaType::Void, QMetaType::Int, 19,
|
||||
QMetaType::Void, 0x80000000 | 19, 20,
|
||||
QMetaType::Void, QMetaType::Int, 22,
|
||||
QMetaType::Void,
|
||||
|
||||
0 // eod
|
||||
@@ -118,10 +126,11 @@ void RecognizeSystem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
|
||||
case 3: _t->sigSendDebugLog((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 4: _t->sigSocketDisabled(); break;
|
||||
case 5: _t->sigServerBlocked(); break;
|
||||
case 6: _t->sigSaveLoginData((*reinterpret_cast< ServerAuthorization*(*)>(_a[1]))); break;
|
||||
case 6: _t->sigAuth((*reinterpret_cast< ServerAuthorization*(*)>(_a[1]))); break;
|
||||
case 7: _t->sigDeAuth((*reinterpret_cast< ServerDeAuthorization*(*)>(_a[1]))); break;
|
||||
case 8: _t->sigSocketWaitForReadyRead((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 9: _t->sigStartCompare(); break;
|
||||
case 8: _t->sigAnswerQueryToDB((*reinterpret_cast< QList<Instructor>*(*)>(_a[1]))); break;
|
||||
case 9: _t->sigSocketWaitForReadyRead((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 10: _t->sigStartCompare(); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::IndexOfMethod) {
|
||||
@@ -170,7 +179,7 @@ void RecognizeSystem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
|
||||
}
|
||||
{
|
||||
using _t = void (RecognizeSystem::*)(ServerAuthorization * );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigSaveLoginData)) {
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigAuth)) {
|
||||
*result = 6;
|
||||
return;
|
||||
}
|
||||
@@ -182,17 +191,24 @@ 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)) {
|
||||
*result = 8;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
using _t = void (RecognizeSystem::*)(int );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigSocketWaitForReadyRead)) {
|
||||
*result = 8;
|
||||
*result = 9;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
using _t = void (RecognizeSystem::*)();
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigStartCompare)) {
|
||||
*result = 9;
|
||||
*result = 10;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -228,13 +244,13 @@ int RecognizeSystem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 10)
|
||||
if (_id < 11)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 10;
|
||||
_id -= 11;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 10)
|
||||
if (_id < 11)
|
||||
*reinterpret_cast<int*>(_a[0]) = -1;
|
||||
_id -= 10;
|
||||
_id -= 11;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
@@ -278,7 +294,7 @@ void RecognizeSystem::sigServerBlocked()
|
||||
}
|
||||
|
||||
// SIGNAL 6
|
||||
void RecognizeSystem::sigSaveLoginData(ServerAuthorization * _t1)
|
||||
void RecognizeSystem::sigAuth(ServerAuthorization * _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 6, _a);
|
||||
@@ -292,16 +308,23 @@ void RecognizeSystem::sigDeAuth(ServerDeAuthorization * _t1)
|
||||
}
|
||||
|
||||
// SIGNAL 8
|
||||
void RecognizeSystem::sigSocketWaitForReadyRead(int _t1)
|
||||
void RecognizeSystem::sigAnswerQueryToDB(QList<Instructor> * _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 8, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 9
|
||||
void RecognizeSystem::sigSocketWaitForReadyRead(int _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 9, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 10
|
||||
void RecognizeSystem::sigStartCompare()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
|
||||
QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
|
||||
@@ -23,8 +23,8 @@ QT_BEGIN_MOC_NAMESPACE
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED
|
||||
struct qt_meta_stringdata_InstructorsAndTraineesWidget_t {
|
||||
QByteArrayData data[25];
|
||||
char stringdata0[468];
|
||||
QByteArrayData data[26];
|
||||
char stringdata0[506];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
@@ -57,7 +57,8 @@ QT_MOC_LITERAL(20, 334, 22), // "ServerDeAuthorization*"
|
||||
QT_MOC_LITERAL(21, 357, 12), // "serverDeAuth"
|
||||
QT_MOC_LITERAL(22, 370, 28), // "on_btnConnectionToDB_clicked"
|
||||
QT_MOC_LITERAL(23, 399, 37), // "on_btnAuthorizationInstructor..."
|
||||
QT_MOC_LITERAL(24, 437, 30) // "on_btnUpdateStyleSheet_clicked"
|
||||
QT_MOC_LITERAL(24, 437, 30), // "on_btnUpdateStyleSheet_clicked"
|
||||
QT_MOC_LITERAL(25, 468, 37) // "on_btnQueryGetListInstructors..."
|
||||
|
||||
},
|
||||
"InstructorsAndTraineesWidget\0"
|
||||
@@ -73,7 +74,8 @@ QT_MOC_LITERAL(24, 437, 30) // "on_btnUpdateStyleSheet_clicked"
|
||||
"ServerDeAuthorization*\0serverDeAuth\0"
|
||||
"on_btnConnectionToDB_clicked\0"
|
||||
"on_btnAuthorizationInstructor_clicked\0"
|
||||
"on_btnUpdateStyleSheet_clicked"
|
||||
"on_btnUpdateStyleSheet_clicked\0"
|
||||
"on_btnQueryGetListInstructors_clicked"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
@@ -83,7 +85,7 @@ static const uint qt_meta_data_InstructorsAndTraineesWidget[] = {
|
||||
8, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
12, 14, // methods
|
||||
13, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
@@ -91,20 +93,21 @@ static const uint qt_meta_data_InstructorsAndTraineesWidget[] = {
|
||||
6, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 1, 74, 2, 0x06 /* Public */,
|
||||
4, 2, 77, 2, 0x06 /* Public */,
|
||||
7, 1, 82, 2, 0x06 /* Public */,
|
||||
9, 1, 85, 2, 0x06 /* Public */,
|
||||
11, 1, 88, 2, 0x06 /* Public */,
|
||||
12, 1, 91, 2, 0x06 /* Public */,
|
||||
1, 1, 79, 2, 0x06 /* Public */,
|
||||
4, 2, 82, 2, 0x06 /* Public */,
|
||||
7, 1, 87, 2, 0x06 /* Public */,
|
||||
9, 1, 90, 2, 0x06 /* Public */,
|
||||
11, 1, 93, 2, 0x06 /* Public */,
|
||||
12, 1, 96, 2, 0x06 /* Public */,
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
15, 1, 94, 2, 0x0a /* Public */,
|
||||
16, 1, 97, 2, 0x0a /* Public */,
|
||||
19, 1, 100, 2, 0x0a /* Public */,
|
||||
22, 0, 103, 2, 0x08 /* Private */,
|
||||
23, 0, 104, 2, 0x08 /* Private */,
|
||||
24, 0, 105, 2, 0x08 /* Private */,
|
||||
15, 1, 99, 2, 0x0a /* Public */,
|
||||
16, 1, 102, 2, 0x0a /* Public */,
|
||||
19, 1, 105, 2, 0x0a /* Public */,
|
||||
22, 0, 108, 2, 0x08 /* Private */,
|
||||
23, 0, 109, 2, 0x08 /* Private */,
|
||||
24, 0, 110, 2, 0x08 /* Private */,
|
||||
25, 0, 111, 2, 0x08 /* Private */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void, QMetaType::QString, 3,
|
||||
@@ -120,6 +123,7 @@ static const uint qt_meta_data_InstructorsAndTraineesWidget[] = {
|
||||
QMetaType::Void, 0x80000000 | 20, 21,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
|
||||
0 // eod
|
||||
@@ -143,6 +147,7 @@ void InstructorsAndTraineesWidget::qt_static_metacall(QObject *_o, QMetaObject::
|
||||
case 9: _t->on_btnConnectionToDB_clicked(); break;
|
||||
case 10: _t->on_btnAuthorizationInstructor_clicked(); break;
|
||||
case 11: _t->on_btnUpdateStyleSheet_clicked(); break;
|
||||
case 12: _t->on_btnQueryGetListInstructors_clicked(); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::IndexOfMethod) {
|
||||
@@ -221,13 +226,13 @@ int InstructorsAndTraineesWidget::qt_metacall(QMetaObject::Call _c, int _id, voi
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 12)
|
||||
if (_id < 13)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 12;
|
||||
_id -= 13;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 12)
|
||||
if (_id < 13)
|
||||
*reinterpret_cast<int*>(_a[0]) = -1;
|
||||
_id -= 12;
|
||||
_id -= 13;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "../../../InstructorsAndTrainees/connectorToServer/connectortoserver.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#include <QtCore/QList>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'connectortoserver.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_ConnectorToServer_t {
|
||||
QByteArrayData data[20];
|
||||
char stringdata0[298];
|
||||
QByteArrayData data[27];
|
||||
char stringdata0[414];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
@@ -46,12 +47,19 @@ QT_MOC_LITERAL(10, 133, 11), // "SendSystem*"
|
||||
QT_MOC_LITERAL(11, 145, 10), // "sendSystem"
|
||||
QT_MOC_LITERAL(12, 156, 19), // "sigSendAutorization"
|
||||
QT_MOC_LITERAL(13, 176, 21), // "sigSendDeAutorization"
|
||||
QT_MOC_LITERAL(14, 198, 14), // "sigLoginResult"
|
||||
QT_MOC_LITERAL(15, 213, 20), // "ServerAuthorization*"
|
||||
QT_MOC_LITERAL(16, 234, 10), // "serverAuth"
|
||||
QT_MOC_LITERAL(17, 245, 16), // "sigDeLoginResult"
|
||||
QT_MOC_LITERAL(18, 262, 22), // "ServerDeAuthorization*"
|
||||
QT_MOC_LITERAL(19, 285, 12) // "serverDeAuth"
|
||||
QT_MOC_LITERAL(14, 198, 16), // "sigSendQueryToDB"
|
||||
QT_MOC_LITERAL(15, 215, 14), // "sigLoginResult"
|
||||
QT_MOC_LITERAL(16, 230, 20), // "ServerAuthorization*"
|
||||
QT_MOC_LITERAL(17, 251, 10), // "serverAuth"
|
||||
QT_MOC_LITERAL(18, 262, 16), // "sigDeLoginResult"
|
||||
QT_MOC_LITERAL(19, 279, 22), // "ServerDeAuthorization*"
|
||||
QT_MOC_LITERAL(20, 302, 12), // "serverDeAuth"
|
||||
QT_MOC_LITERAL(21, 315, 15), // "signal_UpdateDB"
|
||||
QT_MOC_LITERAL(22, 331, 14), // "treeInstructor"
|
||||
QT_MOC_LITERAL(23, 346, 11), // "treeTrainee"
|
||||
QT_MOC_LITERAL(24, 358, 20), // "slot_AnswerQueryToDB"
|
||||
QT_MOC_LITERAL(25, 379, 18), // "QList<Instructor>*"
|
||||
QT_MOC_LITERAL(26, 398, 15) // "listInstructors"
|
||||
|
||||
},
|
||||
"ConnectorToServer\0sigSetConnect\0\0"
|
||||
@@ -59,9 +67,13 @@ QT_MOC_LITERAL(19, 285, 12) // "serverDeAuth"
|
||||
"thread\0sigInitializeClient\0RecognizeSystem*\0"
|
||||
"recognizeSystem\0SendSystem*\0sendSystem\0"
|
||||
"sigSendAutorization\0sigSendDeAutorization\0"
|
||||
"sigLoginResult\0ServerAuthorization*\0"
|
||||
"serverAuth\0sigDeLoginResult\0"
|
||||
"ServerDeAuthorization*\0serverDeAuth"
|
||||
"sigSendQueryToDB\0sigLoginResult\0"
|
||||
"ServerAuthorization*\0serverAuth\0"
|
||||
"sigDeLoginResult\0ServerDeAuthorization*\0"
|
||||
"serverDeAuth\0signal_UpdateDB\0"
|
||||
"treeInstructor\0treeTrainee\0"
|
||||
"slot_AnswerQueryToDB\0QList<Instructor>*\0"
|
||||
"listInstructors"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
@@ -71,28 +83,38 @@ static const uint qt_meta_data_ConnectorToServer[] = {
|
||||
8, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
6, 14, // methods
|
||||
9, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
6, // signalCount
|
||||
8, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 2, 44, 2, 0x06 /* Public */,
|
||||
7, 3, 49, 2, 0x06 /* Public */,
|
||||
12, 0, 56, 2, 0x06 /* Public */,
|
||||
13, 0, 57, 2, 0x06 /* Public */,
|
||||
14, 1, 58, 2, 0x06 /* Public */,
|
||||
17, 1, 61, 2, 0x06 /* Public */,
|
||||
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 */,
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
24, 1, 85, 2, 0x0a /* Public */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, 4, 6,
|
||||
QMetaType::Void, 0x80000000 | 8, 0x80000000 | 10, 0x80000000 | 5, 9, 11, 6,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, 0x80000000 | 15, 16,
|
||||
QMetaType::Void, 0x80000000 | 18, 19,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, 0x80000000 | 16, 17,
|
||||
QMetaType::Void, 0x80000000 | 19, 20,
|
||||
QMetaType::Void, QMetaType::Bool, QMetaType::Bool, 22, 23,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void, 0x80000000 | 25, 26,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
@@ -107,8 +129,11 @@ void ConnectorToServer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, in
|
||||
case 1: _t->sigInitializeClient((*reinterpret_cast< RecognizeSystem*(*)>(_a[1])),(*reinterpret_cast< SendSystem*(*)>(_a[2])),(*reinterpret_cast< QThread*(*)>(_a[3]))); break;
|
||||
case 2: _t->sigSendAutorization(); break;
|
||||
case 3: _t->sigSendDeAutorization(); break;
|
||||
case 4: _t->sigLoginResult((*reinterpret_cast< ServerAuthorization*(*)>(_a[1]))); break;
|
||||
case 5: _t->sigDeLoginResult((*reinterpret_cast< ServerDeAuthorization*(*)>(_a[1]))); break;
|
||||
case 4: _t->sigSendQueryToDB(); break;
|
||||
case 5: _t->sigLoginResult((*reinterpret_cast< ServerAuthorization*(*)>(_a[1]))); break;
|
||||
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]))); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
@@ -154,17 +179,31 @@ void ConnectorToServer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, in
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
using _t = void (ConnectorToServer::*)();
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ConnectorToServer::sigSendQueryToDB)) {
|
||||
*result = 4;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
using _t = void (ConnectorToServer::*)(ServerAuthorization * );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ConnectorToServer::sigLoginResult)) {
|
||||
*result = 4;
|
||||
*result = 5;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
using _t = void (ConnectorToServer::*)(ServerDeAuthorization * );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ConnectorToServer::sigDeLoginResult)) {
|
||||
*result = 5;
|
||||
*result = 6;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
using _t = void (ConnectorToServer::*)(bool , bool );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ConnectorToServer::signal_UpdateDB)) {
|
||||
*result = 7;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -200,13 +239,13 @@ int ConnectorToServer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 6)
|
||||
if (_id < 9)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 6;
|
||||
_id -= 9;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 6)
|
||||
if (_id < 9)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 6;
|
||||
_id -= 9;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
@@ -238,17 +277,30 @@ void ConnectorToServer::sigSendDeAutorization()
|
||||
}
|
||||
|
||||
// SIGNAL 4
|
||||
void ConnectorToServer::sigLoginResult(ServerAuthorization * _t1)
|
||||
void ConnectorToServer::sigSendQueryToDB()
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 4, _a);
|
||||
QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
|
||||
}
|
||||
|
||||
// SIGNAL 5
|
||||
void ConnectorToServer::sigDeLoginResult(ServerDeAuthorization * _t1)
|
||||
void ConnectorToServer::sigLoginResult(ServerAuthorization * _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 5, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 6
|
||||
void ConnectorToServer::sigDeLoginResult(ServerDeAuthorization * _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 6, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 7
|
||||
void ConnectorToServer::signal_UpdateDB(bool _t1, bool _t2)
|
||||
{
|
||||
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, 7, _a);
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
|
||||
@@ -42,6 +42,7 @@ public:
|
||||
QLabel *lblLoggedInInstructor;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QToolButton *btnUpdateStyleSheet;
|
||||
QToolButton *btnQueryGetListInstructors;
|
||||
|
||||
void setupUi(QWidget *InstructorsAndTraineesWidget)
|
||||
{
|
||||
@@ -144,6 +145,12 @@ public:
|
||||
|
||||
horizontalLayout_1->addWidget(btnUpdateStyleSheet);
|
||||
|
||||
btnQueryGetListInstructors = new QToolButton(groupBox);
|
||||
btnQueryGetListInstructors->setObjectName(QString::fromUtf8("btnQueryGetListInstructors"));
|
||||
btnQueryGetListInstructors->setMinimumSize(QSize(58, 58));
|
||||
|
||||
horizontalLayout_1->addWidget(btnQueryGetListInstructors);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(horizontalLayout_1, 0, 0, 1, 1);
|
||||
|
||||
@@ -170,6 +177,7 @@ public:
|
||||
lblLoggedInPrefix->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Logged in Instructor: ", nullptr));
|
||||
lblLoggedInInstructor->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "none", nullptr));
|
||||
btnUpdateStyleSheet->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Update StyleSheet", nullptr));
|
||||
btnQueryGetListInstructors->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "GET_LIST_INSTRUCTORS", nullptr));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user