class BackendKicker : public MatchDayBackend
{
Q_OBJECT
+
+ // TODO clear matchlist on match day change!
public:
explicit BackendKicker(QObject *parent = 0);
void setAutomaticUpdate(bool);
signals:
- void matchListChanged(void);
+ void updateFinished(int);
void updateStarted(void);
public slots:
QDateTime m_lastUpdate;
QTimer m_updateTimer;
QNetworkAccessManager* m_netaccmgr;
+ bool m_initialUpdateDone;
static const int INTERVAL_FAST;
- static const int INTERVAL_SLOW;
void parsePage (QString htmlstr);
- bool matchRunning (void);
+ void parseScore(Match* match, QString scorehtml);
+ int secsToNextGame(void);
private slots:
void dlndFinished(QNetworkReply *reply);