#ifndef SEASON_H #define SEASON_H #include "../core_global.h" #include #include #include class CORESHARED_EXPORT Season : public QObject { Q_OBJECT QX_REGISTER_FRIEND_CLASS(Season) Q_PROPERTY(QString name READ name WRITE setName) Q_PROPERTY(QDate validFrom READ validFrom WRITE setValidFrom) Q_PROPERTY(QDate validTo READ validTo WRITE setValidTo) Q_PROPERTY(bool active READ active WRITE setActive) public: explicit Season(QObject *parent = nullptr); QString name() const; void setName(const QString &name); QDate validFrom() const; void setValidFrom(const QDate &validFrom); QDate validTo() const; void setValidTo(const QDate &validTo); bool active() const; void setActive(bool active); long id() const; void setId(long id); private: long m_id; QString m_name; QDate m_validFrom; QDate m_validTo; bool m_active; }; typedef QSharedPointer SeasonPtr; QX_REGISTER_HPP_CORE(Season, QObject, 0) #endif // SEASON_H