X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.h;h=5298eba3609dc5a4d718ccc23c5c666ede484898;hb=05a32509046f05d110de9e847025544c2a36ed02;hp=95dfae78e3ae060eaf7745c041275d8a5a97a11b;hpb=25c11342f6317f8209c0e8fe88b6843ccf50af4f;p=pkanalytics diff --git a/mainwindow.h b/mainwindow.h index 95dfae7..5298eba 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -1,7 +1,7 @@ -#include #include #include #include +#include #include #include "ui_mainwindow.h" @@ -15,7 +15,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 +38,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; @@ -46,4 +48,6 @@ private: bool seeking = false; std::atomic playing{true}; std::optional buffered_seek; + sqlite3 *db; // TODO: Check threading + int match_id; };