initial import
[buliscores] / src / matchdaymodel.h
1 #ifndef MATCHDAYMODEL_H
2 #define MATCHDAYMODEL_H
3
4 #include <QAbstractTableModel>
5 #include <QFontMetrics>
6
7 #include "backendkicker.h"
8
9 class MatchDayModel : public QAbstractTableModel
10 {
11     Q_OBJECT
12
13     enum {
14         HomeIcon  = 0,
15         HomeTeam  = 1,
16         HomeScore = 2,
17         Seperator = 3,
18         AwayScore = 4,
19         AwayTeam  = 5,
20         AwayIcon  = 6
21     };
22
23 private:
24     BackendKicker*  backendkicker;
25
26 public:
27     explicit MatchDayModel(QObject *parent = 0);
28
29     int rowCount(const QModelIndex& index) const;
30     int columnCount(const QModelIndex& index) const;
31     QVariant data(const QModelIndex& index, int role) const;
32
33 signals:
34
35
36 protected slots:
37     void onMatchListChanged(void);
38
39 public slots:
40
41 };
42
43 #endif // MATCHDAYMODEL_H