Qt: Support multiple updater channels

This commit is contained in:
Connor McLaughlin
2020-12-22 02:47:48 +10:00
parent 14c227a813
commit 7249825c16
5 changed files with 135 additions and 17 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include "ui_autoupdaterdialog.h"
#include <string>
#include <QtCore/QStringList>
#include <QtWidgets/QDialog>
class QNetworkAccessManager;
@@ -16,6 +18,8 @@ public:
~AutoUpdaterDialog();
static bool isSupported();
static QStringList getTagList();
static std::string getDefaultTag();
Q_SIGNALS:
void updateCheckCompleted();
@@ -38,6 +42,7 @@ private Q_SLOTS:
private:
void reportError(const char* msg, ...);
bool updateNeeded() const;
std::string getCurrentUpdateTag() const;
#ifdef WIN32
bool processUpdate(const QByteArray& update_data);