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.
118 lines
1.8 KiB
C++
118 lines
1.8 KiB
C++
8 years ago
|
#include "campdata.h"
|
||
|
#include <define.h>
|
||
|
|
||
|
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<ServiceItemPtr> CampData::services() const
|
||
|
{
|
||
|
return m_services;
|
||
|
}
|
||
|
|
||
|
void CampData::setServices(const QOdbList<QSharedPointer<ServiceItem> > &services)
|
||
|
{
|
||
|
m_services = services;
|
||
|
}
|
||
|
|
||
|
void CampData::addServiceItem(ServiceItemPtr serviceItem)
|
||
|
{
|
||
|
m_services.append(serviceItem);
|
||
|
}
|
||
|
|
||
|
QOdbList<AddressItemPtr> CampData::people() const
|
||
|
{
|
||
|
return m_people;
|
||
|
}
|
||
|
|
||
|
void CampData::setPeople(const QOdbList<AddressItemPtr> &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;
|
||
|
}
|