diff --git a/src/QtScrcpy.pro b/src/QtScrcpy.pro index 1e51688..0fb0450 100644 --- a/src/QtScrcpy.pro +++ b/src/QtScrcpy.pro @@ -29,13 +29,15 @@ SOURCES += \ dialog.cpp \ adbprocess.cpp \ decoder.cpp \ - server.cpp + server.cpp \ + convert.cpp HEADERS += \ dialog.h \ adbprocess.h \ decoder.h \ - server.h + server.h \ + convert.h FORMS += \ dialog.ui diff --git a/src/QtScrcpy.pro.user b/src/QtScrcpy.pro.user deleted file mode 100644 index 8874608..0000000 --- a/src/QtScrcpy.pro.user +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - EnvironmentId - {49c3991c-71bb-4f46-826d-1d1cf5cba2d4} - - - ProjectExplorer.Project.ActiveTarget - 0 - - - ProjectExplorer.Project.EditorSettings - - true - false - true - - Cpp - - CppGlobal - - - - QmlJS - - QmlJSGlobal - - - 2 - UTF-8 - false - 4 - false - 80 - true - true - 1 - true - false - 0 - true - true - 0 - 8 - true - 1 - true - true - true - false - - - - ProjectExplorer.Project.PluginSettings - - - - ProjectExplorer.Project.Target.0 - - Desktop Qt 5.9.6 MSVC2015 32bit - Desktop Qt 5.9.6 MSVC2015 32bit - qt.596.win32_msvc2015_kit - 0 - 0 - 0 - - G:/mygitcode/QtScrcpy/build-QtScrcpy-Desktop_Qt_5_9_6_MSVC2015_32bit-Debug - - - true - qmake - - QtProjectManager.QMakeBuildStep - true - - false - false - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - Build - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - Clean - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Debug - Debug - Qt4ProjectManager.Qt4BuildConfiguration - 2 - true - - - G:/mygitcode/QtScrcpy/build-QtScrcpy-Desktop_Qt_5_9_6_MSVC2015_32bit-Release - - - true - qmake - - QtProjectManager.QMakeBuildStep - false - - false - false - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - Build - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - Clean - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Release - Release - Qt4ProjectManager.Qt4BuildConfiguration - 0 - true - - - G:/mygitcode/QtScrcpy/build-QtScrcpy-Desktop_Qt_5_9_6_MSVC2015_32bit-Profile - - - true - qmake - - QtProjectManager.QMakeBuildStep - true - - false - true - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - Build - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - Clean - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Profile - Profile - Qt4ProjectManager.Qt4BuildConfiguration - 0 - true - - 3 - - - 0 - 部署 - - ProjectExplorer.BuildSteps.Deploy - - 1 - 部署设置 - - ProjectExplorer.DefaultDeployConfiguration - - 1 - - - false - false - 1000 - - true - - false - false - false - false - true - 0.01 - 10 - true - 1 - 25 - - 1 - true - false - true - valgrind - - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - - 2 - - QtScrcpy - - Qt4ProjectManager.Qt4RunConfiguration:G:/mygitcode/QtScrcpy/src/QtScrcpy.pro - true - - QtScrcpy.pro - false - - G:/mygitcode/QtScrcpy/build-QtScrcpy-Desktop_Qt_5_9_6_MSVC2015_32bit-Debug - 3768 - false - true - false - false - true - - 1 - - - - ProjectExplorer.Project.TargetCount - 1 - - - ProjectExplorer.Project.Updater.FileVersion - 18 - - - Version - 18 - - diff --git a/src/adbprocess.h b/src/adbprocess.h index f32885d..0ea3e95 100644 --- a/src/adbprocess.h +++ b/src/adbprocess.h @@ -17,7 +17,7 @@ public: }; explicit AdbProcess(QObject *parent = nullptr); - ~AdbProcess(); + virtual ~AdbProcess(); void execute(const QString& serial, const QStringList& args); void forward(const QString& serial, quint16 localPort, const QString& deviceSocketName); diff --git a/src/convert.cpp b/src/convert.cpp new file mode 100644 index 0000000..c69cd2f --- /dev/null +++ b/src/convert.cpp @@ -0,0 +1,11 @@ +#include "convert.h" + +Convert::Convert() +{ + +} + +Convert::~Convert() +{ + +} diff --git a/src/convert.h b/src/convert.h new file mode 100644 index 0000000..909210a --- /dev/null +++ b/src/convert.h @@ -0,0 +1,12 @@ +#ifndef CONVERT_H +#define CONVERT_H + + +class Convert +{ +public: + Convert(); + virtual ~Convert(); +}; + +#endif // CONVERT_H diff --git a/src/decoder.cpp b/src/decoder.cpp index 152bb08..eb67ae6 100644 --- a/src/decoder.cpp +++ b/src/decoder.cpp @@ -9,6 +9,11 @@ Decoder::Decoder() } +Decoder::~Decoder() +{ + +} + bool Decoder::init() { #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100) diff --git a/src/decoder.h b/src/decoder.h index ff56eba..45f5925 100644 --- a/src/decoder.h +++ b/src/decoder.h @@ -16,6 +16,7 @@ class Decoder : public QThread Q_OBJECT public: Decoder(); + virtual ~Decoder(); public: static bool init(); diff --git a/src/server.cpp b/src/server.cpp index 120de3b..d8863e9 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -27,6 +27,11 @@ Server::Server(QObject *parent) : QObject(parent) } +Server:: ~Server() +{ + +} + const QString& Server::getServerPath() { if (m_serverPath.isEmpty()) { diff --git a/src/server.h b/src/server.h index 86f236a..2b23899 100644 --- a/src/server.h +++ b/src/server.h @@ -22,6 +22,7 @@ class Server : public QObject }; public: explicit Server(QObject *parent = nullptr); + virtual ~Server(); bool start(const QString& serial, quint16 localPort, quint16 maxSize, quint32 bitRate, const QString& crop); bool connectTo();