-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanager.h
67 lines (52 loc) · 1.49 KB
/
manager.h
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef MANAGER_LOGIN_H
#define MANAGER_LOGIN_H
#include "controllers/cLogin.h"
#include "views/vLogin.h"
#include "controllers/cWorklog.h"
#include "views/vWorklog.h"
#include "controllers/cClient.h"
#include "views/vClient.h"
#include "controllers/cWebview.h"
#include "views/vWebview.h"
class ZeitkitTimer;
namespace Manager
{
extern ZeitkitTimer* main;
class Login
{
public:
Login() : view(new View::Login(this)), controller(new Controller::Login(this)) {}
~Login() { free(); }
void free() { delete controller; delete view; controller = NULL; view = NULL; }
Controller::Login* controller;
View::Login* view;
};
class Worklog
{
public:
Worklog() : view(new View::Worklog(this)), controller(new Controller::Worklog(this)) {}
~Worklog() { free(); }
void free() { delete controller; delete view; controller = NULL; view = NULL; }
Controller::Worklog* controller;
View::Worklog* view;
};
class Client
{
public:
Client() : view(new View::Client(this)), controller(new Controller::Client(this)) {}
~Client() { free(); }
void free() { delete controller; delete view; controller = NULL; view = NULL; }
Controller::Client* controller;
View::Client* view;
};
class Webview
{
public:
Webview() : view(new View::Webview(this)), controller(new Controller::Webview(this)) {}
~Webview() { free(); }
void free() { delete controller; delete view; controller = NULL; view = NULL; }
Controller::Webview* controller;
View::Webview* view;
};
}
#endif