new screenshot
[buliscores] / src / mainwidget.h
index 5049189..1b68c1e 100644 (file)
@@ -5,6 +5,7 @@
 #include <QVBoxLayout>
 #include <QLabel>
 
+#include "matchdaybackend.h"
 #include "scoretable.h"
 #include "settingsdialog.h"
 
 class MainWidget : public QWidget
 {
     Q_OBJECT
-private:
-    MatchDayModel*  m_datamodel;
-    ScoreTable*     m_scoretbl;
-    SettingsDialog* m_settingsdlg;
-
-    QVBoxLayout m_layout;
-    QLabel      m_statuslbl;
-
 public:
     explicit MainWidget(QWidget *parent = 0);
 
     void mousePressEvent(QMouseEvent* event);
 
-signals:
-
 public slots:
     void showSettingsDialog();
 
+protected slots:
+    void onBackendUpdateStarted();
+    void onBackendUpdateFinished(void);
+
+private:
+    MatchDayBackend* m_backend;
+    MatchDayModel*   m_datamodel;
+    ScoreTable*      m_scoretbl;
+    SettingsDialog*  m_settingsdlg;
+    QSettings        m_settings;
+
+    QVBoxLayout m_layout;
+    QLabel      m_statuslbl;
+
+private slots:
+    void update(void);
+
 };
 
 #endif // MAINWIDGET_H