-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.h
49 lines (39 loc) · 927 Bytes
/
start.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
#ifndef START_H
#define START_H
#include "mainwindow.h"
#include "welcom.h"
#include "mysql.h"
#include "mymap.h"
#include "login.h"
#include "sigin.h"
#include "libpoint.h"
class Start
{
public:
Start();
~Start();
void close_welcom();
void close_mainwindow();
void set_user(QString name){
WHO_AM_I->clear();
WHO_AM_I->append(name); }
QString get_who_am_i(){return *WHO_AM_I;}
void open_mainwindow();
void open_login();
void open_sigin();
void close_login();
void close_sigin();
void setAdmin(bool val){is_admin = val;}
bool isAdmin(){return is_admin;}
QWidget *getMainWindow(){return mainwindow;}
void test();
LibPoint *LP = NULL;
private:
QString *WHO_AM_I = new QString("");
Welcom *welcom ;
MainWindow *mainwindow;
Login *login;
Sigin *sigin;
bool is_admin = false;
};
#endif // START_H