forked from p0f/p0f
-
Notifications
You must be signed in to change notification settings - Fork 0
/
guip0f.h
65 lines (51 loc) · 1.16 KB
/
guip0f.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
#ifndef GUIP0F_H
#define GUIP0F_H
#include <QMainWindow>
#include <QComboBox>
#include <ui_guip0f.h>
#include "mythread.h"
#include "network_db.h"
#include <QTimer>
#include "host.h"
#include <QString>
#include <QSignalMapper>
#include <QTimeLine>
#include <QtGui>
#include <QFileSystemModel>
namespace Ui {
class GUIp0f;
}
class GUIp0f : public QMainWindow
{
Q_OBJECT
public:
explicit GUIp0f(QWidget *parent = 0);
~GUIp0f();
signals:
void clicked(const QString &ip_host);
protected:
void closeEvent(QCloseEvent *event);
public slots:
void set_name_interface();
void stop_p0f();
void update_gui();
void see_info_host(QString host_ip);
void search_host();
void start_timer();
void set_name_file();
private:
bool searched;
MyThread my;
QTimer* timer_update;
QSignalMapper *signal_buttons;
Ui::GUIp0f *ui;
QLabel *get_image_host(host *ip);
QTimeLine* line;
QFileSystemModel* model;
void set_list_ip();
void create_list_interface();
void delete_item();
void add_item_net(host* current_host, int row, int column);
bool host_correspond(host* current_host);
};
#endif // GUIP0F_H