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