remove unneeded code.
This commit is contained in:
37
mainwindow.h
37
mainwindow.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user