#ifndef OFDSCENE_H #define OFDSCENE_H #include #include namespace Ui { class OFDScene; } class OFDScene : public QWidget { Q_OBJECT public: explicit OFDScene(QWidget *parent = nullptr); ~OFDScene(); void startHttpServer(); unsigned int getPort(); private slots: void on_choose_image_button_clicked(); void onDataDecode(std::map); void on_parse_button_clicked(); void on_binary_eye_button_clicked(); void notifyHttpServerFailure(); signals: void httpErrorOccured(); private: Ui::OFDScene *ui; std::thread *http_thread; unsigned int port; }; #endif // OFDSCENE_H