EXConfig.h 994 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef EXCONFIG_H
  2. #define EXCONFIG_H
  3. #include <QObject>
  4. class QSettings;
  5. class EXConfig : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. explicit EXConfig(QObject *parent = nullptr);
  10. static QSettings *defaultConfig();
  11. static const QString username();
  12. static void setUsername(QString const username);
  13. static const QString password();
  14. static void setPassword(QString const password);
  15. static bool rememberPassword();
  16. static void setRememberPassword(bool rememberPassword);
  17. static int roleType();
  18. static void setRoleType(int roleType);
  19. static const QString techMessaureConfig();
  20. static void setTechMessaureConfig(QString const techMessaureConfig);
  21. static const QString dbPath();
  22. static void setDbPath(QString const dbPath);
  23. static const QString project();
  24. static void setProject(QString const project);
  25. static bool passwordModified();
  26. static void setPasswordModified(bool modified);
  27. signals:
  28. };
  29. #endif // EXCONFIG_H