lotromanager.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef LOTROMANAGER_H
  2. #define LOTROMANAGER_H
  3. #include <QObject>
  4. #include <QPushButton>
  5. #include <queue>
  6. #include <functional>
  7. #include <LotroDat.h>
  8. class LotroManager : public QObject
  9. {
  10. Q_OBJECT
  11. private:
  12. explicit LotroManager(QObject *parent = nullptr);
  13. public:
  14. static LotroManager& getInstance() {
  15. static LotroManager lotro_mgr_instance;
  16. return lotro_mgr_instance;
  17. }
  18. void startGame();
  19. bool openDatFile(int id);
  20. void applyPatch(QString name);
  21. void applyGlobal();
  22. bool isDatReady();
  23. int checkDatFile();
  24. void applyMicroPatch();
  25. void applyLoadscreens();
  26. bool setGameLocale(QString locale);
  27. void saveLocale(int locale, QPushButton *button);
  28. void saveDatFiles();
  29. public:
  30. void processFile();
  31. void installMicroPatch();
  32. void prepareMicroPatch();
  33. public:
  34. LOTRO_DAT::LOCALE dat_locale_;
  35. std::vector<LOTRO_DAT::DatFile> dat_files_;
  36. LOTRO_DAT::Database database_;
  37. signals:
  38. private slots:
  39. void handleFinisheddd();
  40. //void processQueue();
  41. };
  42. #endif // LOTROMANAGER_H