initial commit Base app, core lib, plugin system
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#include "user.h"
|
||||
|
||||
User::User()
|
||||
{
|
||||
}
|
||||
|
||||
int User::getId() const
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
void User::setId(int value)
|
||||
{
|
||||
id = value;
|
||||
}
|
||||
|
||||
QString User::getLogin() const
|
||||
{
|
||||
return login;
|
||||
}
|
||||
|
||||
void User::setLogin(const QString &value)
|
||||
{
|
||||
login = value;
|
||||
}
|
||||
|
||||
QString User::getPassword() const
|
||||
{
|
||||
return password;
|
||||
}
|
||||
|
||||
void User::setPassword(const QString &value)
|
||||
{
|
||||
password = value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
#ifndef USER_H
|
||||
#define USER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <odb/core.hxx>
|
||||
|
||||
#pragma db object
|
||||
class User : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
User();
|
||||
|
||||
int getId() const;
|
||||
void setId(int value);
|
||||
|
||||
QString getLogin() const;
|
||||
void setLogin(const QString &value);
|
||||
|
||||
QString getPassword() const;
|
||||
void setPassword(const QString &value);
|
||||
|
||||
private:
|
||||
friend class odb::access;
|
||||
|
||||
#pragma db id auto
|
||||
int id;
|
||||
QString login;
|
||||
QString password;
|
||||
};
|
||||
|
||||
#endif // USER_H
|
||||
Reference in New Issue
Block a user