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.
|
|
|
#include <data/comboitem.h>
|
|
|
|
#include "person.h"
|
|
|
|
|
|
|
|
Person::Person()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
int Person::getId() const
|
|
|
|
{
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Person::setId(int value)
|
|
|
|
{
|
|
|
|
id = value;
|
|
|
|
}
|
|
|
|
QString Person::getFirstName() const
|
|
|
|
{
|
|
|
|
return firstName;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Person::setFirstName(const QString &value)
|
|
|
|
{
|
|
|
|
firstName = value;
|
|
|
|
}
|
|
|
|
QString Person::getLastName() const
|
|
|
|
{
|
|
|
|
return lastName;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Person::setLastName(const QString &value)
|
|
|
|
{
|
|
|
|
lastName = value;
|
|
|
|
}
|
|
|
|
QSharedPointer<QObject> Person::address() const
|
|
|
|
{
|
|
|
|
return m_address;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Person::setAddress(const QSharedPointer<QObject> &address)
|
|
|
|
{
|
|
|
|
if (qobject_cast<Address*>(address.data()) != NULL)
|
|
|
|
{
|
|
|
|
m_address = qSharedPointerDynamicCast<Address, QObject>(address);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|