legacyapp.h 743 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef LEGACYAPP_H
  2. #define LEGACYAPP_H
  3. #include <QObject>
  4. #include <QSettings>
  5. #include <QApplication>
  6. #include <queue>
  7. #include "mainwindow.h"
  8. #include <LotroDat.h>
  9. class MainWindow;
  10. class FileDownloader;
  11. class LegacyApp : public QObject
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit LegacyApp(QObject *parent = nullptr);
  16. void Init();
  17. private:
  18. void StartDatFilesInitialisation();
  19. signals:
  20. private slots:
  21. void DownloadFinished();
  22. public:
  23. MainWindow window;
  24. LOTRO_DAT::DatFile client_local_dat;
  25. std::queue<QString> patch_databases_queue;
  26. bool client_local_dat_busy;
  27. QSettings properties;
  28. FileDownloader* dowloader;
  29. std::queue<std::pair<QString, QString>> download_queue;
  30. };
  31. #endif // LEGACYAPP_H