summaryrefslogtreecommitdiff
path: root/src/model/EventInfo.h
blob: 7f937b21b832aee6b38b57ec58ef08ccdaff7b84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef ITAT_CHALLANGE_OLYMPICS_EVENT_H
#define ITAT_CHALLANGE_OLYMPICS_EVENT_H

#include <QObject>
#include <qqml.h>

class EventInfo : QObject {
  Q_OBJECT
  // QML_ELEMENT

  Q_PROPERTY(QString eventName READ eventName WRITE setEventName);
  Q_PROPERTY(QList<QString> competitors READ competitors WRITE setCompetitors);

  public:
  explicit EventInfo(QObject *parent = nullptr);

  QString eventName() const;
  void setEventName(const QString &newEventName);

  QList<QString> competitors() const;
  void setCompetitors(const QList<QString> &newCompetitors);

  private:
  QString m_eventName;
  QList<QString> m_competitors;
};

#endif