-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathListThread.h
57 lines (35 loc) · 887 Bytes
/
ListThread.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
//
// Created by gaochong on 17-11-28.
//
#ifndef ELANTOOL_LISTTHREAD_H
#define ELANTOOL_LISTTHREAD_H
#include <QtCore/QThread>
#include "GCArp.h"
#include "GCIP.h"
#include "TableRecord.h"
struct TLanNetList {
char Local[16];
//char LocalMAC[20];
char LocalIP[20];
char SIP[20];
char DIP[20];
};
class ListThread : public QThread{
Q_OBJECT
private:
TLanNetList* tLanNetList;
GCIP *testip;
int srCount = 1;
int outTime = 250;
int fPort = -9999;
int fPortType = 1;
public:
ListThread( TLanNetList* tLanNetList, int srCount = 1 ,int outTime = 250, int fPort = -9999,int fPortType = 1, QObject *parent = nullptr );
virtual ~ListThread();
protected:
void run() override;
signals:
void notify( LanTableRecord *ltRecord );
void notifyNextIP( QString nip );
};
#endif //ELANTOOL_LISTTHREAD_H