e65d486e76c811d602a905935dd6089b546e7c07
[buliscores] / src / match.h
1 #ifndef MATCH_H
2 #define MATCH_H
3
4 #include <QIcon>
5 #include <QObject>
6 #include <QDateTime>
7
8 class Match : public QObject
9 {
10     Q_OBJECT
11
12 private:
13     QDateTime m_date;
14     QIcon     m_homeEmblem;
15     QIcon     m_awayEmblem;
16     QString   m_hometeam;
17     QString   m_awayteam;
18     int       m_homescore;
19     int       m_homescorefh;
20     int       m_awayscore;
21     int       m_awayscorefh;
22     bool      m_FirstHalfFinished;
23
24     QIcon     getEmblemByName(QString team);
25
26 public:
27     explicit Match(QString hometeam, QString awayteam, QObject *parent = 0);
28
29     void setScore(int home, int away);
30     void setFirstHalfFinished(bool finished);
31
32     QString hometeam()    {return m_hometeam;}
33     QString awayteam()    {return m_awayteam;}
34     QIcon   homeEmblem()  {return m_homeEmblem;}
35     QIcon   awayEmblem()  {return m_awayEmblem;}
36
37     int     homescore() {return m_homescore;}
38     int     awayscore() {return m_awayscore;}
39
40
41
42 signals:
43     void scoreChanged(int homescore, int awayscore);
44
45
46 public slots:
47
48 };
49
50 #endif // MATCH_H