From 100e73ec28dbc1f307c540cbd4b5a04dfe5922f8 Mon Sep 17 00:00:00 2001 From: Steru Date: Fri, 16 Aug 2024 22:19:42 +0200 Subject: Compacted competitors into one object, deleted API class (now in sportmodel). --- src/model/CompetitorWithResults.h | 40 --------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/model/CompetitorWithResults.h (limited to 'src/model/CompetitorWithResults.h') diff --git a/src/model/CompetitorWithResults.h b/src/model/CompetitorWithResults.h deleted file mode 100644 index a98a1e8..0000000 --- a/src/model/CompetitorWithResults.h +++ /dev/null @@ -1,40 +0,0 @@ - -#pragma once - -#include "Competitor.h" -#include -#include -#include -#include - -class CompetitorWithResults : public Competitor { - - Q_OBJECT - - Q_PROPERTY(QString mark READ mark NOTIFY nMark) - Q_PROPERTY(QString medalType READ medalType NOTIFY nMedalType) - Q_PROPERTY(QString statistic READ statistic NOTIFY nStatistic) - -public: - explicit CompetitorWithResults(Competitor *parent) : Competitor(parent) {} - - bool setResults(const QJsonObject &results); - void setMark(QString mark) { this->m_mark = mark; } - void setMedalType(QString medalType) { this->m_medalType = medalType; } - void setStatistic(QString stat) { this->m_statistic = stat; } - - bool setCompetitorWithResults(const QJsonObject &competitor); - void setCompetitorWithResults(const CompetitorWithResults &competitor); - - QString getMark() { return this->m_mark; } - QString getMedalType() { return this->m_medalType; } - QString getStatistic() { return this->m_statistic; } - - static bool compare(CompetitorWithResults lComp, CompetitorWithResults rComp); - -private: - QString m_mark; - QString m_medalType; - QString m_statistic; - -}; -- cgit v1.2.3