forked from blue/squawk
refactoring ui models, temp
This commit is contained in:
parent
4a4ba47968
commit
2bcee521c5
7 changed files with 246 additions and 143 deletions
36
ui/models/account.h
Normal file
36
ui/models/account.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
#ifndef MODELS_ACCOUNT_H
|
||||
#define MODELS_ACCOUNT_H
|
||||
|
||||
#include "item.h"
|
||||
|
||||
namespace Models {
|
||||
class Account : public Item {
|
||||
public:
|
||||
explicit Account(const QMap<QString, QVariant> &data, Item *parentItem = 0);
|
||||
~Account();
|
||||
|
||||
void setState(int p_state);
|
||||
int getState() const;
|
||||
|
||||
void setLogin(const QString& p_login);
|
||||
QString getLogin() const;
|
||||
|
||||
void setServer(const QString& p_server);
|
||||
QString getServer() const;
|
||||
|
||||
void setPassword(const QString& p_password);
|
||||
QString getPassword() const;
|
||||
|
||||
QVariant data(int column) const override;
|
||||
int columnCount() const override;
|
||||
|
||||
private:
|
||||
QString login;
|
||||
QString password;
|
||||
QString server;
|
||||
int state;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // MODELS_ACCOUNT_H
|
Loading…
Add table
Add a link
Reference in a new issue