2020-11-03 15:56:43 +01:00
|
|
|
#ifndef BRPROVIDERVL_H
|
|
|
|
#define BRPROVIDERVL_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include "brprovider.h"
|
|
|
|
|
|
|
|
class BRProviderVl : public BRProvider
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit BRProviderVl(QObject *parent = nullptr);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
BRWidget::BRWidgetStatusCode getWidgetData(BRCalendar::BRCalendarData* calendarData) override;
|
|
|
|
|
|
|
|
BRWidget::BRWidgetStatusCode getWidgetData(BRSeason::BRSeasonData* seasonData) override;
|
|
|
|
BRSeason::BRSeasonData parseSeasonData(QVariantMap rawData);
|
|
|
|
|
|
|
|
BRWidget::BRWidgetStatusCode getWidgetData(BRLeague::BRLeagueData* leagueData) override;
|
|
|
|
void parseLeagueData(BRLeague::BRLeagueData* leagueData, QVariantMap rawData);
|
|
|
|
|
|
|
|
BRWidget::BRWidgetStatusCode getWidgetData(BRCompetition::BRCompetitionData* competitionData) override;
|
2020-11-08 10:47:44 +01:00
|
|
|
BRCompetition::BRCompetitionData parseCompetitionData(QVariantMap rawData, QVariantList globalCategoriesList, BRWidget::BRFederation federation);
|
2020-11-03 15:56:43 +01:00
|
|
|
|
2020-11-08 10:47:44 +01:00
|
|
|
BRCup::BRCupData parseCupData(QVariantMap rawData, QVariantList globalCategoriesList);
|
2020-11-03 15:56:43 +01:00
|
|
|
|
|
|
|
BRCategory::BRCategoryData parseCategoryData(QVariantMap rawData);
|
2020-11-15 14:48:12 +01:00
|
|
|
//void parseCategoryData(BRCategory::BRCategoryData* categoryData, QVariantMap rawData);
|
2020-11-04 13:55:37 +01:00
|
|
|
|
|
|
|
BRRound::BRRoundData parseRoundData(QVariantMap rawData);
|
|
|
|
void parseRoundData(BRRound::BRRoundData* roundData, QVariantMap rawData);
|
2020-11-03 15:56:43 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
QMap<BRWidget::BRFederation, QList<QVariantMap>> leagues;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BRPROVIDERVL_H
|