summaryrefslogtreecommitdiff
path: root/src/model/CompetitorWithResults.h
diff options
context:
space:
mode:
authorSteru <jerrydream111@gmail.com>2024-08-16 22:19:42 +0200
committerSteru <jerrydream111@gmail.com>2024-08-16 23:58:46 +0200
commit88b1b119dfa35f36b64d81dbe6c84f46d86455c5 (patch)
tree864ba9c747ef86d61b6aeb01e8985676f906bd3e /src/model/CompetitorWithResults.h
parentf24b4dcbd11336dabfd146c656e2437e4393b225 (diff)
Compacted competitors into one object, deleted API class (now in sportmodel).
Diffstat (limited to 'src/model/CompetitorWithResults.h')
-rw-r--r--src/model/CompetitorWithResults.h40
1 files changed, 0 insertions, 40 deletions
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 <QString>
-#include <QMap>
-#include <QJsonObject>
-#include <QObject>
-
-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;
-
-};