legacyapp.h 773 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. friend class MainWindow;
  15. public:
  16. explicit LegacyApp(QObject *parent = nullptr);
  17. void Init();
  18. private:
  19. void StartDatFilesInitialisation();
  20. signals:
  21. private slots:
  22. void DownloadFinished();
  23. private:
  24. MainWindow window;
  25. LOTRO_DAT::DatFile client_local_dat;
  26. std::queue<QString> patch_databases_queue;
  27. bool client_local_dat_busy;
  28. QSettings properties;
  29. FileDownloader* dowloader;
  30. std::queue<std::pair<QString, QString>> download_queue;
  31. };
  32. #endif // LEGACYAPP_H