X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.h;h=c47e9bf8a8213128606ec6ecaacd148eef1401fd;hb=d6b4861f70e47ed539fe7cb6123706769354d668;hp=f7c8830b8125ba6023cbe0f6a9f7eeb01f184ac2;hpb=3e43cd4777ddb314779f6c2be51028e14bd54e6d;p=pkanalytics diff --git a/mainwindow.h b/mainwindow.h index f7c8830..c47e9bf 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -2,6 +2,7 @@ #include #include #include +#include #include #include "ui_mainwindow.h" @@ -15,7 +16,8 @@ class MainWindow : public QMainWindow public: MainWindow(EventsModel *events, PlayersModel *players, - FormationsModel *offensive_formations, FormationsModel *defensive_formations); + FormationsModel *offensive_formations, FormationsModel *defensive_formations, + sqlite3 *db, int match_id); ~MainWindow() { if (ui && ui->video) { ui->video->stop(); @@ -37,6 +39,7 @@ private: void update_status(uint64_t t); void update_player_buttons(uint64_t t); void update_action_buttons(uint64_t t); + void update_gender_ratio(uint64_t t); Ui::MainWindow *ui; EventsModel *events; @@ -44,6 +47,8 @@ private: FormationsModel *offensive_formations; FormationsModel *defensive_formations; bool seeking = false; - bool playing = true; + std::atomic playing{true}; std::optional buffered_seek; + sqlite3 *db; // TODO: Check threading + int match_id; };