forked from AgoraIO/Basic-Video-Call
-
Notifications
You must be signed in to change notification settings - Fork 0
/
agoraconfig.cpp
97 lines (77 loc) · 2.09 KB
/
agoraconfig.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#include "agoraconfig.h"
CAgoraConfig::CAgoraConfig()
{
m_spConfig = std::make_shared<QSettings>("AgoraConfigOpenVideoCall.ini",QSettings::IniFormat);
}
void CAgoraConfig::setAppId(const QString &str)
{
return m_spConfig->setValue("/BaseInfo/AppId",str);
}
QString CAgoraConfig::getAppId()
{
return m_spConfig->value("/BaseInfo/AppId").toString();
}
void CAgoraConfig::setChannelName(const QString &str)
{
return m_spConfig->setValue("/BaseInfo/CameraName",str);
}
QString CAgoraConfig::getChannelName()
{
return m_spConfig->value("/BaseInfo/ChannelName").toString();
}
void CAgoraConfig::setEnableVideo(bool bEnable)
{
return m_spConfig->setValue("/BaseInfo/EnableVideo",bEnable);
}
bool CAgoraConfig::getEnableVideo()
{
return m_spConfig->value("/BaseInfo/EnableVideo").toBool();
}
void CAgoraConfig::setEnableAudio(bool bEnable)
{
return m_spConfig->setValue("/BaseInfo/EnableAudio",bEnable);
}
bool CAgoraConfig::getEnableAudio()
{
return m_spConfig->value("/BaseInfo/EnableAudio").toBool();
}
void CAgoraConfig::setEnableBeauty(bool bEnable)
{
return m_spConfig->setValue("/BaseInfo/EnableBeauty", bEnable);
}
bool CAgoraConfig::getEnableBeauty()
{
return m_spConfig->value("/BaseInfo/EnableBeauty").toBool();
}
void CAgoraConfig::setLigtheningContrastLevel(int level)
{
return m_spConfig->setValue("/Beauty/LightengingContrastLevel", level);
}
int CAgoraConfig::getLigtheningContrastLevel()
{
return m_spConfig->value("/Beauty/LightengingContrastLevel").toInt();
}
void CAgoraConfig::setRedness(int level)
{
return m_spConfig->setValue("/Beauty/Redness", level);
}
int CAgoraConfig::getRedness()
{
return m_spConfig->value("/Beauty/Redness").toInt();
}
void CAgoraConfig::setLightenging(int lightening)
{
return m_spConfig->setValue("/Beauty/Lightening", lightening);
}
int CAgoraConfig::getLightenging()
{
return m_spConfig->value("/Beauty/Lightening").toInt();
}
void CAgoraConfig::setSmoothness(int smooth)
{
return m_spConfig->setValue("/Beauty/Smoothness", smooth);
}
int CAgoraConfig::getSmoothness()
{
return m_spConfig->value("/Beauty/Smoothness").toInt();
}