add base update in new struct code
This commit is contained in:
28
cpp/managers/updatemanager/updatemanager.hpp
Normal file
28
cpp/managers/updatemanager/updatemanager.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QProcess>
|
||||
#include <QVariantList>
|
||||
|
||||
class UpdateManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit UpdateManager(QObject* parent = nullptr);
|
||||
|
||||
private:
|
||||
QProcess m_process;
|
||||
|
||||
public:
|
||||
void check_update();
|
||||
|
||||
private:
|
||||
void on_process_finished(int exitCode, QProcess::ExitStatus status);
|
||||
void on_process_error(QProcess::ProcessError error);
|
||||
|
||||
signals:
|
||||
void finished(bool ok, QString reason = "");
|
||||
void packages_ready(QVariantList packages);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user