Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ParameterScreenCapture.cpp
1#include "ParameterScreenCapture.h"
2
3CParameterScreenCapture::CParameterScreenCapture(QObject *parent)
4 : CParameterBase{parent}
5 , m_Target(TARGET::Screen)
6 , m_Operate(OPERATE::Shot)
7 , m_nScreen(-1)
8{}
9
10CParameterScreenCapture::~CParameterScreenCapture()
11{}
12
13int CParameterScreenCapture::OnLoad(QSettings &set)
14{
15 return 0;
16}
17
18int CParameterScreenCapture::OnSave(QSettings &set)
19{
20 return 0;
21}
22
23const CParameterScreenCapture::TARGET CParameterScreenCapture::GetTarget() const
24{
25 return m_Target;
26}
27
28int CParameterScreenCapture::SetTarget(TARGET tg)
29{
30 if(m_Target == tg)
31 return 0;
32 m_Target = tg;
33 SetModified(true);
34 return 0;
35}
36
37const CParameterScreenCapture::OPERATE CParameterScreenCapture::GetOperate() const
38{
39 return m_Operate;
40}
41
42int CParameterScreenCapture::SetOperate(OPERATE opt)
43{
44 if(m_Operate == opt)
45 return 0;
46 m_Operate = opt;
47 SetModified(true);
48 return 0;
49}
50
51const int CParameterScreenCapture::GetScreen() const
52{
53 return m_nScreen;
54}
55
56int CParameterScreenCapture::SetScreen(int screen)
57{
58 if(m_nScreen == screen)
59 return 0;
60 m_nScreen = screen;
61 SetModified(true);
62 return 0;
63}
64
65const QCapturableWindow CParameterScreenCapture::GetWindow() const
66{
67 return m_WindowCapture;
68}
69
70int CParameterScreenCapture::SetWindow(QCapturableWindow w)
71{
72 if(m_WindowCapture == w)
73 return 0;
74 m_WindowCapture = w;
75 SetModified(true);
76 return 0;
77}
The interface of connecter parameters.
int SetModified(bool bModified=true)
When setting parameters, if there is a modification, it is called.