玉兔远程控制 0.0.31
载入中...
搜索中...
未找到
ScreenCapture.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef SCREENCAPTURE_H
4#define SCREENCAPTURE_H
5
6#pragma once
7
8#include <QMediaCaptureSession>
9#include <QScreenCapture>
10#include <QWindowCapture>
11#include <QImageCapture>
12#include <QMediaRecorder>
13#include <QVideoWidget>
14#include <QMenu>
15
16#include "Connecter.h"
17#include "ParameterScreenCapture.h"
18
20{
21 Q_OBJECT
22public:
23 explicit CScreenCapture(CPluginClient *plugin);
24 virtual ~CScreenCapture();
25
26 // CConnecter interface
27public:
28 virtual qint16 Version() override;
29 virtual QWidget *GetViewer() override;
30 virtual int Initial() override;
31 virtual int Clean() override;
32
33public Q_SLOTS:
34 virtual int Connect() override;
35 virtual int DisConnect() override;
36
37private Q_SLOTS:
38 virtual int slotStart();
39 virtual int slotStop();
40
41private:
42 virtual QDialog *OnOpenDialogSettings(QWidget *parent) override;
43
44 QVideoWidget* m_pWidget;
45 CParameterScreenCapture m_Parameter;
46 QScreenCapture m_ScreenCapture;
47 QWindowCapture m_WindowCapture;
48 QMediaCaptureSession m_CaptureSessioin;
49 QMediaRecorder m_Recorder;
50 QImageCapture m_ImageCapture;
51 QString m_szRecordFile;
52
53};
54
55#endif // SCREENCAPTURE_H
连接者应用接口。
Definition Connecter.h:62
客户端插件接口。用于建立 CConnecter 实例,它由协议插件实现。
virtual QWidget * GetViewer() override
得到显示视图
virtual QDialog * OnOpenDialogSettings(QWidget *parent) override
得到设置对话框
virtual qint16 Version() override
Version
virtual int Initial() override
Initial parameters and resource
virtual int Clean() override
Clean parameters and resource