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.
68 lines
1007 B
C++
68 lines
1007 B
C++
8 years ago
|
#include "addressitem.h"
|
||
|
#include <define.h>
|
||
|
|
||
|
AddressItem::AddressItem(QObject *parent) : QObject(parent)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
int AddressItem::id() const
|
||
|
{
|
||
|
return m_id;
|
||
|
}
|
||
|
|
||
|
void AddressItem::setId(int id)
|
||
|
{
|
||
|
m_id = id;
|
||
|
}
|
||
|
|
||
|
QString AddressItem::firstName() const
|
||
|
{
|
||
|
return m_firstName;
|
||
|
}
|
||
|
|
||
|
void AddressItem::setFirstName(const QString &firstName)
|
||
|
{
|
||
|
m_firstName = firstName;
|
||
|
}
|
||
|
|
||
|
QString AddressItem::lastName() const
|
||
|
{
|
||
|
return m_lastName;
|
||
|
}
|
||
|
|
||
|
void AddressItem::setLastName(const QString &lastName)
|
||
|
{
|
||
|
m_lastName = lastName;
|
||
|
}
|
||
|
|
||
|
QString AddressItem::address() const
|
||
|
{
|
||
|
return m_address;
|
||
|
}
|
||
|
|
||
|
void AddressItem::setAddress(const QString &address)
|
||
|
{
|
||
|
m_address = address;
|
||
|
}
|
||
|
|
||
|
QDecDouble AddressItem::price() const
|
||
|
{
|
||
|
return TO_DEC(m_price);
|
||
|
}
|
||
|
|
||
|
void AddressItem::setPrice(QDecDouble price)
|
||
|
{
|
||
|
m_price = FROM_DEC(price);
|
||
|
}
|
||
|
|
||
|
QWeakPointer<CampData> AddressItem::campData() const
|
||
|
{
|
||
|
return m_campData;
|
||
|
}
|
||
|
|
||
|
void AddressItem::setCampData(const QWeakPointer<CampData> &campData)
|
||
|
{
|
||
|
m_campData = campData;
|
||
|
}
|