#include "campdata.h" #include CampData::CampData(QObject *parent) : QObject(parent) { } int CampData::id() const { return m_id; } void CampData::setId(int id) { m_id = id; } QDate CampData::start() const { return m_start; } void CampData::setStart(const QDate &start) { m_start = start; } QDate CampData::end() const { return m_end; } void CampData::setEnd(const QDate &end) { m_end = end; } QString CampData::ownerFirstame() const { return m_ownerFirstame; } void CampData::setOwnerFirstame(const QString &ownerFirstame) { m_ownerFirstame = ownerFirstame; } QString CampData::ownerLastname() const { return m_ownerLastname; } void CampData::setOwnerLastname(const QString &ownerLastname) { m_ownerLastname = ownerLastname; } QString CampData::ownerAddress() const { return m_ownerAddress; } void CampData::setOwnerAddress(const QString &ownerAddress) { m_ownerAddress = ownerAddress; } QOdbList CampData::services() const { return m_services; } void CampData::setServices(const QOdbList > &services) { m_services = services; } void CampData::addServiceItem(ServiceItemPtr serviceItem) { m_services.append(serviceItem); } QOdbList CampData::people() const { return m_people; } void CampData::setPeople(const QOdbList &people) { m_people = people; } void CampData::addPerson(AddressItemPtr person) { m_people.append(person); } QDecDouble CampData::totalPrice() const { return TO_DEC(m_totalPrice); } void CampData::setTotalPrice(QDecDouble totalPrice) { m_totalPrice = FROM_DEC(totalPrice); } SeasonPtr CampData::season() const { return m_season; } void CampData::setSeason(const SeasonPtr &season) { m_season = season; }