mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 18:45:36 +00:00
* initial save classes for gui save file * fixup * some more settings passed to the new saving file * even more variables parsing * more settings * fixup * more settings * more settings * clang fix * fixed wrong setting * more setting * more setting * added ca_ES * rename to general_settings * added set-addon-folder in main * fixup * fixup2 * added sr_CS * Update CMakeLists.txt --------- Co-authored-by: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com>
44 lines
1.3 KiB
C++
44 lines
1.3 KiB
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#ifndef CHECKUPDATE_H
|
|
#define CHECKUPDATE_H
|
|
|
|
#include <QCheckBox>
|
|
#include <QDialog>
|
|
#include <QNetworkAccessManager>
|
|
#include <QPushButton>
|
|
#include "gui_settings.h"
|
|
|
|
class CheckUpdate : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CheckUpdate(std::shared_ptr<gui_settings> gui_settings, const bool showMessage,
|
|
QWidget* parent = nullptr);
|
|
~CheckUpdate();
|
|
|
|
private slots:
|
|
void CheckForUpdates(const bool showMessage);
|
|
void DownloadUpdate(const QString& url);
|
|
void Install();
|
|
|
|
private:
|
|
void setupUI(const QString& downloadUrl, const QString& latestDate, const QString& latestRev,
|
|
const QString& currentDate, const QString& currentRev);
|
|
|
|
void requestChangelog(const QString& currentRev, const QString& latestRev,
|
|
const QString& downloadUrl, const QString& latestDate,
|
|
const QString& currentDate);
|
|
|
|
QCheckBox* autoUpdateCheckBox;
|
|
QPushButton* yesButton;
|
|
QPushButton* noButton;
|
|
QString updateDownloadUrl;
|
|
|
|
QNetworkAccessManager* networkManager;
|
|
std::shared_ptr<gui_settings> m_gui_settings;
|
|
};
|
|
|
|
#endif // CHECKUPDATE_H
|