mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 18:40:05 +00:00
43 lines
705 B
C++
43 lines
705 B
C++
#pragma once
|
|
|
|
#include <scwx/qt/types/github_types.hpp>
|
|
|
|
#include <QDialog>
|
|
|
|
namespace Ui
|
|
{
|
|
class UpdateDialog;
|
|
}
|
|
|
|
namespace scwx
|
|
{
|
|
namespace qt
|
|
{
|
|
namespace ui
|
|
{
|
|
|
|
class UpdateDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
Q_DISABLE_COPY_MOVE(UpdateDialog)
|
|
|
|
public:
|
|
explicit UpdateDialog(QWidget* parent = nullptr);
|
|
~UpdateDialog();
|
|
|
|
void UpdateReleaseInfo(const std::string& latestVersion,
|
|
const types::gh::Release& latestRelease);
|
|
|
|
private slots:
|
|
void on_downloadButton_clicked();
|
|
void on_installUpdateButton_clicked();
|
|
|
|
private:
|
|
class Impl;
|
|
std::unique_ptr<Impl> p;
|
|
Ui::UpdateDialog* ui;
|
|
};
|
|
|
|
} // namespace ui
|
|
} // namespace qt
|
|
} // namespace scwx
|