Projekt

Allgemein

Profil

Herunterladen als
Herunterladen (1,08 KB) Statistiken
| Zweig: | Revision:
#include "pupil.h"

Pupil::Pupil() : Person() {

}

Pupil::Pupil(QString firstName, QString familyName, Gender gender,
QString customPictureFileName, QString namePrefix, QString nickName,
QDate birthday, QString legalGuardianNote, QObject *parent)
: Person(firstName, familyName, gender, customPictureFileName, namePrefix,
nickName, birthday, parent) {
setFirstName(firstName);
setFamilyName(familyName);
setNamePrefix(namePrefix);
setNickName(nickName);
setBirthday(birthday);
setGender(gender);
setCustomPictureFileName(customPictureFileName);
this->setLegalGuardianNote(legalGuardianNote);
}

QString Pupil::getLegalGuardianNote() const {
return legalGuardianNote;
}

void Pupil::setLegalGuardianNote(const QString &value) {
legalGuardianNote = value;
}

const QHash<QString, Relation> Pupil::getRelations() const {
auto hash = Person::getRelations();
hash.insert("groups", CuteEntityManager::Relation("groups",
RelationType::MANY_TO_MANY,
QString("pupils")));
return hash;
}



(9-9/10)