Use abstraction to refactor remote desk gui

This commit is contained in:
dijunkun
2024-05-29 17:33:41 +08:00
parent 93d0e3a5d0
commit 5d8408d892
12 changed files with 2235 additions and 918 deletions

View File

@@ -0,0 +1,21 @@
#include "config_center.h"
ConfigCenter::ConfigCenter() {}
ConfigCenter::~ConfigCenter() {}
int ConfigCenter::SetVideoQuality(VIDEO_QUALITY video_quality) {
video_quality_ = video_quality;
return 0;
}
int ConfigCenter::SetLanguage(LANGUAGE language) {
language_ = language;
return 0;
}
ConfigCenter::VIDEO_QUALITY ConfigCenter::GetVideoQuality() {
return video_quality_;
}
ConfigCenter::LANGUAGE ConfigCenter::GetLanguage() { return language_; }