Projekt

Allgemein

Profil

Herunterladen als
Herunterladen (1,67 KB) Statistiken
| Zweig: | Revision:
9d05e414 Christian Ehringfeld
#include "person.h"

QString Person::toString()
{
ba6f6521 Christian Ehringfeld
return Entity::toString() + " " + this->getFirstName();
9d05e414 Christian Ehringfeld
}

Person::Person(QObject *parent) : Entity(parent)
{

}

Person::Person(QString firstName,
QString familyName,
Gender gender,
QString customPictureFileName,
QString namePrefix,
QString nickName,
QDate birthday,
QObject *parent): CuteEntityManager::Entity(parent) {
setFirstName(firstName);
setFamilyName(familyName);
setNamePrefix(namePrefix);
setNickName(nickName);
setBirthday(birthday);
setGender(gender);
setCustomPictureFileName(customPictureFileName);
}
ba6f6521 Christian Ehringfeld
QString Person::getCustomPictureFileName() const
{
return customPictureFileName;
}

void Person::setCustomPictureFileName(const QString &value)
{
customPictureFileName = value;
}

Gender Person::getGender() const
{
return gender;
}

void Person::setGender(const Gender &value)
{
gender = value;
}
QDate Person::getBirthday() const
{
return birthday;
}

void Person::setBirthday(const QDate &value)
{
birthday = value;
}
QString Person::getNickName() const
{
return nickName;
}

void Person::setNickName(const QString &value)
{
nickName = value;
}
QString Person::getNamePrefix() const
{
return namePrefix;
}

void Person::setNamePrefix(const QString &value)
{
namePrefix = value;
}
QString Person::getFamilyName() const
{
return familyName;
}

void Person::setFamilyName(const QString &value)
{
familyName = value;
}
QString Person::getFirstName() const
{
return firstName;
}

void Person::setFirstName(const QString &value)
{
firstName = value;
}