Add user and profession entity
This commit is contained in:
parent
170a24670d
commit
f41052337c
7 changed files with 222 additions and 10 deletions
28
iFacility/objects/profession.h
Normal file
28
iFacility/objects/profession.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef PROFESSION_H
|
||||
#define PROFESSION_H
|
||||
|
||||
#include <QString>
|
||||
#include <QUuid>
|
||||
#include <QDataStream>
|
||||
|
||||
typedef QUuid PID;
|
||||
|
||||
class Profession {
|
||||
private:
|
||||
PID mPID;
|
||||
QString mTitle;
|
||||
|
||||
Profession() = default;
|
||||
|
||||
public:
|
||||
QString title() const;
|
||||
PID pID() const;
|
||||
|
||||
static Profession createProfession(const QString &title);
|
||||
|
||||
friend bool operator==(const Profession &l, const Profession &r);
|
||||
friend QDataStream& operator<<(QDataStream &stream, const Profession &prof);
|
||||
friend QDataStream& operator>>(QDataStream &stream, Profession &prof);
|
||||
};
|
||||
|
||||
#endif // PROFESSION_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue