app/sources/brcategory.cpp

21 lines
466 B
C++
Raw Normal View History

2020-10-31 15:16:06 +01:00
#include "../headers/brcategory.h"
BRCategory::BRCategory(BRProvider* provider, BRWidget::BRFederation federation, int id, BRCategoryData initialData) : BRWidget(provider, federation), id(id)
2020-10-31 15:16:06 +01:00
{
this->setData(initialData);
}
QString BRCategory::getName() {
return this->name;
}
void BRCategory::setData(BRCategoryData data) {
this->name = data.name;
emit this->metadataChanged();
}
2020-10-31 15:16:06 +01:00
BRWidget::BRWidgetStatusCode BRCategory::load() {
// TODO
2020-10-31 15:16:06 +01:00
}