Add ismas-client object for update

This commit is contained in:
Gerhard Hoffmann 2025-02-20 15:56:06 +01:00
parent d7a4d98a29
commit 7258976528

View File

@ -19,6 +19,7 @@
#include "git/git_client.h" #include "git/git_client.h"
#include "ismas/ismas_client.h" #include "ismas/ismas_client.h"
#include "ismas/ApismClientForUpdate.h"
#include "utils.h" #include "utils.h"
#include "work_process_list.h" #include "work_process_list.h"
@ -199,6 +200,7 @@ class Worker : public QThread{
QString m_apismVersion; QString m_apismVersion;
WorkList m_workList; WorkList m_workList;
ApismClientForUpdate m_clForUpdate;
bool executeOpkgCommand(QString opkgCommand); bool executeOpkgCommand(QString opkgCommand);
bool cleanUpOpkgCache(); bool cleanUpOpkgCache();
@ -402,6 +404,9 @@ public:
return m_ismasClient; return m_ismasClient;
} }
ApismClientForUpdate &clientForUpdate() { return m_clForUpdate; }
ApismClientForUpdate const &clientForUpdate() const { return m_clForUpdate; }
Worker *GUI(QStringList const &lst = QStringList()) { Worker *GUI(QStringList const &lst = QStringList()) {
m_guiMsg = lst; m_guiMsg = lst;
return this; return this;