123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef LEGACYAPPLICATION_H
- #define LEGACYAPPLICATION_H
- #include <QThread>
- #include <QTimer>
- #include "utils.h"
- class LotroDatManager;
- class MainWindow;
- class LegacyApplication : public QObject
- {
- Q_OBJECT
- public:
- static LegacyApplication& instance() {
- static LegacyApplication instance;
- return instance;
- }
- ~LegacyApplication();
- private:
- LegacyApplication();
- public:
- bool init();
- signals:
- void ErrorStatusChanged(AppErrorStatus status);
- void SecondsToNextTryToInitChanged(size_t seconds_elapsed);
- private slots:
- void InitModules();
- private:
- MainWindow *gui = nullptr;
- QThread* patch_downloader_thread_;
- QThread* patch_installer_thread_;
- QTimer modules_init_timer_;
- size_t seconds_after_previous_try_to_init_ = 10; // init value should be equal to try_to_init_timeout_
- const size_t try_to_init_timeout_ = 10;
- };
- #endif // LEGACYAPPLICATION_H
|