GetUiConfigFormDB.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // *****************************************************************************
  2. // 版权所有(C)2023~2099 上海骄成超声波技术有限公司
  3. // 保留所有权利
  4. // *****************************************************************************
  5. // 作者 : 杨坚
  6. // 版本 : 1.0
  7. // 功能说明:
  8. // 获取设置样式主题
  9. // *****************************************************************************
  10. #ifndef __GEN_INTERFACE_H__
  11. #define __GEN_INTERFACE_H__ 1
  12. #include <QJsonObject>
  13. #include <QtSql>
  14. #include <QSqlDatabase>
  15. #include <QSqlQuery>
  16. #include <QSqlError>
  17. class GetMainUiConfigFormDB
  18. {
  19. public:
  20. //从数据库中获取systemconfig表中的信息
  21. QJsonObject getInfofromDb();
  22. int getLanguageValue();
  23. int getThemeValue();
  24. void setLanguageValue(int data);
  25. void setThemeValue(int data);
  26. private:
  27. /**执行sql 通用语句
  28. */
  29. bool checkDatabase();
  30. int getConfigValue(const QString& function);
  31. bool setConfigValue(const QString& function, int value);
  32. };
  33. #endif //__GEN_INTERFACE_H__