feat: send xml answer

This commit is contained in:
semenov
2024-08-15 15:30:22 +03:00
parent 7ba182b6cf
commit 883ac44e6b
41 changed files with 1499 additions and 876 deletions

View File

@@ -6,7 +6,7 @@
#include <QTcpSocket>
#include <mainwindow.h>
#include <Core\tools.h>
#include <Core\UpdateController.h>
#include <Core\updatecontroller.h>
class UpdateController;
@@ -18,7 +18,7 @@ class RecognizeSystem : public QObject
public:
explicit RecognizeSystem(QObject *parent = 0);
~RecognizeSystem();
void Initialize(UpdateController* updateController);
void Initialize(UpdateController* updateController,DataParser *dataParser);
void SetSocket(QTcpSocket *socket);
void Recognize();
@@ -27,9 +27,11 @@ signals:
void LoadComplete();
void onNeedUpdate(bool flag);
void onSendDebugLog(QString message);
void SockedDisabled();
private:
UpdateController *updateController;
DataParser *dataParser;
QTcpSocket *socket;
PacketType packetType;
QString message;
@@ -40,6 +42,8 @@ private:
qint64 fileSize;
int countSend;
void XMLParser(QByteArray array);
};
#endif // RECOGNIZESYSTEM_H