From 0747472fb52783d383f17d0c87b5e5550bd73f7b Mon Sep 17 00:00:00 2001 From: rankun Date: Mon, 5 Nov 2018 17:55:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E4=BC=98=E5=8C=96decode=20re?= =?UTF-8?q?cvdata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/QtScrcpy.pro | 6 ++++-- src/devicesocket.cpp | 6 ++++++ src/devicesocket.h | 17 +++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 src/devicesocket.cpp create mode 100644 src/devicesocket.h diff --git a/src/QtScrcpy.pro b/src/QtScrcpy.pro index 0a8e23c..4f92b6f 100644 --- a/src/QtScrcpy.pro +++ b/src/QtScrcpy.pro @@ -35,7 +35,8 @@ SOURCES += \ frames.cpp \ fpscounter.cpp \ qyuvopenglwidget.cpp \ - videoform.cpp + videoform.cpp \ + devicesocket.cpp HEADERS += \ dialog.h \ @@ -46,7 +47,8 @@ HEADERS += \ frames.h \ fpscounter.h \ qyuvopenglwidget.h \ - videoform.h + videoform.h \ + devicesocket.h FORMS += \ dialog.ui \ diff --git a/src/devicesocket.cpp b/src/devicesocket.cpp new file mode 100644 index 0000000..1c2f1bf --- /dev/null +++ b/src/devicesocket.cpp @@ -0,0 +1,6 @@ +#include "devicesocket.h" + +DeviceSocket::DeviceSocket(QObject *parent) : QTcpSocket(parent) +{ + +} diff --git a/src/devicesocket.h b/src/devicesocket.h new file mode 100644 index 0000000..44f231f --- /dev/null +++ b/src/devicesocket.h @@ -0,0 +1,17 @@ +#ifndef DEVICESOCKET_H +#define DEVICESOCKET_H + +#include + +class DeviceSocket : public QTcpSocket +{ + Q_OBJECT +public: + explicit DeviceSocket(QObject *parent = nullptr); + +signals: + +public slots: +}; + +#endif // DEVICESOCKET_H