add update logic
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <expected>
|
||||
#include <QObject>
|
||||
#include <QProcess>
|
||||
#include <QProcessEnvironment>
|
||||
@@ -8,6 +9,7 @@
|
||||
#include <QTemporaryDir>
|
||||
#include <QTimer>
|
||||
#include <QVariantList>
|
||||
#include "checkupdatemanager.hpp"
|
||||
#include "updatemanager.hpp"
|
||||
|
||||
class ProcessManager : public QObject
|
||||
@@ -44,6 +46,7 @@ class ProcessManager : public QObject
|
||||
Status status() const;
|
||||
|
||||
private:
|
||||
CheckUpdateManager m_checkupdate_manager;
|
||||
UpdateManager m_update_manager;
|
||||
|
||||
private:
|
||||
@@ -56,7 +59,10 @@ class ProcessManager : public QObject
|
||||
private:
|
||||
void set_packages(const QVariantList& v);
|
||||
void set_status(Status s);
|
||||
QString create_ask_pass_helper();
|
||||
std::expected<QString, QString> check_askpas();
|
||||
void finished(bool ok, QString reason);
|
||||
void set_updating_flag(bool updated, bool updating);
|
||||
|
||||
signals:
|
||||
void packages_changed();
|
||||
|
||||
Reference in New Issue
Block a user