Added maintenance-mode parameter
This commit is contained in:
		
							
								
								
									
										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");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user