Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ParameterPlayer.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef PARAMETERPLAYER_H
4#define PARAMETERPLAYER_H
5
6#include "ParameterBase.h"
7
9{
10 Q_OBJECT
11public:
12 explicit CParameterPlayer(QObject *parent = nullptr);
13
14 enum class TYPE {
15 Camera,
16 Url
17 };
18 Q_ENUM(TYPE)
19 const TYPE GetType() const;
20 int SetType(TYPE type);
21
22 const QString GetUrl() const;
23 int SetUrl(const QString &szUrl);
24
25 const int GetCamera() const;
26 int SetCamera(int nIndex);
27
28 const int GetAudioInput() const;
29 int SetAudioInput(int nIndex);
30Q_SIGNALS:
31 void sigAudioInput(int nIndex);
32
33public:
34 const bool GetEnableAudioInput() const;
35 int SetEnableAudioInput(bool bEnable);
36Q_SIGNALS:
37 void sigEnableAudioInput(bool bEnable);
38
39public:
40 const bool GetAudioInputMuted() const;
41 int SetAudioInputMuted(bool bMuted);
42Q_SIGNALS:
43 void sigAudioInputMuted(bool bMuted);
44
45public:
46 const float GetAudioInputVolume() const;
47 int SetAudioInputVolume(float fVolume);
48Q_SIGNALS:
49 void sigAudioInputVolume(float fVolume);
50
51public:
52 const int GetAudioOutput() const;
53 int SetAudioOutput(int nIndex);
54Q_SIGNALS:
55 void sigAudioOutput(int nIndex);
56
57public:
58 const bool GetEnableAudioOutput() const;
59 int SetEnableAudioOutput(bool bEnable);
60Q_SIGNALS:
61 void sigEnableAudioOutput(bool bEnable);
62
63public:
64 const bool GetAudioOutputMuted() const;
65 int SetAudioOutputMuted(bool bMuted);
66Q_SIGNALS:
67 void sigAudioOutputMuted(bool bMuted);
68
69public:
70 const float GetAudioOutputVolume() const;
71 int SetAudioOutputVolume(float fVolume);
72Q_SIGNALS:
73 void sigAudioOutputVolume(float fVolume);
74
75private:
76 TYPE m_Type;
77 QString m_szUrl;
78 int m_nCamera;
79 int m_nAudioInput;
80 bool m_bEnableAudioInput;
81 bool m_bAudioInputMuted;
82 float m_fAudioInputVolume;
83 int m_nAudioOutput;
84 bool m_bEnableAudioOutput;
85 bool m_bAudioOutputMuted;
86 float m_fAudioOutputVolume;
87
88public:
89 const int GetScreen() const;
90 int SetScreen(int nIndex);
91private:
92 int m_nScreen;
93
94 // CParameter interface
95protected:
96 virtual int OnLoad(QSettings &set) override;
97 virtual int OnSave(QSettings &set) override;
98};
99
100#endif // PARAMETERPLAYER_H
The interface of connecter parameters.