setup console manager
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QProcess>
|
||||
#include <QVariantList>
|
||||
#include <QTemporaryDir>
|
||||
#include "updatemanager.hpp"
|
||||
|
||||
class ConsoleManager : public QObject
|
||||
@@ -11,14 +8,13 @@ class ConsoleManager : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ConsoleManager(QObject* parent = nullptr);
|
||||
explicit ConsoleManager(UpdateManager* um, QObject* parent = nullptr);
|
||||
|
||||
private:
|
||||
QProcess m_process;
|
||||
|
||||
public:
|
||||
void set_package_manager(const QString& pm);
|
||||
void set_update_manager(const UpdateManager* um);
|
||||
|
||||
private:
|
||||
void add_log_line(const QString& line);
|
||||
@@ -27,7 +23,6 @@ class ConsoleManager : public QObject
|
||||
|
||||
private:
|
||||
QString m_package_manager = "yay";
|
||||
const UpdateManager* m_update_manager;
|
||||
QByteArray m_update_output;
|
||||
QStringList m_update_log;
|
||||
QString m_update_log_buffer;
|
||||
|
||||
Reference in New Issue
Block a user