restructured project to include packaging files
[buliscores] / src / 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 matchAdded(Match* match);
27     void updateFinished(int);
28     void updateStarted(void);
29
30 public slots:
31     virtual void update() = 0;
32 };
33
34 #endif // MATCHDAYBACKEND_H