-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinterception.h
79 lines (64 loc) · 2.13 KB
/
interception.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
#ifndef INTERCEPTION_H
#define INTERCEPTION_H
#include <QDialog>
#include <vector>
#include <QGridLayout>
#include <QMessageBox>
#include <vector>
#include <string>
#include "qpb_modify.h"
#include "fun.h"
struct inter_messege
{
QImage img; // Зашифрованное изображение
QImage original_image; // Оригинальное изображение
QString p_key;
int p_key_size;
QString s_key;
int s_key_size;
int i;
int j;
QString algoritm;
QString code;
};
namespace Ui {
class interception;
}
class interception : public QDialog
{
Q_OBJECT
signals:
void homecomig(); // Угадайте пасхалку
void show_info_at_messege(int); // Посылает сам себе, при нажатии на кнопку
void go_to_crypto(QImage img, QString code, int i, int j);
private slots:
void show_info_at_messege_on_index(int i);
public:
explicit interception(QWidget *parent = 0);
~interception();
void add_new_messege(QImage img, QImage orig_image,
QString p_key, int p_key_size,
QString s_key, int s_key_size,
int i, int j, QString algoritm, QString code);
QString get_login_of_intercept(){return login_of_intercept;}
void set_login_of_intercept(QString login){login_of_intercept = login;}
void set_rsa_info(QImage img, QString code);
void up_level(int level);
void clearLayout( QLayout* layout );
private slots:
void on_button_back_clicked(); // Возврат в окно home_windows
void on_button_to_send_messege_clicked();
void on_button_decrypt_clicked();
private:
Ui::interception *ui;
std::vector<QPB_modify*> buttons_of_messege;
std::vector<inter_messege> intercepted_messeges;
QGridLayout *lay;
QString login_of_intercept;
bool flag_now_using_message = false;
bool flag_decr = false;
bool flag_good_decr;
int index_message; // Какое сейчас используется перехваченное сообщение
QImage decr_img;
};
#endif // INTERCEPTION_H