diff options
author | Kenneth Chew <kenneth.c0@protonmail.com> | 2022-04-20 22:34:13 -0400 |
---|---|---|
committer | Kenneth Chew <kenneth.c0@protonmail.com> | 2022-05-19 15:16:37 -0400 |
commit | b5bdfa6c2e9a0eb62e476dd399b82bfa972e0320 (patch) | |
tree | 324b777374db033d5bc838ba931ca8cc5d4e93db /launcher/updater/UpdateChecker.h | |
parent | ea4ef1655bdadf04c36768f0f641ca7579f754cf (diff) | |
download | PrismLauncher-b5bdfa6c2e9a0eb62e476dd399b82bfa972e0320.tar.gz PrismLauncher-b5bdfa6c2e9a0eb62e476dd399b82bfa972e0320.tar.bz2 PrismLauncher-b5bdfa6c2e9a0eb62e476dd399b82bfa972e0320.zip |
Implement automatic and manual updates on macOS
Diffstat (limited to 'launcher/updater/UpdateChecker.h')
-rw-r--r-- | launcher/updater/UpdateChecker.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/launcher/updater/UpdateChecker.h b/launcher/updater/UpdateChecker.h index 13ee4efd..c569e49a 100644 --- a/launcher/updater/UpdateChecker.h +++ b/launcher/updater/UpdateChecker.h @@ -18,6 +18,10 @@ #include "net/NetJob.h" #include "GoUpdate.h" +#ifdef Q_OS_MAC +#include "updater/macsparkle/SparkleUpdater.h" +#endif + class UpdateChecker : public QObject { Q_OBJECT @@ -54,6 +58,13 @@ public: */ bool hasChannels() const; +#ifdef Q_OS_MAC + /*! + * Returns a pointer to the Sparkle updater. + */ + SparkleUpdater *getSparkleUpdater(); +#endif + signals: //! Signal emitted when an update is available. Passes the URL for the repo and the ID and name for the version. void updateAvailable(GoUpdate::Status status); @@ -117,5 +128,9 @@ private: QString m_currentRepoUrl; QString m_newRepoUrl; + +#ifdef Q_OS_MAC + SparkleUpdater *m_sparkleUpdater = new SparkleUpdater(); +#endif }; |