app/sources/brresult.cpp

31 lines
664 B
C++
Raw Normal View History

#include "headers/brresult.h"
BRResult::BRResult(BRProvider* provider, BRWidget::BRFederation federation, int id, BRResultData initialData) : BRWidget(provider, federation, id)
{
this->setData(initialData);
}
int BRResult::getRank() const {
return this->rank;
}
BRAthlete* BRResult::getAthlete() const {
return this->athlete;
}
BRResultDetails* BRResult::getDetails() const {
return this->details;
}
void BRResult::setData(BRResultData data) {
this->rank = data.rank;
this->athlete = data.athlete;
emit this->metadataChanged();
}
BRWidget::BRWidgetStatusCode BRResult::load() {
return BRWidget::OpeationNotSupportedError;
}