graphicspatch.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef IMAGESPATCH_H
  2. #define IMAGESPATCH_H
  3. #include <QObject>
  4. #include "models/patch/patch.h"
  5. #include "models/lotrodatmanager.h"
  6. class GraphicsPatch : public Patch
  7. {
  8. Q_OBJECT
  9. public:
  10. GraphicsPatch(LotroDatManager* mgr, QObject* parent = nullptr);
  11. public slots:
  12. virtual void checkForUpdates() override;
  13. virtual void download() override;
  14. virtual void install() override;
  15. virtual void activate() override;
  16. private slots:
  17. // void onDownloaderProgressChanged(Downloader* ptr, Downloader::Status status);
  18. // void onDownloaderFinished(Downloader* ptr);
  19. // void onLotroDatManagerOperationFinished(QString operation_name, QVector<QVariant> args, bool successful);
  20. // void onLotroDatManagerOperationStarted(QString operation_name, QVector<QVariant> args);
  21. // void onLotroDatManagerStatusChanged(LotroDatManager::Status status);
  22. private:
  23. const QStringList databases_names = {
  24. "image",
  25. "texture",
  26. "loadscreen",
  27. };
  28. // void installLoadscreens();
  29. // void enableLoadscreens();
  30. // void disableLoadscreens();
  31. // quint8 elapsed_patches_to_download_ = 0; // for download process
  32. // quint8 elapsed_databases_to_install_ = 0; // for install process
  33. // quint8 elapsed_categories_to_activate_ = 0; // for activate/deactivate process
  34. };
  35. #endif // IMAGESPATCH_H