Начал реализовывать обмен запросами к БД

This commit is contained in:
krivoshein
2024-12-06 11:15:02 +03:00
parent 53b37240eb
commit 2f48cf3921
107 changed files with 938 additions and 1189 deletions

Binary file not shown.

View File

@@ -1,71 +1,90 @@
# ninja log v5
738 3970 7549118089860951 CMakeFiles/ServerLMS.dir/Systems/processingsystem.cpp.obj 64946e3309bfc754
1226 1269 7548532014896390 ServerLMS_autogen/EWIEGA46WW/qrc_resources.cpp 9bce64f5ef0262e2
8 55 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
8 55 0 ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
727 3828 7549118088456708 CMakeFiles/ServerLMS.dir/clienthandler.cpp.obj 6c16bf194fe85608
8 55 0 ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
1168 3150 7548373207023899 CMakeFiles/ServerLMS.dir/messangerwidget.cpp.obj 8dd57f666ed5ecf4
1305 1392 7548532016129887 CMakeFiles/ServerLMS.dir/ServerLMS_autogen/EWIEGA46WW/qrc_resources.cpp.obj f93621c79a78fad0
59 2292 7549125556226714 CMakeFiles/ServerLMS.dir/serverlmswidget.cpp.obj 12010b53b3caa3fc
3 3270 7549997041454778 build.ninja 80e6aedf30bdcc22
8 55 0 D:/LMS/ServerLMS/Debug64/CMakeFiles/ServerLMS_autogen a1ba014d73005738
8 55 0 CMakeFiles/ServerLMS_autogen a1ba014d73005738
2292 2745 7549125560741473 libServerLMS.dll.a fec6fbb0697e8d71
37 46 0 clean 9c4b4372737ab8da
722 3831 7549118088486627 CMakeFiles/ServerLMS.dir/ServerLMS_autogen/mocs_compilation.cpp.obj 40e4c8c7d98890e8
379 1683 7548534869626978 CMakeFiles/ServerLMS.dir/providerdblms.cpp.obj f56962914220ed2d
731 3964 7549118089787989 CMakeFiles/ServerLMS.dir/Systems/recognizesystem.cpp.obj f698d155fbad3bd2
2292 2745 7549125560741473 libServerLMS.dll fec6fbb0697e8d71
1297 2648 7548532028690448 CMakeFiles/ServerLMS.dir/Systems/tools.cpp.obj 81bfa701d65b5429
15 37 0 CMakeFiles/clean.additional 7155004b3956b606
734 4008 7549118090233865 CMakeFiles/ServerLMS.dir/Systems/updatecontroller.cpp.obj c4c12bda48d8fa92
736 3869 7549118088877775 CMakeFiles/ServerLMS.dir/Systems/dataparser.cpp.obj b273ef6b79a34bf
8 55 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
729 3840 7549118088596323 CMakeFiles/ServerLMS.dir/multithreadserver.cpp.obj 8ac2c4a8e2ef203c
1284 2596 7548532028126673 CMakeFiles/ServerLMS.dir/Systems/logger.cpp.obj 68e3223fc0caab27
1226 1269 7548532014896390 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/EWIEGA46WW/qrc_resources.cpp 9bce64f5ef0262e2
741 3823 7549118088405427 CMakeFiles/ServerLMS.dir/Systems/sendsystem.cpp.obj d73c57350f364b58
8 620 0 CMakeFiles/ServerLMS_autogen a1ba014d73005738
8 620 0 ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
8 620 0 ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
8 620 0 D:/LMS/ServerLMS/Debug64/CMakeFiles/ServerLMS_autogen a1ba014d73005738
8 620 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
8 620 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
631 3169 7550042169912346 CMakeFiles/ServerLMS.dir/Systems/recognizesystem.cpp.obj f698d155fbad3bd2
628 3224 7550042170483312 CMakeFiles/ServerLMS.dir/multithreadserver.cpp.obj 8ac2c4a8e2ef203c
640 3276 7550042171011162 CMakeFiles/ServerLMS.dir/Systems/processingsystem.cpp.obj 64946e3309bfc754
633 3299 7550042171170749 CMakeFiles/ServerLMS.dir/Systems/updatecontroller.cpp.obj c4c12bda48d8fa92
643 3330 7550042171563312 CMakeFiles/ServerLMS.dir/Systems/sendsystem.cpp.obj d73c57350f364b58
636 3529 7550042173541128 CMakeFiles/ServerLMS.dir/Systems/dataparser.cpp.obj b273ef6b79a34bf
623 3530 7550042173551107 CMakeFiles/ServerLMS.dir/serverlmswidget.cpp.obj 12010b53b3caa3fc
626 3612 7550042174342071 CMakeFiles/ServerLMS.dir/clienthandler.cpp.obj 6c16bf194fe85608
620 3965 7550042177904480 CMakeFiles/ServerLMS.dir/ServerLMS_autogen/mocs_compilation.cpp.obj 40e4c8c7d98890e8
3965 4463 7550042182866266 libServerLMS.dll fec6fbb0697e8d71
3965 4463 7550042182866266 libServerLMS.dll.a fec6fbb0697e8d71
19 549 0 CMakeFiles/ServerLMS_autogen a1ba014d73005738
19 549 0 ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
19 549 0 ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
19 549 0 D:/LMS/ServerLMS/Debug64/CMakeFiles/ServerLMS_autogen a1ba014d73005738
19 549 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
19 549 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
569 3070 7550109271713645 CMakeFiles/ServerLMS.dir/Systems/processingsystem.cpp.obj 64946e3309bfc754
559 3181 7550109272813721 CMakeFiles/ServerLMS.dir/Systems/recognizesystem.cpp.obj f698d155fbad3bd2
562 3281 7550109273823126 CMakeFiles/ServerLMS.dir/Systems/updatecontroller.cpp.obj c4c12bda48d8fa92
572 3326 7550109274281903 CMakeFiles/ServerLMS.dir/Systems/sendsystem.cpp.obj d73c57350f364b58
555 3385 7550109274862336 CMakeFiles/ServerLMS.dir/clienthandler.cpp.obj 6c16bf194fe85608
550 3438 7550109275395266 CMakeFiles/ServerLMS.dir/ServerLMS_autogen/mocs_compilation.cpp.obj 40e4c8c7d98890e8
566 3508 7550109276093391 CMakeFiles/ServerLMS.dir/Systems/dataparser.cpp.obj b273ef6b79a34bf
557 3559 7550109276602373 CMakeFiles/ServerLMS.dir/multithreadserver.cpp.obj 8ac2c4a8e2ef203c
552 3692 7550109277923319 CMakeFiles/ServerLMS.dir/serverlmswidget.cpp.obj 12010b53b3caa3fc
3692 4166 7550109282652827 libServerLMS.dll fec6fbb0697e8d71
3692 4166 7550109282652827 libServerLMS.dll.a fec6fbb0697e8d71
19 60 0 CMakeFiles/ServerLMS_autogen a1ba014d73005738
19 60 0 ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
19 60 0 ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
19 60 0 D:/LMS/ServerLMS/Debug64/CMakeFiles/ServerLMS_autogen a1ba014d73005738
19 60 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
19 60 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
60 2213 7550153358132948 CMakeFiles/ServerLMS.dir/Systems/dataparser.cpp.obj b273ef6b79a34bf
2213 2674 7550153362733864 libServerLMS.dll fec6fbb0697e8d71
2213 2674 7550153362733864 libServerLMS.dll.a fec6fbb0697e8d71
19 60 0 CMakeFiles/ServerLMS_autogen a1ba014d73005738
19 60 0 D:/LMS/ServerLMS/Debug64/CMakeFiles/ServerLMS_autogen a1ba014d73005738
3 3270 7550820203148733 build.ninja 80e6aedf30bdcc22
552 3692 7550109277923319 CMakeFiles/ServerLMS.dir/serverlmswidget.cpp.obj 12010b53b3caa3fc
1168 3150 7548373207023899 CMakeFiles/ServerLMS.dir/messangerwidget.cpp.obj 8dd57f666ed5ecf4
19 60 0 ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
555 3385 7550109274862336 CMakeFiles/ServerLMS.dir/clienthandler.cpp.obj 6c16bf194fe85608
1305 1392 7548532016129887 CMakeFiles/ServerLMS.dir/ServerLMS_autogen/EWIEGA46WW/qrc_resources.cpp.obj f93621c79a78fad0
19 60 0 ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
19 60 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
1226 1269 7548532014896390 ServerLMS_autogen/EWIEGA46WW/qrc_resources.cpp 9bce64f5ef0262e2
569 3070 7550109271713645 CMakeFiles/ServerLMS.dir/Systems/processingsystem.cpp.obj 64946e3309bfc754
37 46 0 clean 9c4b4372737ab8da
572 3326 7550109274281903 CMakeFiles/ServerLMS.dir/Systems/sendsystem.cpp.obj d73c57350f364b58
1226 1269 7548532014896390 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/EWIEGA46WW/qrc_resources.cpp 9bce64f5ef0262e2
1284 2596 7548532028126673 CMakeFiles/ServerLMS.dir/Systems/logger.cpp.obj 68e3223fc0caab27
557 3559 7550109276602373 CMakeFiles/ServerLMS.dir/multithreadserver.cpp.obj 8ac2c4a8e2ef203c
19 60 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
1297 2648 7548532028690448 CMakeFiles/ServerLMS.dir/Systems/tools.cpp.obj 81bfa701d65b5429
60 2213 7550153358132948 CMakeFiles/ServerLMS.dir/Systems/dataparser.cpp.obj b273ef6b79a34bf
562 3281 7550109273823126 CMakeFiles/ServerLMS.dir/Systems/updatecontroller.cpp.obj c4c12bda48d8fa92
15 37 0 CMakeFiles/clean.additional 7155004b3956b606
2213 2674 7550153362733864 libServerLMS.dll fec6fbb0697e8d71
559 3181 7550109272813721 CMakeFiles/ServerLMS.dir/Systems/recognizesystem.cpp.obj f698d155fbad3bd2
379 1683 7548534869626978 CMakeFiles/ServerLMS.dir/providerdblms.cpp.obj f56962914220ed2d
550 3438 7550109275395266 CMakeFiles/ServerLMS.dir/ServerLMS_autogen/mocs_compilation.cpp.obj 40e4c8c7d98890e8
29 81 0 CMakeFiles/ServerLMS_autogen a1ba014d73005738
29 81 0 ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
29 81 0 ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
29 81 0 D:/LMS/ServerLMS/Debug64/CMakeFiles/ServerLMS_autogen a1ba014d73005738
29 81 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
29 81 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
107 1361 7550931469244759 CMakeFiles/ServerLMS.dir/Systems/tools.cpp.obj 81bfa701d65b5429
91 2925 7550931484874138 CMakeFiles/ServerLMS.dir/Systems/recognizesystem.cpp.obj f698d155fbad3bd2
89 3082 7550931486427719 CMakeFiles/ServerLMS.dir/multithreadserver.cpp.obj 8ac2c4a8e2ef203c
100 3098 7550931486609521 CMakeFiles/ServerLMS.dir/Systems/processingsystem.cpp.obj 64946e3309bfc754
103 3176 7550931487380777 CMakeFiles/ServerLMS.dir/Systems/sendsystem.cpp.obj d73c57350f364b58
86 3248 7550931488108225 CMakeFiles/ServerLMS.dir/clienthandler.cpp.obj 6c16bf194fe85608
96 3273 7550931488352638 CMakeFiles/ServerLMS.dir/Systems/dataparser.cpp.obj b273ef6b79a34bf
94 3315 7550931488768781 CMakeFiles/ServerLMS.dir/Systems/updatecontroller.cpp.obj c4c12bda48d8fa92
82 3395 7550931489527995 CMakeFiles/ServerLMS.dir/ServerLMS_autogen/mocs_compilation.cpp.obj 40e4c8c7d98890e8
84 3526 7550931490862705 CMakeFiles/ServerLMS.dir/serverlmswidget.cpp.obj 12010b53b3caa3fc
3526 4011 7550931495716225 libServerLMS.dll fec6fbb0697e8d71
3526 4011 7550931495716225 libServerLMS.dll.a fec6fbb0697e8d71
20 663 0 CMakeFiles/ServerLMS_autogen a1ba014d73005738
20 663 0 ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
20 663 0 ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
20 663 0 D:/LMS/ServerLMS/Debug64/CMakeFiles/ServerLMS_autogen a1ba014d73005738
20 663 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
20 663 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
690 1824 7550974838970562 CMakeFiles/ServerLMS.dir/providerdblms.cpp.obj f56962914220ed2d
687 3610 7550974856822851 CMakeFiles/ServerLMS.dir/Systems/sendsystem.cpp.obj d73c57350f364b58
663 3615 7550974856865148 CMakeFiles/ServerLMS.dir/ServerLMS_autogen/mocs_compilation.cpp.obj 40e4c8c7d98890e8
681 3687 7550974857571032 CMakeFiles/ServerLMS.dir/Systems/dataparser.cpp.obj b273ef6b79a34bf
673 3718 7550974857905396 CMakeFiles/ServerLMS.dir/Systems/recognizesystem.cpp.obj f698d155fbad3bd2
670 3726 7550974857986579 CMakeFiles/ServerLMS.dir/multithreadserver.cpp.obj 8ac2c4a8e2ef203c
675 3804 7550974858703293 CMakeFiles/ServerLMS.dir/Systems/updatecontroller.cpp.obj c4c12bda48d8fa92
684 3913 7550974859786429 CMakeFiles/ServerLMS.dir/Systems/processingsystem.cpp.obj 64946e3309bfc754
668 3914 7550974859796404 CMakeFiles/ServerLMS.dir/clienthandler.cpp.obj 6c16bf194fe85608
666 4068 7550974861408969 CMakeFiles/ServerLMS.dir/serverlmswidget.cpp.obj 12010b53b3caa3fc
4068 4538 7550974866089734 libServerLMS.dll fec6fbb0697e8d71
4068 4538 7550974866089734 libServerLMS.dll.a fec6fbb0697e8d71
19 64 0 CMakeFiles/ServerLMS_autogen a1ba014d73005738
19 64 0 ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
19 64 0 ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
19 64 0 D:/LMS/ServerLMS/Debug64/CMakeFiles/ServerLMS_autogen a1ba014d73005738
19 64 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
19 64 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
64 2240 7551026245885328 CMakeFiles/ServerLMS.dir/Systems/dataparser.cpp.obj b273ef6b79a34bf
2240 2708 7551026250556405 libServerLMS.dll fec6fbb0697e8d71
2240 2708 7551026250556405 libServerLMS.dll.a fec6fbb0697e8d71
33 692 0 CMakeFiles/ServerLMS_autogen a1ba014d73005738
33 692 0 ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
33 692 0 ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
33 692 0 D:/LMS/ServerLMS/Debug64/CMakeFiles/ServerLMS_autogen a1ba014d73005738
33 692 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
33 692 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
712 3908 7551749542533080 CMakeFiles/ServerLMS.dir/Systems/processingsystem.cpp.obj 64946e3309bfc754
700 3928 7551749542724936 CMakeFiles/ServerLMS.dir/multithreadserver.cpp.obj 8ac2c4a8e2ef203c
692 3929 7551749542724936 CMakeFiles/ServerLMS.dir/ServerLMS_autogen/mocs_compilation.cpp.obj 40e4c8c7d98890e8
702 3934 7551749542785445 CMakeFiles/ServerLMS.dir/Systems/recognizesystem.cpp.obj f698d155fbad3bd2
715 3935 7551749542805410 CMakeFiles/ServerLMS.dir/Systems/sendsystem.cpp.obj d73c57350f364b58
709 3941 7551749542845286 CMakeFiles/ServerLMS.dir/Systems/dataparser.cpp.obj b273ef6b79a34bf
705 3942 7551749542875211 CMakeFiles/ServerLMS.dir/Systems/updatecontroller.cpp.obj c4c12bda48d8fa92
697 3952 7551749542966157 CMakeFiles/ServerLMS.dir/clienthandler.cpp.obj 6c16bf194fe85608
695 3966 7551749543026196 CMakeFiles/ServerLMS.dir/serverlmswidget.cpp.obj 12010b53b3caa3fc
3966 4694 7551749550370154 libServerLMS.dll fec6fbb0697e8d71
3966 4694 7551749550370154 libServerLMS.dll.a fec6fbb0697e8d71

