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/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
|
||||
|
||||
Reference in New Issue
Block a user