app/headers/brcompetition.h

41 lines
696 B
C
Raw Normal View History

2020-10-31 15:16:06 +01:00
#ifndef BRCOMPETITION_H
#define BRCOMPETITION_H
#include <QObject>
#include <QDate>
#include "brwidget.h"
#include "brcategory.h"
class BRCompetition : public BRWidget
{
Q_OBJECT
public:
friend class BRProvider;
friend class BRProviderDr;
Q_INVOKABLE QString getName();
BRWidget::BRWidgetStatusCode load() override;
private:
explicit BRCompetition(BRProvider* provider, BRWidget::BRFederation federation, int id);
enum BRDiscipline {
Boulder,
Lead,
Speed
};
int id;
QString name;
BRDiscipline discipline;
QDate startDate;
QDate endDate;
QList<BRCategory*> categories;
signals:
};
#endif // BRCOMPETITION_H