app/sources/brcontroller.cpp

16 lines
428 B
C++
Raw Normal View History

#include "brcontroller.h"
2020-10-31 15:16:06 +01:00
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
}