Updater.h 665 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2018 Dolphin Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <string>
  5. #include <QThread>
  6. #include "UICommon/AutoUpdate.h"
  7. // Refer to docs/autoupdate_overview.md for a detailed overview of the autoupdate process
  8. class QWidget;
  9. class Updater : public QThread, public AutoUpdateChecker
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit Updater(QWidget* parent, std::string update_track, std::string hash_override);
  14. void run() override;
  15. void OnUpdateAvailable(const NewVersionInformation& info) override;
  16. void CheckForUpdate();
  17. private:
  18. QWidget* m_parent;
  19. std::string m_update_track;
  20. std::string m_hash_override;
  21. };