ConfigManager.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * ConfigManager.h
  3. *
  4. * Created on: Jun 17, 2017
  5. * Author: guoxs
  6. */
  7. #ifndef _MANAGER_CONFIG_MANAGER_H_
  8. #define _MANAGER_CONFIG_MANAGER_H_
  9. #include <string>
  10. class ConfigManager {
  11. public:
  12. static ConfigManager* getInstance();
  13. const char* getVersion() const;
  14. std::string getResFilePath(const std::string &resFileName) const;
  15. int getLongClickTimeOut() const;
  16. int getMinBrightness() const;
  17. int getMaxBrightness() const;
  18. int getDefBrightness() const;
  19. const std::string& getStartupLibPath() const;
  20. int getScreensaverTimeOut() const;
  21. const std::string& getUartName() const;
  22. unsigned int getUartBaudRate() const;
  23. const std::string& getDictPinyinPath() const;
  24. const std::string& getLanguagePath() const;
  25. const std::string& getLanguageInternalPath() const;
  26. const std::string& getLanguageCode() const;
  27. int getScreenRotate() const;
  28. bool isDebugVersion() const;
  29. bool isNeedToStartupTouchCalibration() const;
  30. private:
  31. ConfigManager();
  32. void initEasyUICfg();
  33. };
  34. #define CONFIGMANAGER ConfigManager::getInstance()
  35. #endif /* _MANAGER_CONFIG_MANAGER_H_ */