-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmento.h
76 lines (56 loc) · 1.31 KB
/
mento.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
68
69
70
71
72
73
74
75
76
#ifndef MENTO_H
#define MENTO_H
#define SETTINGS_PATH "/Contents/Resources/mento.conf"
#include <QObject>
#include <QMessageBox>
#include <QDateTime>
#include <QTextBrowser>
#include "configview.h"
#include "StatusIcon.h"
#include "menu.h"
#include "menuitem.h"
#include "menuviewitem.h"
#include "cocoaappinitlizer.h"
#include "mentothread.h"
#include "guite.h"
#define SERVICE_NAME "com.mycompany.cocoamento"
class Mento : public QObject
{
Q_OBJECT
public:
explicit Mento(QObject *parent = 0);
bool initSuccess();
~Mento();
public slots:
void quitApp();
void toggleConnect();
void outputHandle(QString str);
void exitHandle();
void statusHandle(QString str,int status);
void errorHandle(QString detail);
void authMento();
void noconfigHandle();
void showAboutQt();
void notifyHandle(QString str);
private:
bool initsuccess;
StatusIcon* icon;
Menu* main;
Menu* sub;
MenuViewItem* configview;
MenuItem* status;
MenuItem* connectHandle;
MenuItem* settings;
MenuItem* resetsettings;
MenuItem* logs;
MenuItem* about;
MenuItem* aboutQt;
MenuItem* help;
MenuItem* exit;
MenuViewItem* cvcontainer;
ConfigView* cv;
MentoThread * mainthread;
Guite* gt;
QTextBrowser * log;
};
#endif // MENTO_H