diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-24 20:19:19 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-24 20:19:19 (GMT) |
| commit | 97b35bc47059315d4138c8e0827842d2c03de152 (patch) | |
| tree | feaf7a8c018982ba9d7ca1b8e6e15294abfdfc84 /src/login/LoginModel.h | |
| parent | 04488081d3fa0cd3dfb2939e5d902bc894df150d (diff) | |
| download | powder-97b35bc47059315d4138c8e0827842d2c03de152.zip powder-97b35bc47059315d4138c8e0827842d2c03de152.tar.gz | |
Various
Diffstat (limited to 'src/login/LoginModel.h')
| -rw-r--r-- | src/login/LoginModel.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/login/LoginModel.h b/src/login/LoginModel.h new file mode 100644 index 0000000..cd10a5d --- /dev/null +++ b/src/login/LoginModel.h @@ -0,0 +1,33 @@ +/* + * LoginModel.h + * + * Created on: Jan 24, 2012 + * Author: Simon + */ + +#ifndef LOGINMODEL_H_ +#define LOGINMODEL_H_ + +#include <vector> +#include <string> +#include "LoginView.h" +#include "client/Client.h" + +using namespace std; + +class LoginView; +class LoginModel { + vector<LoginView*> observers; + string statusText; + bool loginStatus; + void notifyStatusChanged(); +public: + LoginModel(); + void Login(string username, string password); + void AddObserver(LoginView * observer); + string GetStatusText(); + bool GetStatus(); + virtual ~LoginModel(); +}; + +#endif /* LOGINMODEL_H_ */ |
