-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdirectdiskdialog.h
50 lines (38 loc) · 1008 Bytes
/
directdiskdialog.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
#ifndef DIRECTDISKDIALOG_H
#define DIRECTDISKDIALOG_H
#include <QDialog>
#include <QWidget>
#include <QSemaphore>
#include <QFile>
#include "sniff/sniff.h"
namespace Ui {
class DirectDiskDialog;
}
class DirectDiskDialog : public QDialog
{
Q_OBJECT
public:
explicit DirectDiskDialog(QWidget *parent = 0);
~DirectDiskDialog();
void putData(const t_sniff_frame *in_frame);
void putData(const char *data, const unsigned short data_size);
bool isRunning(void);
bool filterIsEnabled(void);
private slots:
void on_startButton_clicked();
void on_stopButton_clicked();
void on_opendirButton_clicked();
void keyPressEvent(QKeyEvent *e);
private:
Ui::DirectDiskDialog *ui;
void showEvent(QShowEvent *event);
void hideEvent(QHideEvent *event);
void directdisk_stop(void);
QSemaphore sem;
QString savefile_path;
bool is_running;
qint64 directdisk_filelen;
QFile* directdisk_file;
bool filter;
};
#endif // DIRECTDISKDIALOG_H