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,32 @@
/*
* @Author: DI JUNKUN
* @Date: 2024-05-29
* Copyright (c) 2024 by DI JUNKUN, All Rights Reserved.
*/
#ifndef _CONFIG_CENTER_H_
#define _CONFIG_CENTER_H_
class ConfigCenter {
public:
enum class VIDEO_QUALITY { LOW = 0, MEDIUM = 1, HIGH = 2 };
enum class LANGUAGE { CHINESE = 0, ENGLISH = 1 };
public:
ConfigCenter();
~ConfigCenter();
public:
int SetVideoQuality(VIDEO_QUALITY video_quality);
int SetLanguage(LANGUAGE language);
public:
VIDEO_QUALITY GetVideoQuality();
LANGUAGE GetLanguage();
private:
VIDEO_QUALITY video_quality_ = VIDEO_QUALITY::MEDIUM;
LANGUAGE language_ = LANGUAGE::ENGLISH;
};
#endif