-
Notifications
You must be signed in to change notification settings - Fork 1k
/
agoraconfig.h
47 lines (37 loc) · 1004 Bytes
/
agoraconfig.h
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
#ifndef CAGORACONFIG_H
#define CAGORACONFIG_H
#include <memory>
#include <QSettings>
class CAgoraConfig
{
public:
CAgoraConfig();
void setAppId(const QString &str);
QString getAppId();
void setChannelName(const QString &str);
QString getChannelName();
void setEnableVideo(bool bEnable);
bool getEnableVideo();
void setEnableAudio(bool bEnable);
bool getEnableAudio();
void setEnableBeauty(bool bEnable);
bool getEnableBeauty();
void setLigtheningContrastLevel(int level);
int getLigtheningContrastLevel();
void setRedness(int level);
int getRedness();
void setLightenging(int lightening);
int getLightenging();
void setSmoothness(int smooth);
int getSmoothness();
void getVideoResolution(int& width, int height);
int getFPS();
int getBitrate();
bool isCustomFPS();
bool isCustomBitrate();
bool isCustomResolution();
QString getAppToken();
private:
std::shared_ptr<QSettings> m_spConfig;
};
#endif // CAGORACONFIG_H