X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.h;h=ea4ba37048a4e893280713276b6558a5eba82ae9;hb=fd038d3480948dca80cdb41f4d764295918db30d;hp=95dfae78e3ae060eaf7745c041275d8a5a97a11b;hpb=9e95c15a6754fa571199c36d73ac2dc1d45e5c64;p=pkanalytics diff --git a/mainwindow.h b/mainwindow.h index 95dfae7..ea4ba37 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(); @@ -46,4 +48,6 @@ private: bool seeking = false; std::atomic playing{true}; std::optional buffered_seek; + sqlite3 *db; // TODO: Check threading + int match_id; };