]> git.sesse.net Git - ultimatescore/blobdiff - client/mainwindow.h
Accept and parse BT6000 data over UDP.
[ultimatescore] / client / mainwindow.h
index 1d7fe88d665b0ec725400af8ae5299e01fabf369..5402654fdce11930ffe935ad34e2ac641680af1b 100644 (file)
@@ -3,6 +3,9 @@
 
 #include <QMainWindow>
 
+#include <string>
+#include <thread>
+
 #include "ws_server.h"
 #include "event_device.h"
 
@@ -48,10 +51,14 @@ private:
        void show_carousel_clicked();
        void show_roster_carousel_clicked();
        void show_nothing_clicked();
+       void udp_thread_func();
+       void bt6000_message_received(const std::string &msg);
 
        Ui::MainWindow *ui;
        WSServer *ws;
        EventDevice *event_device;
+
+       std::thread udp_thread;
 };
 
 #endif // MAINWINDOW_H