update check refactoring
This commit is contained in:
parent
943e76043a
commit
6e06b86cb2
2 changed files with 133 additions and 118 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define UPDATECONTROLLER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QNetworkReply>
|
||||
|
||||
#include "settings.h"
|
||||
|
||||
|
|
@ -23,8 +24,19 @@ signals:
|
|||
void updateFound();
|
||||
|
||||
private:
|
||||
bool fetchGatewayUrl();
|
||||
bool fetchVersionInfo();
|
||||
bool fetchChangelog();
|
||||
bool fetchReleaseDate();
|
||||
bool isNewVersionAvailable();
|
||||
bool doSyncGet(const QString& endpoint, QByteArray& outData);
|
||||
void setupNetworkErrorHandling(QNetworkReply* reply, const QString& operation);
|
||||
void handleNetworkError(QNetworkReply* reply, const QString& operation);
|
||||
QString composeDownloadUrl();
|
||||
|
||||
std::shared_ptr<Settings> m_settings;
|
||||
|
||||
QString m_baseUrl;
|
||||
QString m_changelogText;
|
||||
QString m_version;
|
||||
QString m_releaseDate;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue