PrismLauncher/launcher/updater/windows/UpdaterDialogs.h
Rachel Powers 1c91d2f242 feat: paliminary updater
- can check for need to update
- can select a version to update to
- perform update: TODO

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-05-30 23:03:44 -07:00

34 lines
843 B
C++

#pragma once
#include <QDialog>
#include <QTreeWidgetItem>
#include "Version.h"
#include "updater/windows/GitHubRelease.h"
namespace Ui {
class SelectReleaseDialog;
}
class SelectReleaseDialog : public QDialog {
Q_OBJECT
public:
explicit SelectReleaseDialog(const Version& cur_version, const QList<GitHubRelease>& releases, QWidget* parent = 0);
~SelectReleaseDialog();
void loadReleases();
void appendRelease(GitHubRelease const& release);
GitHubRelease selectedRelease() { return m_selectedRelease; }
private slots:
GitHubRelease getRelease(QTreeWidgetItem* item);
void selectionChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous);
protected:
QList<GitHubRelease> m_releases;
GitHubRelease m_selectedRelease;
Version m_currentVersion;
Ui::SelectReleaseDialog* ui;
};