]> git.sesse.net Git - nageru/blobdiff - futatabi/mainwindow.h
Fix a minor unneeded unlock/lock.
[nageru] / futatabi / mainwindow.h
index 8492eb34d09fed7172504e0aaf5c17058830f5d3..669fc0e9e29e810c2ef27f91d9a9bfa8ccf3050d 100644 (file)
@@ -10,6 +10,7 @@
 #include <mutex>
 #include <QLabel>
 #include <QMainWindow>
+#include <QNetworkAccessManager>
 #include <stdbool.h>
 #include <sys/types.h>
 #include <string>
@@ -42,6 +43,7 @@ private:
 
        QLabel *disk_free_label;
        std::unique_ptr<Player> preview_player, live_player;
+       std::map<size_t, size_t> live_player_index_to_row;
        DB db;
        unsigned num_cameras;
 
@@ -88,6 +90,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();
@@ -129,12 +135,16 @@ private:
        void undo_triggered();
        void redo_triggered();
        void quality_toggled(int quality, bool checked);
+       void padding_toggled(double seconds, bool checked);
 
        void highlight_camera_input(int stream_idx);
 
        template <class Model>
        void replace_model(QTableView *view, Model **model, Model *new_model);
 
+       void start_tally();
+       void tally_received();
+
 private slots:
        void relayout();
 };