-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmainForm.h
More file actions
70 lines (57 loc) · 1.49 KB
/
mainForm.h
File metadata and controls
70 lines (57 loc) · 1.49 KB
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
#ifndef MAINFORM_H
#define MAINFORM_H
//*If Linux OS & Qt4
#include <QtGui>
//*/
/*if Windows OS & Qt5
#include <QtWidgets>
//*/
#include "pup_encryption_functions.h"
#define IMAGES_DIR ":/images/"
class mainForm : public QMainWindow{
public:
mainForm();
~mainForm();
public slots:
void showEncGui();
void showDecGui();
void selectSimpleFile();
void removeFiles();
void clearFilesListSlot();
void encryptFiles();
void decryptFiles();
void confPup();
void chgPupPass();
void showPesInfo(QListWidgetItem *i);
void closePesInfo();
void showHelpContent();
void exitApp();
private:
Q_OBJECT
QWidget *w_home,*w_encDec;
QPushButton *b_enc,*b_dec,*b_conf,*b_chPass,*b_exit,*b_help,
*b_selectFiles,
*b_encFiles,*b_decFiles,
*b_rem, *b_remAll,
*b_closePesInfo;
QLabel *l_op_result, *l_operation_type;
QListWidget *files_list;
QRadioButton *r_usePlugUp, *r_usePassKey;
QTextBrowser *pesInfo;
QString last_selected_dir, pesInfotxt;
hid_device *h;
struct hid_device_info *lh;
char lastPass[50], lastSN[50];
int operation_type;//1:enc gui, 2:dec gui, 3:end crypto
int fileType;//1:file
void init();
void resizeGui(int i);
int selectPup();
void freePup();
void showEncDec();
void selectFiles(int fileType);
void clearFilesList();
void cryptoEncDec(int encDec);
void decryptWithoutPlugup();
};
#endif // MAINFORM_H