From d958e11e2b3cde75f481bdb734be10b4e1dda585 Mon Sep 17 00:00:00 2001 From: Tannin Date: Fri, 6 May 2016 23:47:51 +0200 Subject: now using github for self updater --- src/selfupdater.h | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'src/selfupdater.h') diff --git a/src/selfupdater.h b/src/selfupdater.h index 37021b42..4743f6a4 100644 --- a/src/selfupdater.h +++ b/src/selfupdater.h @@ -22,6 +22,7 @@ along with Mod Organizer. If not, see . #include +#include class Archive; class NexusInterface; @@ -87,9 +88,6 @@ public: **/ MOBase::VersionInfo getVersion() const { return m_MOVersion; } - /** Set the game check for updates */ - void setNexusDownload(MOBase::IPluginGame const *game); - public slots: /** @@ -97,11 +95,6 @@ public slots: **/ void testForUpdate(); - void nxmDescriptionAvailable(int modID, QVariant userData, QVariant resultData, int requestID); - void nxmFilesAvailable(int modID, QVariant userData, QVariant resultData, int requestID); - void nxmRequestFailed(int modID, int fileID, QVariant userData, int requestID, const QString &errorMessage); - void nxmDownloadURLsAvailable(int modID, int fileID, QVariant userData, QVariant resultData, int requestID); - signals: /** @@ -121,10 +114,10 @@ signals: private: - void download(const QString &downloadLink, const QString &fileName); + void openOutputFile(const QString &fileName); + void download(const QString &downloadLink); void installUpdate(); void report7ZipError(const QString &errorMessage); - QString retrieveNews(const QString &description); void showProgress(); void closeProgress(); @@ -140,8 +133,6 @@ private: QWidget *m_Parent; MOBase::VersionInfo m_MOVersion; NexusInterface *m_Interface; - int m_UpdateRequestID; - QString m_NewestVersion; QFile m_UpdateFile; QNetworkReply *m_Reply; QProgressDialog *m_Progress { nullptr }; @@ -150,7 +141,9 @@ private: Archive *m_ArchiveHandler; - MOBase::IPluginGame const *m_NexusDownload; + GitHub m_GitHub; + QJsonObject m_UpdateCandidate; + }; -- cgit v1.3.1