feat: send xml answer

This commit is contained in:
semenov
2024-08-15 15:30:22 +03:00
parent f7ebfcca5f
commit 6878eb0697
41 changed files with 1499 additions and 876 deletions

View File

@@ -3,9 +3,11 @@
#include <QMainWindow>
#include <QDebug>
#include <QThread>
#include <Core/dataparser.h>
#include <Core/tcpclient.h>
#include <Core/screenchecker.h>
#include <Core/updatecontroller.h>
#include "Datas.h"
QT_BEGIN_NAMESPACE
@@ -23,13 +25,18 @@ class MainWindow : public QMainWindow
public:
MainWindow(QWidget *parent = nullptr);
void DebugLog(QString message);
void Initialize();
void UpdateProgress(qint64 size,quint64 sended);
void LoadComplete();
void SetNeedUpdate(bool flag);
~MainWindow();
signals:
void onInitializeClient(UpdateController *updateController,
RecognizeSystem *recognizeSystem,
ExternalExecuter *externalExecuter);
void onSetConnect(ServerSettings* serverSettings);
void onCalculateHash();
void onSendMessage(QString message);
private slots:
void on_loginButton_clicked();
@@ -51,6 +58,15 @@ private:
RecognizeSystem *recognizeSystem;
ScreenChecker *screenChecker;
ExternalExecuter *externalExecuter;
QThread *connectionThread;
QThread *updateControllerThread;
quint64 maxBytesAvailable;
void DebugLog(QString message);
void Initialize();
void UpdateProgress(qint64 size,quint64 sended);
void LoadComplete();
void SetNeedUpdate(bool flag);
void LostConnection();
};
#endif // MAINWINDOW_H