玉兔远程控制
0.1.0-bate11
Toggle main menu visibility
载入中...
搜索中...
未找到
Plugins
Player
ParameterPlayer.h
1
// Author: Kang Lin <kl222@126.com>
2
3
#ifndef PARAMETERPLAYER_H
4
#define PARAMETERPLAYER_H
5
6
#include "ParameterDesktop.h"
7
8
class
CParameterPlayer :
public
CParameterDesktop
9
{
10
Q_OBJECT
11
public
:
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);
30
Q_SIGNALS:
31
void
sigAudioInput(
int
nIndex);
32
33
public
:
34
const
bool
GetEnableAudioInput()
const
;
35
int
SetEnableAudioInput(
bool
bEnable);
36
Q_SIGNALS:
37
void
sigEnableAudioInput(
bool
bEnable);
38
39
public
:
40
const
bool
GetAudioInputMuted()
const
;
41
int
SetAudioInputMuted(
bool
bMuted);
42
Q_SIGNALS:
43
void
sigAudioInputMuted(
bool
bMuted);
44
45
public
:
46
const
float
GetAudioInputVolume()
const
;
47
int
SetAudioInputVolume(
float
fVolume);
48
Q_SIGNALS:
49
void
sigAudioInputVolume(
float
fVolume);
50
51
public
:
52
const
int
GetAudioOutput()
const
;
53
int
SetAudioOutput(
int
nIndex);
54
Q_SIGNALS:
55
void
sigAudioOutput(
int
nIndex);
56
57
public
:
58
const
bool
GetEnableAudioOutput()
const
;
59
int
SetEnableAudioOutput(
bool
bEnable);
60
Q_SIGNALS:
61
void
sigEnableAudioOutput(
bool
bEnable);
62
63
public
:
64
const
bool
GetAudioOutputMuted()
const
;
65
int
SetAudioOutputMuted(
bool
bMuted);
66
Q_SIGNALS:
67
void
sigAudioOutputMuted(
bool
bMuted);
68
69
public
:
70
const
float
GetAudioOutputVolume()
const
;
71
int
SetAudioOutputVolume(
float
fVolume);
72
Q_SIGNALS:
73
void
sigAudioOutputVolume(
float
fVolume);
74
75
private
:
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
88
public
:
89
bool
GetSubtitle()
const
;
90
void
SetSubtitle(
bool
subtitle);
91
private
:
92
bool
m_bSubtitle;
93
94
public
:
95
const
int
GetScreen()
const
;
96
int
SetScreen(
int
nIndex);
97
private
:
98
int
m_nScreen;
99
100
// CParameter interface
101
protected
:
102
virtual
int
OnLoad(QSettings &set)
override
;
103
virtual
int
OnSave(QSettings &set)
override
;
104
};
105
106
#endif
// PARAMETERPLAYER_H
作者:康林 (kl222@126.com)
版权所有(c) 康林工作室 保留所有权力