Projekt

Allgemein

Profil

Herunterladen als
Herunterladen (1,05 KB) Statistiken
| Zweig: | Revision:
b7446f4c Christian Ehringfeld
#include "pupil.h"

Pupil::Pupil() : Person() {

}

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

5c3d9487 Christian Ehringfeld
QString Pupil::getLegalGuardianNote() const {
return legalGuardianNote;
}

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

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