From 88013e82f06e2cc5ddef6dc20cd94d825bfa98d0 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 20 Jun 2023 16:13:11 +0200 Subject: [PATCH] Added maintenance-mode parameter --- update.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update.h b/update.h index ab30e4d..0f060d4 100644 --- a/update.h +++ b/update.h @@ -29,13 +29,14 @@ class Update : public QObject { QFile m_update_ctrl_file; QFile m_update_ctrl_file_copy; QString m_workingDir; + bool m_maintenanceMode; bool m_init; bool updateBinary(char const *fileToSendToDC); bool updatePrinterConf(int templateIdx, QString fileToSendToDC); bool finishUpdate(bool finish); - QStringList getOpenLines(); + QStringList getLinesToWorkOn(); QStringList split(QString line, QChar sep = ','); bool execUpdateScript(); @@ -50,6 +51,7 @@ public: explicit Update(hwinf *hw, QString update_ctrl_file, QString workingDir = ".", + bool maintenanceMode = false, QObject *parent = nullptr, char const *serialInterface = SERIAL_PORT, char const *baudrate = "115200");