Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ParameterScreenCapture.h
1#ifndef PARAMETERSCREENCAPTURE_H
2#define PARAMETERSCREENCAPTURE_H
3
4#pragma once
5
6#include <QCapturableWindow>
7
8#include "ParameterBase.h"
9
11{
12 Q_OBJECT
13public:
14 explicit CParameterScreenCapture(QObject *parent = nullptr);
16
17 enum class TARGET {
18 Screen,
19 Window,
20 CustomRectangle,
21 Curstomize
22 };
23 Q_ENUM(TARGET)
24 const TARGET GetTarget() const;
25 int SetTarget(TARGET tg);
26
27 enum class OPERATE {
28 Shot,
29 Record
30 };
31 Q_ENUM(OPERATE)
32 const OPERATE GetOperate() const;
33 int SetOperate(OPERATE opt);
34
35 const int GetScreen() const;
36 int SetScreen(int screen);
37
38 const QCapturableWindow GetWindow() const;
39 int SetWindow(QCapturableWindow w);
40
41private:
42 TARGET m_Target;
43 OPERATE m_Operate;
44 int m_nScreen;
45 QCapturableWindow m_WindowCapture;
46
47 // CParameter interface
48protected:
49 virtual int OnLoad(QSettings &set) override;
50 virtual int OnSave(QSettings &set) override;
51};
52
53#endif // PARAMETERSCREENCAPTURE_H
The interface of connecter parameters.