remove unneeded code.

This commit is contained in:
2025-04-01 17:50:02 +03:00
parent f483c97935
commit e749c21a61
29 changed files with 1116 additions and 2122 deletions

View File

@@ -2,7 +2,10 @@
#define MAINWINDOW_H
#include <QWidget>
#include <qevent.h>
#include <QEvent>
#include <thread>
#include <http_server/http_server.h>
namespace Ui {
class MainWindow;
@@ -15,10 +18,36 @@ class MainWindow : public QWidget
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
Ui::MainWindow *ui;
private slots:
private:
#ifdef BUILD_OFD_BINARYEYE_SCAN
void startHttpServer();
#endif
signals:
void httpNewMessage(QString message);
void httpErrorOccured();
private slots:
#ifdef BUILD_OFD_LOCAL_QR_SCAN
void on_choose_image_button_clicked();
#endif
void onDataDecode(std::map<std::string, std::string>);
void on_parse_button_clicked();
#ifdef BUILD_OFD_BINARYEYE_SCAN
void on_binary_eye_button_clicked();
void notifyHttpServerFailure();
void on_stop_server_button_clicked();
void httpNewMessageHandler(QString message);
#endif
private:
Ui::MainWindow *ui;
#ifdef BUILD_OFD_BINARYEYE_SCAN
std::thread *httpServerThread;
HttpServer *server = NULL;
#endif
};
#endif // MAINWINDOW_H