config.h 797 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #include <QSettings>
  4. #include <QDebug>
  5. #define ORGANIZATION_NAME "LotRO: Legacy Team"
  6. #define ORGANIZATION_DOMAIN "www.translate.lotros.ru"
  7. #define APPLICATION_NAME "LotRO: Legacy"
  8. class AConfig {
  9. public:
  10. AConfig();
  11. AConfig( const AConfig&);
  12. AConfig& operator=( AConfig& );
  13. void saveConfig();
  14. void loadConfig();
  15. QString getSkinFile();
  16. QString getSkinName();
  17. void loadSkin();
  18. void setValue(QString section, QString key, QString value);
  19. QString getValue(QString section, QString key);
  20. void deleteKey(QString section, QString key);
  21. void deleteSection(QString section);
  22. QStringList getLotroPath();
  23. const char *getDatPath(int id);
  24. void saveAllDatFiles();
  25. QString conffile;
  26. };
  27. #endif // CONFIG_H