2020-11-15 14:48:12 +01:00
|
|
|
#include "brcontroller.h"
|
2020-10-31 15:16:06 +01:00
|
|
|
|
|
|
|
BRController::BRController(QObject *parent) : QObject(parent)
|
|
|
|
{
|
|
|
|
this->providerDr = new BRProviderDr(this);
|
2020-11-03 15:56:43 +01:00
|
|
|
this->providerVl = new BRProviderVl(this);
|
2020-10-31 15:16:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-11-03 15:56:43 +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
|
|
|
}
|