Move project in sub
This commit is contained in:
parent
f868166756
commit
ec1af1b8e5
43 changed files with 358 additions and 2 deletions
24
sea_transport/system/auth_system.h
Normal file
24
sea_transport/system/auth_system.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef AUTH_SYSTEM_H
|
||||
#define AUTH_SYSTEM_H
|
||||
|
||||
#include<QVector>
|
||||
|
||||
#include <entities/user_entity.h>
|
||||
|
||||
|
||||
class auth_system
|
||||
{
|
||||
private:
|
||||
QVector<user_entity> _users;
|
||||
public:
|
||||
auth_system() = default;
|
||||
|
||||
const user_entity* get_user(const QString &login, bool &success);
|
||||
bool remove_user(const QString &login);
|
||||
bool register_user(const QString &login, const QString &password, UserRole role);
|
||||
|
||||
void init(QDataStream &stream);
|
||||
void shutdown(QDataStream &stream);
|
||||
};
|
||||
|
||||
#endif // AUTH_SYSTEM_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue