|
#include "pupil.h"
|
|
|
|
Pupil::Pupil() : Person() {
|
|
|
|
}
|
|
|
|
Pupil::Pupil(QString firstName, QString familyName,
|
|
QString customPictureFileName, QString namePrefix, QString nickName,
|
|
QDate birthday, QString legalGuardianNote, QObject *parent)
|
|
: Person(firstName, familyName, customPictureFileName, namePrefix,
|
|
nickName, birthday, parent) {
|
|
setFirstName(firstName);
|
|
setFamilyName(familyName);
|
|
setNamePrefix(namePrefix);
|
|
setNickName(nickName);
|
|
setBirthday(birthday);
|
|
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));
|
|
return hash;
|
|
}
|