-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAlert.h
61 lines (50 loc) · 1.24 KB
/
Alert.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
/*
* File: Alert.h
* Author: scribble
*
* Created on January 17, 2013, 4:38 PM
*/
#ifndef ALERT_H
#define ALERT_H
#define CLEAR_ALL_ALERT 10
#define LOGIN_FAILED_ALERT 11
#define FILE_LIST_FAILED_ALERT 12
#include <string>
#include "AlertButton.h"
#include <vector>
class ScreenInterpreter;
class Alert {
public:
Alert();
Alert(std::string title_, std::string message_, int type_);
Alert(const Alert& orig);
virtual ~Alert();
int getX();
int getY();
int getWidth();
int getHeight();
std::string getTitle();
std::string getMessage();
int getType();
bool pointInsideArea(Point *point);
void screenPressEvent(Point* point);
void screenMoveEvent(Point* point);
void screenReleaseEvent();
void setScreenInterpreter(ScreenInterpreter *s);
void callAction(int action);
std::vector <AlertButton *> * getButtonArray();
std::string getImagePath();
void setAlert(std::string title_, std::string message_, int type_);
private:
int x;
int y;
int width;
int height;
std::string title;
std::string message;
int type;
std::string imagePath;
std::vector <AlertButton *> *buttonArray;
ScreenInterpreter *screenInterpreter;
};
#endif /* ALERT_H */