legacyapp.h 748 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 NetworkDownloader;
  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. NetworkDownloader* dowloader;
  29. std::queue<std::pair<QString, QString>> download_queue;
  30. };
  31. #endif // LEGACYAPP_H