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

42 lines
1 KiB
C++

#include "brresultdetails.h"
BRResultDetails::BRResultDetails(BRResultDetailsType type) : BRWidget(nullptr, BRWidget::UnknownFederation, -1)
{
this->type = type;
}
QString BRResultDetails::string() {
return this->toString();
}
BRResultDetails::BRResultDetailsType BRResultDetails::getType() {
return this->type;
}
BRResult* BRResultDetails::getResult() {
return this->result;
}
BRWidget::BRDiscipline BRResultDetails::getDiscipline() {
switch (this->type) {
case GeneralResult:
return BRWidget::AllDisciplines;
case SpeedQualificationResult:
case SpeedFinalResult:
return BRWidget::Speed;
case LeadResult:
return BRWidget::Lead;
case BoulderResult:
return BRWidget::Boulder;
case CombinedResult:
return BRWidget::Combined;
case UnknownResultType:
return BRWidget::AllDisciplines;
default:
return BRWidget::UnknownDiscipline;
}
}
BRWidget::BRWidgetStatusCode BRResultDetails::load() {
return BRWidget::OpeationNotSupportedError;
}