Add user and profession entity

This commit is contained in:
E. Kozlovskaya 2021-01-03 22:39:29 +07:00
parent 170a24670d
commit f41052337c
7 changed files with 222 additions and 10 deletions

View 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