40 lines
696 B
C++
40 lines
696 B
C++
#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
|