-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlive_analyse.h
44 lines (38 loc) · 858 Bytes
/
live_analyse.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
#ifndef LIVE_ANALYSE_H
#define LIVE_ANALYSE_H
#include <vector>
#include <paquet.h>
//#include <mainwindow.h>
#include <QEventLoop>
//#include <QThread>
//#include <QTimer>
#include <QWaitCondition>
#include <QObject>
#include <QMutex>
class MainWindow;
class live_analyse : public QObject
{
Q_OBJECT
public:
explicit live_analyse(QObject *parent = 0); // :
// QObject(parent)
// {
// _abort = false;
// _interrupt = false;
// //window = (MainWIndow*)parent;
// };
//live_analyse(MainWindow *windows);
void abort();
QWaitCondition condition;
MainWindow* window;
bool _abort;
bool _interrupt;
QMutex mutex;
void requestPaquet();
signals:
void tvalueChanged(unsigned char *, int);
void finished();
public slots:
void run();
};
#endif // LIVE_ANALYSE_H