Refactoring of automatic updates (companion and firmware)

This commit is contained in:
bsongis
2014-05-20 23:38:37 +02:00
parent dc2ac966a3
commit e91390690c
10 changed files with 307 additions and 349 deletions
+2 -1
View File
@@ -46,9 +46,9 @@ class FlashInterface
FlashInterface(QString filename);
inline QString getDate() { return date; }
inline QString getTime() { return time; }
inline QString getStamp() { return QString("%1%2").arg(version.replace(".", "")).arg(date.replace("-", "")); }
int getSize() { return flash_size; }
inline QString getVersion() { return version; }
unsigned int getVersionId() { return versionId; }
inline QString getEEprom() { return eeprom; }
QImage getSplash();
bool setSplash(const QImage & newsplash);
@@ -71,6 +71,7 @@ class FlashInterface
QString date;
QString time;
QString version;
int versionId;
QString eeprom;
QByteArray splash;
uint splash_offset;