app/sources/brcontroller.cpp
Dorian Zedler c44380d1bf
Many more implementations!
Calendar works now for VL and DR API
2020-11-03 15:56:43 +01:00

15 lines
439 B
C++

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