View File

@@ -1,7 +1,7 @@
# Generated by CMake. Changes will be overwritten.
D:/LMS/ServerLMS/ServerLMS/Systems/dataparser.cpp
D:/LMS/ServerLMS/ServerLMS/serverlmswidget.h
D:/LMS/ServerLMS/ServerLMS/providerdblms.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/clienthandler.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/dataparser.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/serverlmswidget.cpp
@@ -9,29 +9,29 @@ D:/LMS/ServerLMS/ServerLMS/serverlmswidget.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/logger.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/tools.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/processingsystem.h
D:/LMS/ServerLMS/ServerLMS/Systems/updatecontroller.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/recognizesystem.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/updatecontroller.h
D:/LMS/ServerLMS/ServerLMS/Systems/processingsystem.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/typesDataServerClient.h
D:/LMS/ServerLMS/ServerLMS/Systems/tools.h
D:/LMS/ServerLMS/ServerLMS/clienthandler.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/typesDataServerClient.h
D:/LMS/ServerLMS/ServerLMS/Systems/processingsystem.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/dataparser.cpp
D:/LMS/ServerLMS/ServerLMS/serverlmswidget.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/ServerLMS_global.h
D:/LMS/ServerLMS/ServerLMS/Systems/sendsystem.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/multithreadserver.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Client.h
D:/LMS/ServerLMS/ServerLMS/Systems/sendsystem.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/ServerLMS_global.h
D:/LMS/ServerLMS/ServerLMS/providerdblms.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/recognizesystem.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/logger.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/sendsystem.cpp
D:/LMS/ServerLMS/ServerLMS/multithreadserver.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/updatecontroller.cpp
D:/LMS/ServerLMS/ServerLMS/providerdblms.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/clienthandler.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/processingsystem.cpp

