Added maintenance-mode parameter
This commit is contained in:
parent
079a6910dd
commit
88013e82f0
4
update.h
4
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");
|
||||
|
Loading…
Reference in New Issue
Block a user