mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-04-15 01:00:47 -04:00
feat(updater): Improved Updater System w/ Automation & SCM Logic Changes
Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
@@ -5,9 +5,11 @@
|
|||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
#include "citron/updater/updater_service.h"
|
#include "citron/updater/updater_service.h"
|
||||||
|
|
||||||
class QString;
|
class QString;
|
||||||
|
class QTimer;
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class UpdaterDialog;
|
class UpdaterDialog;
|
||||||
@@ -15,9 +17,8 @@ namespace Ui {
|
|||||||
|
|
||||||
namespace Updater {
|
namespace Updater {
|
||||||
|
|
||||||
// Declarations for helper functions
|
// Helper function declarations to satisfy -Werror=missing-declarations
|
||||||
QString FormatDateTimeString(const std::string& iso_string);
|
QString FormatDateTimeString(const std::string& iso_string);
|
||||||
|
|
||||||
QString FormatChangelog(const std::string& raw_changelog);
|
QString FormatChangelog(const std::string& raw_changelog);
|
||||||
|
|
||||||
class UpdaterDialog : public QDialog {
|
class UpdaterDialog : public QDialog {
|
||||||
@@ -29,8 +30,11 @@ namespace Updater {
|
|||||||
|
|
||||||
void CheckForUpdates();
|
void CheckForUpdates();
|
||||||
|
|
||||||
private slots:
|
// Public methods for main.cpp to trigger the automated update flow
|
||||||
void OnUpdateCheckCompleted(bool has_update, const Updater::UpdateInfo& update_info);
|
void OnUpdateCheckCompleted(bool has_update, const Updater::UpdateInfo& update_info);
|
||||||
|
void StartUpdateImmediate();
|
||||||
|
|
||||||
|
private slots:
|
||||||
void OnUpdateDownloadProgress(int percentage, qint64 bytes_received, qint64 bytes_total);
|
void OnUpdateDownloadProgress(int percentage, qint64 bytes_received, qint64 bytes_total);
|
||||||
void OnUpdateInstallProgress(int percentage, const QString& current_file);
|
void OnUpdateInstallProgress(int percentage, const QString& current_file);
|
||||||
void OnUpdateCompleted(Updater::UpdaterService::UpdateResult result, const QString& message);
|
void OnUpdateCompleted(Updater::UpdaterService::UpdateResult result, const QString& message);
|
||||||
|
|||||||
Reference in New Issue
Block a user