#include #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 Person::address() const { return m_address; } void Person::setAddress(const QSharedPointer &address) { if (qobject_cast(address.data()) != NULL) { m_address = qSharedPointerDynamicCast(address); } }