Files
Upsilon/apps/global_preferences.h
Émilie Feral 3f711da8e4 [Makefile] Create a build option: EPSILON_BOOT_PROMPT that can be
'update' or 'beta' to display a prompt informing about new update or
beta version
2018-10-16 11:09:50 +02:00

35 lines
811 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);
#ifdef EPSILON_BOOT_PROMPT
bool showPopUp() const { return m_showPopUp; }
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;
#ifdef EPSILON_BOOT_PROMPT
bool m_showPopUp;
#endif
int m_brightnessLevel;
};
#endif