app/sources/cup/brcup.cpp
Dorian Zedler 85c8760bed
- moved some stuff
- results work now (still basic)
2020-11-15 14:48:12 +01:00

31 lines
706 B
C++

#include "brcup.h"
BRCup::BRCup(BRProvider* provider, BRWidget::BRFederation federation, int id, BRCupData initialData) : BRWidget(provider, federation, id)
{
this->categories = {};
this->setData(initialData);
}
QString BRCup::getName() {
return this->name;
}
QList<QObject*> BRCup::getCategoriesQML() {
return this->listToQmlList(this->categories);
}
void BRCup::setData(BRCupData data) {
this->name = data.name;
emit this->metadataChanged();
if(this->categories != data.categories) {
this->categories.clear();
this->categories = data.categories;
emit this->categoriesChanged();
}
}
BRWidget::BRWidgetStatusCode BRCup::load() {
// TODO
}