]> git.sesse.net Git - nageru/blobdiff - futatabi/mainwindow.h
Add support for querying tally information from Nageru.
[nageru] / futatabi / mainwindow.h
index 8492eb34d09fed7172504e0aaf5c17058830f5d3..5d7104ab3210745770fc603d9db7eea1ea3680f5 100644 (file)
@@ -10,6 +10,7 @@
 #include <mutex>
 #include <QLabel>
 #include <QMainWindow>
+#include <QNetworkAccessManager>
 #include <stdbool.h>
 #include <sys/types.h>
 #include <string>
@@ -88,6 +89,10 @@ private:
        };
        std::vector<FrameAndDisplay> displays;
 
+       // Used to get tally information, if a tally URL is set.
+       QNetworkAccessManager http;
+       QNetworkReply *http_reply = nullptr;
+
        void change_num_cameras();
        void cue_in_clicked();
        void cue_out_clicked();
@@ -135,6 +140,9 @@ private:
        template <class Model>
        void replace_model(QTableView *view, Model **model, Model *new_model);
 
+       void start_tally();
+       void tally_received();
+
 private slots:
        void relayout();
 };