Added maintenance-mode parameter

This commit is contained in:
Gerhard Hoffmann 2023-06-20 16:13:11 +02:00
parent 079a6910dd
commit 88013e82f0

View File

@ -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");