#pragma once #include #include namespace chatterino { namespace singletons { class UpdateManager { UpdateManager(); public: enum UpdateStatus { None, Searching, UpdateAvailable, NoUpdateAvailable, Error }; // fourtf: don't add this class to the application class static UpdateManager &getInstance(); void checkForUpdates(); const QString &getCurrentVersion() const; const QString &getOnlineVersion() const; void installUpdates(); UpdateStatus getStatus() const; pajlada::Signals::Signal statusUpdated; private: QString currentVersion_; QString onlineVersion_; UpdateStatus status_ = None; void setStatus_(UpdateStatus status); }; } // namespace singletons } // namespace chatterino