Rabbit Remote Control 0.0.32
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;
30protected:
31 virtual int Initial() override;
32 virtual int Clean() override;
33
34public Q_SLOTS:
35 virtual int Connect() override;
36 virtual int DisConnect() override;
37
38private Q_SLOTS:
39 virtual int slotStart();
40 virtual int slotStop();
41
42private:
43 virtual QDialog *OnOpenDialogSettings(QWidget *parent) override;
44
45 QVideoWidget* m_pWidget;
46 CParameterScreenCapture m_Parameter;
47 QScreenCapture m_ScreenCapture;
48 QWindowCapture m_WindowCapture;
49 QMediaCaptureSession m_CaptureSessioin;
50 QMediaRecorder m_Recorder;
51 QImageCapture m_ImageCapture;
52 QString m_szRecordFile;
53
54};
55
56#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.