Future: add getFileVersion() and checkDownloadedJsonVersions() to
check if download of Json-File worked and to ask what Json-Version is actually installed
This commit is contained in:
		
							
								
								
									
										2
									
								
								update.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								update.h
									
									
									
									
									
								
							@@ -58,6 +58,7 @@ public:
 | 
				
			|||||||
                    char const *baudrate = "115200");
 | 
					                    char const *baudrate = "115200");
 | 
				
			||||||
    virtual ~Update() override;
 | 
					    virtual ~Update() override;
 | 
				
			||||||
    bool doUpdate(int &displayIndex, QStringList const &linesToWorkOn);
 | 
					    bool doUpdate(int &displayIndex, QStringList const &linesToWorkOn);
 | 
				
			||||||
 | 
					    bool checkDownloadedJsonVersions(QStringList const& jsonFileNames);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    hwinf *hw() { return m_hw; }
 | 
					    hwinf *hw() { return m_hw; }
 | 
				
			||||||
    hwinf const *hw() const { return m_hw; }
 | 
					    hwinf const *hw() const { return m_hw; }
 | 
				
			||||||
@@ -87,6 +88,7 @@ private:
 | 
				
			|||||||
    bool downloadJson(enum FileTypeJson type, int templateIdx,
 | 
					    bool downloadJson(enum FileTypeJson type, int templateIdx,
 | 
				
			||||||
                      QString jsFileToSendToDC) const;
 | 
					                      QString jsFileToSendToDC) const;
 | 
				
			||||||
    QStringList getDcSoftAndHardWareVersion();
 | 
					    QStringList getDcSoftAndHardWareVersion();
 | 
				
			||||||
 | 
					    QString getFileVersion(QString const& jsonFile);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
private slots:
 | 
					private slots:
 | 
				
			||||||
    void readyReadStandardOutput();
 | 
					    void readyReadStandardOutput();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user