-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDBUser.cpp
22 lines (15 loc) · 1.04 KB
/
DBUser.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "DBUser.h"
namespace DBEntity {
DBUser::DBUser(const QString& login_, const QString& password_, const QByteArray& userpic_, const quint32& rating_, const bool& is_deleted_)
: a_login(login_), a_password(password_), a_userpic(userpic_), a_rating(rating_), a_is_deleted(is_deleted_) {}
QString DBUser::getLogin() const { return this->a_login; }
void DBUser::setLogin(const QString& login_) { this->a_login = login_; }
QString DBUser::getPassword() const { return this->a_password; }
void DBUser::setPassword(const QString& password_) { this->a_password = password_; }
QByteArray DBUser::getUserpic() const { return this->a_userpic; }
void DBUser::setUserpic(const QByteArray& userpic_) { this->a_userpic = userpic_; }
quint32 DBUser::getRating() const { return this->a_rating; }
void DBUser::setRating(const quint32& rating_) { this->a_rating = rating_; }
bool DBUser::isDeleted() const { return a_is_deleted; }
void DBUser::setIsDeleted(const bool& deleted) { this->a_is_deleted = deleted; }
}