You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.1 KiB
C++

#include "season.h"
QX_REGISTER_CPP_CORE(Season)
namespace qx {
template <> void register_class(QxClass<Season> & t)
{
t.setName("Season");
t.id(& Season::m_id, "id");
t.data(& Season::m_name, "name");
t.data(& Season::m_validFrom, "validFrom");
t.data(& Season::m_validTo, "validTo");
t.data(& Season::m_active, "active");
}}
Season::Season(QObject *parent)
:QObject(parent)
{
m_id = 0;
m_active = false;
}
QString Season::name() const
{
return m_name;
}
void Season::setName(const QString &name)
{
m_name = name;
}
QDate Season::validFrom() const
{
return m_validFrom;
}
void Season::setValidFrom(const QDate &validFrom)
{
m_validFrom = validFrom;
}
QDate Season::validTo() const
{
return m_validTo;
}
void Season::setValidTo(const QDate &validTo)
{
m_validTo = validTo;
}
bool Season::active() const
{
return m_active;
}
void Season::setActive(bool active)
{
m_active = active;
}
long Season::id() const
{
return m_id;
}
void Season::setId(long id)
{
m_id = id;
}