mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
35 lines
804 B
C++
35 lines
804 B
C++
#ifndef APPS_GLOBAL_PREFERENCES_H
|
|
#define APPS_GLOBAL_PREFERENCES_H
|
|
|
|
#include "i18n.h"
|
|
|
|
class GlobalPreferences {
|
|
public:
|
|
enum class ExamMode {
|
|
Activate,
|
|
Desactivate
|
|
};
|
|
GlobalPreferences();
|
|
static GlobalPreferences * sharedGlobalPreferences();
|
|
I18n::Language language() const;
|
|
void setLanguage(I18n::Language language);
|
|
ExamMode examMode() const;
|
|
void setExamMode(ExamMode examMode);
|
|
#if EPSILON_SOFTWARE_UPDATE_PROMPT
|
|
bool showPopUp() const;
|
|
void setShowPopUp(bool showPopUp);
|
|
#endif
|
|
int brightnessLevel() const;
|
|
void setBrightnessLevel(int brightnessLevel);
|
|
constexpr static int NumberOfBrightnessStates = 5;
|
|
private:
|
|
I18n::Language m_language;
|
|
ExamMode m_examMode;
|
|
#if EPSILON_SOFTWARE_UPDATE_PROMPT
|
|
bool m_showPopUp;
|
|
#endif
|
|
int m_brightnessLevel;
|
|
};
|
|
|
|
#endif
|