Introduced a ScrcpyWindow to enable integration of the scrcpy tool for device screen mirroring within the application. Platform-specific embedding is supported for macOS and Windows, with structure adjustments made in MainWindow and the build system (CMakeLists.txt).
23 lines
327 B
C++
23 lines
327 B
C++
#pragma once
|
|
|
|
#include <QWidget>
|
|
#include <QProcess>
|
|
|
|
class ScrcpyWindow final : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ScrcpyWindow(QWidget *parent = nullptr);
|
|
|
|
~ScrcpyWindow() override;
|
|
|
|
private:
|
|
QProcess *m_process;
|
|
|
|
void startScrcpy();
|
|
|
|
void stopScrcpy();
|
|
|
|
void embedPlatformSpecific();
|
|
};
|