Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
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
Connecter interface.
Definition Connecter.h:62
The plugin interface.
virtual QWidget * GetViewer() override
Get Viewer.
virtual QDialog * OnOpenDialogSettings(QWidget *parent) override
Open settgins dialog.
virtual qint16 Version() override
Version.
virtual int Initial() override
Initial parameters and resource.
virtual int Clean() override
Clean parameters and resource.