Add entities w/out logic
This commit is contained in:
parent
1bda2c4047
commit
415ede2b91
11 changed files with 153 additions and 8 deletions
22
userentity.h
Normal file
22
userentity.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef USERENTITY_H
|
||||
#define USERENTITY_H
|
||||
|
||||
#include <QString>
|
||||
|
||||
typedef long long pwd_type;
|
||||
|
||||
class UserEntity
|
||||
{
|
||||
QString _login;
|
||||
pwd_type _password_hash;
|
||||
enum UserRoleEnum {
|
||||
ADMINISTRATOR = 0,
|
||||
DISPATCHER = 1,
|
||||
CAPTAIN = 2
|
||||
} _role;
|
||||
|
||||
public:
|
||||
UserEntity(QString login, QString password, UserEntity::UserRoleEnum role);
|
||||
};
|
||||
|
||||
#endif // USERENTITY_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue