forked from suhailsherif/IITG-Transparent-Proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
allproxy.h
129 lines (78 loc) · 3.4 KB
/
allproxy.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#ifndef ALLPROXY_H
#define ALLPROXY_H
#include <QMainWindow>
#include <QDir>
#include <QFileDialog>
#include <QFileSystemModel>
#include <QString>
#include <QToolBox>
namespace Ui {
class AllProxy;
}
class AllProxy : public QMainWindow
{
Q_OBJECT
public:
explicit AllProxy(QWidget *parent = 0);
~AllProxy();
private slots:
void on_in_button_browse_clicked();
void on_in_text_vproxy_username_textChanged(const QString &arg1);
void on_in_text_vproxy_password_textChanged(const QString &arg1);
void on_in_button_save_vproxy_clicked();
void on_in_button_save_nproxy_clicked();
void on_in_button_save_tproxy_clicked();
void on_in_button_save_lproxy_clicked();
void on_in_button_save_sproxy_clicked();
void on_in_text_sproxy_local_port_textChanged(const QString &arg1);
void on_in_text_sproxy_server_textChanged(const QString &arg1);
void on_in_text_sproxy_port_textChanged(const QString &arg1);
void on_in_text_sproxy_username_textChanged(const QString &arg1);
void on_in_text_sproxy_password_textChanged(const QString &arg1);
void on_in_text_lproxy_local_port_textChanged(const QString &arg1);
void on_in_text_lproxy_server_textChanged(const QString &arg1);
void on_in_text_lproxy_port_textChanged(const QString &arg1);
void on_in_text_tproxy_server_textChanged(const QString &arg1);
void on_in_text_tproxy_username_textChanged(const QString &arg1);
void on_in_text_tproxy_port_textChanged(const QString &arg1);
void on_in_text_tproxy_password_textChanged(const QString &arg1);
void on_in_text_nproxy_server_textChanged(const QString &arg1);
void on_in_text_nproxy_port_textChanged(const QString &arg1);
void on_in_text_nproxy_username_textChanged(const QString &arg1);
void on_in_text_nproxy_gateway_textChanged(const QString &arg1);
void on_in_text_nproxy_password_textChanged(const QString &arg1);
void on_in_text_sproxy_ssh_server_textChanged(const QString &arg1);
void on_in_text_vproxy_server_textChanged(const QString &arg1);
void on_in_text_vproxy_port_textChanged(const QString &arg1);
void on_in_text_vproxy_proxy_username_textChanged(const QString &arg1);
void on_in_text_vproxy_proxy_password_textChanged(const QString &arg1);
void on_browse_dproxy_clicked();
void dproxy_update();
void on_push_dproxy_download_clicked();
void on_switch_vproxy_clicked();
void on_switch_sproxy_clicked();
void on_switch_lproxy_clicked();
void on_switch_tproxy_clicked();
void on_switch_cproxy_clicked();
void on_in_text_lproxy_username_textChanged(const QString &arg1);
void on_in_text_lproxy_password_textChanged(const QString &arg1);
void on_in_text_cproxy_ip_textChanged(const QString &arg1);
void on_in_text_cproxy_port_textChanged(const QString &arg1);
void on_in_button_save_cproxy_clicked();
void update_display();
private:
Ui::AllProxy *ui;
QToolBox *box;
QFileSystemModel *dirmodel;
QFileSystemModel *filemodel;
QString module_name,project_path, allproxy_path;
QStringList files_list;
QString project_config_file_name;
bool event(QEvent * e);
void load_configuration();
void start();
static void setToolBoxButtonColor(QToolBox* toolBox, int index, QColor color);
void display_error(QString error);
void update_config(QString key, QString value);
};
#endif // ALLPROXY_H