app/headers/brprovider.h

35 lines
699 B
C++

#ifndef BRPROVIDER_H
#define BRPROVIDER_H
#include <QObject>
#include <QtNetwork>
#include <QEventLoop>
#include <QTimer>
#include <QUrl>
#include "brwidget.h"
#include "brcalendar.h"
#include "brcompetition.h"
#include "brcategory.h"
#include "brcup.h"
class BRProvider : public QObject
{
Q_OBJECT
public:
explicit BRProvider(QObject *parent = nullptr);
friend class BRCalendar;
BRCalendar* getCalendar(BRWidget::BRFederation federation, int year, int league);
protected:
QVariantMap serverRequest(QUrl serviceUrl, QUrlQuery pdata = QUrlQuery());
virtual BRWidget::BRWidgetStatusCode loadCalendarData(BRCalendar* calendar) = 0;
signals:
};
#endif // BRCONTROLLER_H