summaryrefslogtreecommitdiff
path: root/src/login/LoginController.cpp
blob: 3172398eaba64ac1ae9118b06086d268f8ca2d82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * LoginController.cpp
 *
 *  Created on: Jan 24, 2012
 *      Author: Simon
 */

#include "LoginController.h"

LoginController::LoginController() {
	// TODO Auto-generated constructor stub
	loginView = new LoginView();
	loginModel = new LoginModel();

	loginView->AttachController(this);
	loginModel->AddObserver(loginView);

}

void LoginController::Login(string username, string password)
{
	loginModel->Login(username, password);
}

LoginController::~LoginController() {
	// TODO Auto-generated destructor stub
}