app/sources/brcontroller.cpp

16 lines
439 B
C++
Raw Normal View History

2020-10-31 15:16:06 +01:00
#include "../headers/brcontroller.h"
BRController::BRController(QObject *parent) : QObject(parent)
{
this->providerDr = new BRProviderDr(this);
this->providerVl = new BRProviderVl(this);
2020-10-31 15:16:06 +01:00
}
BRCalendar* BRController::getCalendar(BRWidget::BRFederation federation) {
if(federation == BRWidget::IFSC)
return this->providerVl->getCalendar(federation);
else
return this->providerDr->getCalendar(federation);
2020-10-31 15:16:06 +01:00
}