config.h 769 B

1234567891011121314151617181920212223242526272829303132
  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. QString conffile;
  25. };
  26. #endif // CONFIG_H