Index: sources/update/VSwUpdate.h =================================================================== diff -u -rf0118ee7e526bb64e9f78059f030929792a5a98a -r7cf31f6cfef97bb564a103c263821a3b722c8a2b --- sources/update/VSwUpdate.h (.../VSwUpdate.h) (revision f0118ee7e526bb64e9f78059f030929792a5a98a) +++ sources/update/VSwUpdate.h (.../VSwUpdate.h) (revision 7cf31f6cfef97bb564a103c263821a3b722c8a2b) @@ -17,20 +17,24 @@ #ifndef V_SW_UPDATE_H_ #define V_SW_UPDATE_H_ -#include +#include "IEnterBootLoader.h" +#include "Package.h" + #include + +#include #include #include #include #include #include #include -#include "Package.h" + /*! * \brief The view model for software update. */ -class VSWUpdate : public QAbstractTableModel +class VSWUpdate : public QAbstractTableModel, SwUpdate::IEnterBootLoader { Q_OBJECT Q_ENUMS(Roles) @@ -203,6 +207,9 @@ } } + // IEnterBootLoader interface. + void sendEnterBootloader(bool asHd); + signals: /*! Signal that data changed. */ @@ -252,7 +259,7 @@ protected: // Write an app styled can msg to control both FW nodes. - void sendAppCommand(uint16 cmd); + void sendAppCommand(uint16 cmd, bool asHd); // Log a message. void writeLog(const QString& msg, bool isDebug); @@ -302,6 +309,7 @@ bool _postWasOk; ///< Post was ok flag. bool _settingsOk; ///< Version and settings are ok. bool _wasTrialBoot; ///< This was a trial boot or normal. + std::chrono::time_point _lastPing; ///< Last ping time. }; #endif // V_SW_UPDATE_H_