]> git.sesse.net Git - ultimatescore/blobdiff - client/mainwindow.h
Accept and parse BT6000 data over UDP.
[ultimatescore] / client / mainwindow.h
index 8a517901b669e3499120943d0fbeab9a47b8272d..5402654fdce11930ffe935ad34e2ac641680af1b 100644 (file)
@@ -3,7 +3,10 @@
 
 #include <QMainWindow>
 
-#include "acmp_client.h"
+#include <string>
+#include <thread>
+
+#include "ws_server.h"
 #include "event_device.h"
 
 namespace Ui {
@@ -21,13 +24,14 @@ public:
        ~MainWindow();
 
 private:
-       void casparcg_reconnect_clicked();
+       void ws_disconnect_clicked();
        void set_initials_clicked();
        void set_color_clicked();
        void set_score_clicked();
        void set_all_scorebug_clicked();
        void add_goal(QSpinBox *box, int delta);
        void set_clock_clicked();
+       void set_clock_limit_clicked();
        void start_and_show_clock_clicked();
        void stop_clock_clicked();
        void show_clock_clicked();
@@ -40,10 +44,21 @@ private:
        void hide_lower_third_clicked();
        void quick_lower_third_activate();
        void autocomment_update();
+       void show_scorebug_clicked();
+       void show_group_clicked(const std::string &group_name);
+       void show_roster_clicked(const std::string &team_code);
+       void show_schedule_clicked();
+       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;
-       ACMPClient *acmp;
+       WSServer *ws;
        EventDevice *event_device;
+
+       std::thread udp_thread;
 };
 
 #endif // MAINWINDOW_H