forked from mss/securepoint-openvpn-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmgetuserdata.h
62 lines (50 loc) · 1.18 KB
/
frmgetuserdata.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
#ifndef FRMGETUSERDATA_H
#define FRMGETUSERDATA_H
#include <QtCore>
#include <QtGui>
// 0 - Username
// 1 - Pwd
// 2 - OTP
// 3 - PKCS12
// 4 - Private Key für Crypted User Data
namespace InputType {
enum UserInputType {
Username,
Password,
Otp,
Pkcs12,
PrivateKey,
HttpUsername,
HttpPassword
};
}
namespace Ui {
class FrmGetUserData;
}
class FrmGetUserData : public QDialog {
Q_OBJECT
public:
FrmGetUserData(InputType::UserInputType type, int id = -1);
~FrmGetUserData();
void setFrmType ();
public slots:
void receivedCloseMe ();
protected:
void changeEvent(QEvent *e);
void showEvent (QShowEvent *e);
void closeEvent(QCloseEvent *e);
private:
Ui::FrmGetUserData *ui;
bool dataAvail;
InputType::UserInputType frmType;
int vpnId;
bool force;
private slots:
void on_cmdOK_clicked();
void on_cmdClose_clicked();
signals:
void writeUserData (QString data);
void saveUserData (int id, int type, QString value, bool save);
void cryptKey (QString key);
};
#endif // FRMGETUSERDATA_H