-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialog.h
51 lines (36 loc) · 822 Bytes
/
dialog.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
#ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
#include <QTimer>
#include "mattoqimage.h"
#include <opencv2/opencv.hpp>
#include "server.h"
namespace Ui {
class Dialog;
}
class Server;
class Dialog : public QDialog
{
Q_OBJECT
public:
explicit Dialog(QWidget *parent = 0);
~Dialog();
signals:
void sendData(QByteArray data, int id);
public slots:
void revData(QString peerHost, QByteArray data);
private slots:
void showConnection();
void showDisconnection(int socketDescriptor);
void sendMsg();
void clearMsg();
void on_pushButton_clicked();
Mat TransBufferToMat(unsigned char* pBuffer, int nWidth, int nHeight, int nBandNum, int nBPB );
private:
Ui::Dialog *ui;
int count;
Server *server;
Mat picture;
QImage img;
};
#endif // DIALOG_H