- tested sound ouput via phonon, added two sounds (still unused)
[buliscores] / src / matchdaybackend.h
1 #ifndef MATCHDAYBACKEND_H
2 #define MATCHDAYBACKEND_H
3
4 #include <QObject>
5
6 #include "match.h"
7
8 /*
9  * Pure virtual class serving as a common interface for backends
10  * providing MatchDay Data
11  */
12 class MatchDayBackend : public QObject
13 {
14     Q_OBJECT
15 public:
16     explicit MatchDayBackend(QObject *parent = 0);
17
18 public:
19
20     virtual Match* getMatch(QString hometeam, QString awayteam, QDateTime date) = 0;
21     virtual QList<Match*> matchList() = 0;
22
23     virtual bool selectLeague(QString league) = 0;
24
25 signals:
26     void matchListChanged(void);
27     void updateStarted(void);
28
29 public slots:
30     virtual void update() = 0;
31 };
32
33 #endif // MATCHDAYBACKEND_H