-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwidget.h
47 lines (38 loc) · 847 Bytes
/
widget.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
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include "camera.h"
#include <qdatetime.h>
#include "udp.h"
#include "mythread.h"
#include "config.h"
//const char setNet[4] = {{"ifconfig eth0 down"},{"iwconfig wlan0 mode ad-hoc"},{"iwconfig wlan0 essid \"test\""},{"ifconfig wlan0 192.168.1.111"}};
namespace Ui
{
class Widget;
}
class Udp;
class MyThread;
class VideoDevice;
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = 0);
~Widget();
QDateTime *time;
QString timeStr;
private:
Ui::Widget *ui;
int rs;
int isFirst;
QTimer *timer;
Udp *udp;
void YUV422To420(unsigned char *pYUV, unsigned char*yuv, int lWidth, int lHeight);
public slots:
void openCamera();
void display_error(QString err);
private slots:
void startTCP();
};
#endif // WIDGET_H