View File

@@ -22,8 +22,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_ServerLMSWidget_t {
QByteArrayData data[25];
char stringdata0[321];
QByteArrayData data[26];
char stringdata0[338];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -49,14 +49,15 @@ QT_MOC_LITERAL(13, 140, 6), // "client"
QT_MOC_LITERAL(14, 147, 21), // "slotUpdateListClients"
QT_MOC_LITERAL(15, 169, 22), // "slot_BlockAutorization"
QT_MOC_LITERAL(16, 192, 5), // "block"
QT_MOC_LITERAL(17, 198, 21), // "slot_msgToClientReady"
QT_MOC_LITERAL(18, 220, 5), // "login"
QT_MOC_LITERAL(19, 226, 4), // "text"
QT_MOC_LITERAL(20, 231, 12), // "slotAddToLog"
QT_MOC_LITERAL(21, 244, 3), // "msg"
QT_MOC_LITERAL(22, 248, 25), // "on_btnStartServer_clicked"
QT_MOC_LITERAL(23, 274, 24), // "on_btnStopServer_clicked"
QT_MOC_LITERAL(24, 299, 21) // "on_btnTaskSet_clicked"
QT_MOC_LITERAL(17, 198, 16), // "slot_AuthChanged"
QT_MOC_LITERAL(18, 215, 21), // "slot_msgToClientReady"
QT_MOC_LITERAL(19, 237, 5), // "login"
QT_MOC_LITERAL(20, 243, 4), // "text"
QT_MOC_LITERAL(21, 248, 12), // "slotAddToLog"
QT_MOC_LITERAL(22, 261, 3), // "msg"
QT_MOC_LITERAL(23, 265, 25), // "on_btnStartServer_clicked"
QT_MOC_LITERAL(24, 291, 24), // "on_btnStopServer_clicked"
QT_MOC_LITERAL(25, 316, 21) // "on_btnTaskSet_clicked"
},
"ServerLMSWidget\0sigRecognize\0\0"
@@ -65,8 +66,9 @@ QT_MOC_LITERAL(24, 299, 21) // "on_btnTaskSet_clicked"
"qintptr\0descriptor\0ClientHandler*\0"
"client\0slotUpdateListClients\0"
"slot_BlockAutorization\0block\0"
"slot_msgToClientReady\0login\0text\0"
"slotAddToLog\0msg\0on_btnStartServer_clicked\0"
"slot_AuthChanged\0slot_msgToClientReady\0"
"login\0text\0slotAddToLog\0msg\0"
"on_btnStartServer_clicked\0"
"on_btnStopServer_clicked\0on_btnTaskSet_clicked"
};
#undef QT_MOC_LITERAL
@@ -77,7 +79,7 @@ static const uint qt_meta_data_ServerLMSWidget[] = {
8, // revision
0, // classname
0, 0, // classinfo
12, 14, // methods
13, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
@@ -85,20 +87,21 @@ static const uint qt_meta_data_ServerLMSWidget[] = {
3, // signalCount
// signals: name, argc, parameters, tag, flags
1, 0, 74, 2, 0x06 /* Public */,
3, 0, 75, 2, 0x06 /* Public */,
5, 1, 76, 2, 0x06 /* Public */,
1, 0, 79, 2, 0x06 /* Public */,
3, 0, 80, 2, 0x06 /* Public */,
5, 1, 81, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
7, 1, 79, 2, 0x0a /* Public */,
9, 2, 82, 2, 0x0a /* Public */,
14, 0, 87, 2, 0x0a /* Public */,
15, 1, 88, 2, 0x0a /* Public */,
17, 2, 91, 2, 0x08 /* Private */,
20, 1, 96, 2, 0x08 /* Private */,
22, 0, 99, 2, 0x08 /* Private */,
23, 0, 100, 2, 0x08 /* Private */,
24, 0, 101, 2, 0x08 /* Private */,
7, 1, 84, 2, 0x0a /* Public */,
9, 2, 87, 2, 0x0a /* Public */,
14, 0, 92, 2, 0x0a /* Public */,
15, 1, 93, 2, 0x0a /* Public */,
17, 0, 96, 2, 0x0a /* Public */,
18, 2, 97, 2, 0x08 /* Private */,
21, 1, 102, 2, 0x08 /* Private */,
23, 0, 105, 2, 0x08 /* Private */,
24, 0, 106, 2, 0x08 /* Private */,
25, 0, 107, 2, 0x08 /* Private */,
// signals: parameters
QMetaType::Void,
@@ -110,8 +113,9 @@ static const uint qt_meta_data_ServerLMSWidget[] = {
QMetaType::Void, 0x80000000 | 10, 0x80000000 | 12, 11, 13,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 16,
QMetaType::Void, QMetaType::QString, QMetaType::QString, 18, 19,
QMetaType::Void, QMetaType::QString, 21,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, QMetaType::QString, 19, 20,
QMetaType::Void, QMetaType::QString, 22,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
@@ -133,11 +137,12 @@ void ServerLMSWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
case 4: _t->addClient((*reinterpret_cast< qintptr(*)>(_a[1])),(*reinterpret_cast< ClientHandler*(*)>(_a[2]))); break;
case 5: _t->slotUpdateListClients(); break;
case 6: _t->slot_BlockAutorization((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 7: _t->slot_msgToClientReady((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
case 8: _t->slotAddToLog((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 9: _t->on_btnStartServer_clicked(); break;
case 10: _t->on_btnStopServer_clicked(); break;
case 11: _t->on_btnTaskSet_clicked(); break;
case 7: _t->slot_AuthChanged(); break;
case 8: _t->slot_msgToClientReady((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
case 9: _t->slotAddToLog((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 10: _t->on_btnStartServer_clicked(); break;
case 11: _t->on_btnStopServer_clicked(); break;
case 12: _t->on_btnTaskSet_clicked(); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
@@ -206,13 +211,13 @@ int ServerLMSWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
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)
qt_static_metacall(this, _c, _id, _a);
_id -= 12;
_id -= 13;
}
return _id;
}

Binary file not shown.

Binary file not shown.

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.11.1, 2024-12-04T10:14:55. -->
<!-- Written by QtCreator 4.11.1, 2024-12-06T11:14:24. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>

View File

@@ -3,6 +3,7 @@
#include <QString>
#include <QTcpSocket>
#include "typesDataServerClient.h"
class Client
{
@@ -10,7 +11,8 @@ class Client
public:
Client(QString name, QString address, QString port,QObject *parent = nullptr):
login(""),
ready(false)
ready(false),
TypeClient(TypeClientAutorization::TYPE_SIMPLE)
{
this->name = name;
this->address = address;
@@ -59,6 +61,16 @@ public:
{
return isUnity;
}
void setTypeClient(TypeClientAutorization TypeClient)
{
this->TypeClient = TypeClient;
}
TypeClientAutorization getTypeClient()
{
return TypeClient;
}
void changePackageResponse()
{
isUnity = !isUnity;
@@ -77,6 +89,8 @@ private:
QString login;
bool ready;
bool isUnity = false;
TypeClientAutorization TypeClient;
};
#endif // CLIENT_H

View File

@@ -45,6 +45,8 @@ void DataParser::xmlParser(ClientHandler *client, QByteArray array)
clientAutorization.Password = value;
else if(name == "NumberOfScreen")
clientAutorization.NumberOfScreen = value.toInt();
else if(name == "TypeClient")
clientAutorization.TypeClient = (TypeClientAutorization)value.toInt();
}
processingSystem->processingClientAutorization(client, clientAutorization);
@@ -67,6 +69,24 @@ void DataParser::xmlParser(ClientHandler *client, QByteArray array)
processingSystem->processingClientDeAutorization(client, clientDeAutorization);
}
else if(xmlReader.name() == "QueryToDB")
{//Запрос к базе данных от клиента
ClientQueryToDB queryToDB;
/*Перебираем все атрибуты тега*/
foreach(const QXmlStreamAttribute &attr, xmlReader.attributes())
{
QString name = attr.name().toString();
QString value = attr.value().toString();
//addTextToLogger(name + ": " + value);
if(name == "TypeQuery")
queryToDB.typeQuery = (TypeQueryToDB)value.toInt();
}
processingSystem->processingClientQueryToDB(client, queryToDB);
}
else if(xmlReader.name() == "ClientMessage")
{//Сообщение от клиента
@@ -270,6 +290,28 @@ QByteArray DataParser::xmlAnswer_deAuthorization(bool result, QString login)
return xmlAnswer(listTag);
}
QByteArray DataParser::xmlAnswer_ClientQueryToDB(bool result, QList<Instructor> listInstructors)
{
QList<SXmlAnswerTag> listTag;
for(Instructor instructor : listInstructors)
{
SAttribute attribute1 = {"instructor_id", QString::number(instructor.getID())};
SAttribute attribute2 = {"name", instructor.getName()};
SAttribute attribute3 = {"login", instructor.getLogin()};
SAttribute attribute4 = {"password", instructor.getPassword()};
SAttribute attribute5 = {"is_admin", instructor.getIsAdmin() ? "true" : "false"};
SAttribute attribute6 = {"archived", instructor.getArchived() ? "true" : "false"};
SAttribute attribute7 = {"logged_in", instructor.getLoggedIn() ? "true" : "false"};
QList<SAttribute> listAttr = {attribute1, attribute2, attribute3, attribute4, attribute5, attribute6, attribute7};
SXmlAnswerTag tag = {"Instructor", listAttr};
listTag.append(tag);
}
return xmlAnswer(listTag, "ListInstructors");
}
QByteArray DataParser::xmlAnswer_message(QString text)
{
QList<SXmlAnswerTag> listTag;

View File

@@ -27,6 +27,9 @@ public:
QByteArray xmlAnswer(QList<SXmlAnswerTag> listTag,QString elemUp1 = "", QString elemUp2 = "");
QByteArray xmlAnswer_authorization(bool result, QString instructorName, QString clientName, QString accessType, QString login);
QByteArray xmlAnswer_deAuthorization(bool result, QString login);
QByteArray xmlAnswer_ClientQueryToDB(bool result, QList<Instructor> listInstructors);
QByteArray xmlAnswer_message(QString text);
QByteArray xmlAnswer_task(QString text);
QByteArray xmlAnswer_notify(QString code);

View File

@@ -48,6 +48,7 @@ void ProcessingSystem::processingClientAutorization(ClientHandler *client, Clien
{//Авторизуется инструктор
client->getClient()->setLogin(clientAutorization.Login);
client->getClient()->setTypeClient(clientAutorization.TypeClient);
emit sigUpdateListClients();
instructorName = providerDBLMS->getNameInstructorByLogin(clientAutorization.Login);
@@ -112,6 +113,24 @@ void ProcessingSystem::processingClientDeAutorization(ClientHandler *client, Cli
emit sigAuthChanged();
}
void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQueryToDB clientQueryToDB)
{
QByteArray arrayAnswer;
switch (clientQueryToDB.typeQuery)
{
case TypeQueryToDB::TYPE_QUERY_GET_LIST_INSTRUCTORS:
QList<Instructor> listInstructors = providerDBLMS->GetListAllInstructors();
arrayAnswer = dataParser->xmlAnswer_ClientQueryToDB(true, listInstructors);
break;
}
client->sendXmlAnswer(arrayAnswer);
//QString str = QString(arrayAnswer);
//logger->addTextToLogger("To Client: " + str);
}
void ProcessingSystem::processingClientMessage(ClientHandler *client, ClientMessage clientMessage)
{
QString peerAddress = client->getSocket()->peerAddress().toString();

View File

@@ -25,6 +25,7 @@ public:
void initialize(DataParser* dataParser,ServerLMSWidget *server);
void processingClientAutorization(ClientHandler *client, ClientAutorization clientAutorization);
void processingClientDeAutorization(ClientHandler *client, ClientDeAutorization clientDeAutorization);
void processingClientQueryToDB(ClientHandler *client, ClientQueryToDB clientQueryToDB);
void processingClientMessage(ClientHandler *client, ClientMessage clientMessage);
void processingClientNotify(ClientHandler *client, ClientNotify clientNotify);

View File

@@ -30,7 +30,9 @@ enum PacketType
TYPE_XMLANSWER = 8,
TYPE_QT = 9,
TYPE_DISABLE = 11,
TYPE_FILESIZE = 20
TYPE_FILESIZE = 20,
TYPE_GET_LIST_INSTRUCTORS = 100
};
class Tools {

View File

@@ -198,3 +198,21 @@ QString ProviderDBLMS::getNameInstructorByLogin(QString login)
mtxAccess.unlock();
return res;
}
QList<Instructor> ProviderDBLMS::GetListAllInstructors()
{
QList<Instructor> listInstructors;
mtxAccess.lock();
if(! dbLMS->DBisConnected())
{
mtxAccess.unlock();
return listInstructors;
}
listInstructors = dbLMS->getListInstructors();
mtxAccess.unlock();
return listInstructors;
}

View File

@@ -23,6 +23,9 @@ public:
bool deAuthorizationInstructor(QString login);
QString getNameInstructorByLogin(QString login);
//
QList<Instructor> GetListAllInstructors();
Q_SIGNALS:
//сигнал о блокировке авторизации
void signal_BlockAutorization(bool block);

View File

@@ -69,6 +69,8 @@ ServerLMSWidget::ServerLMSWidget(QWidget *parent) :
connect(processingSystem,&ProcessingSystem::sigLogMessage,logger,&Logger::addTextToLogger);
connect(this,&ServerLMSWidget::sigLog,logger,&Logger::addTextToLogger);
connect(processingSystem,&ProcessingSystem::sigAuthChanged,this, &ServerLMSWidget::slot_AuthChanged);
on_btnStartServer_clicked();
first = true;
@@ -189,6 +191,21 @@ void ServerLMSWidget::slot_BlockAutorization(bool block)
unBlockAutorization();
}
void ServerLMSWidget::slot_AuthChanged()
{
//Проходим все открытые сокеты
foreach(int idSocket, clientsMap.keys())
{
//Проверяем, есть ли клиенты TYPE_GUI
if(clientsMap[idSocket]->getClient()->getTypeClient() == TypeClientAutorization::TYPE_GUI)
{//Отправляем этому клиенту обновление списков
ClientQueryToDB queryToDB;
queryToDB.typeQuery = TypeQueryToDB::TYPE_QUERY_GET_LIST_INSTRUCTORS;
processingSystem->processingClientQueryToDB(clientsMap[idSocket], queryToDB);
}
}
}
void ServerLMSWidget::removeClient(int idSocket)
{
clientsMap.remove(idSocket);

View File

@@ -59,6 +59,7 @@ public slots:
void addClient(qintptr descriptor, ClientHandler *client);
void slotUpdateListClients();
void slot_BlockAutorization(bool block);
void slot_AuthChanged();
private slots:
//слот обработки сигнала о готовности нового сообщения на отправку клиенту от мессенджера

View File

@@ -37,12 +37,18 @@ struct SXmlAnswerTag
QList<SAttribute> attr;
};
enum TypeClientAutorization{
TYPE_SIMPLE = 0,
TYPE_GUI = 10
};
class ClientAutorization
{
public:
QString Login;
QString Password;
int NumberOfScreen;
TypeClientAutorization TypeClient;
};
class ClientDeAutorization
{
@@ -50,6 +56,15 @@ public:
QString Login;
};
enum TypeQueryToDB{
TYPE_QUERY_GET_LIST_INSTRUCTORS
};
class ClientQueryToDB{
public:
TypeQueryToDB typeQuery;
};
class ServerMessage
{
public: