Mercurial > public > ostc_companion
diff OSTC4Operations.h @ 5:115cfa4a3239 default tip
Added icon upload function for OSTC 4/5
For the upload the same process as the one for the firmware update is used => CRC functionality has been copied from the ostc_pack SW
| author | Ideenmodellierer |
|---|---|
| date | Tue, 30 Dec 2025 21:41:02 +0100 |
| parents | 0b3630a29ad8 |
| children |
line wrap: on
line diff
--- a/OSTC4Operations.h Sun Nov 30 18:37:32 2025 +0100 +++ b/OSTC4Operations.h Tue Dec 30 21:41:02 2025 +0100 @@ -45,8 +45,11 @@ #include <QRegularExpression> #include "AES/Adler16.h" +#include "ostc45_icon.h" +#include "crc_wrapper.h" #include "Export.h" #include <QFile> +#include <QString> ////////////////////////////////////////////////////////////////////////////// /// \brief Implementing various operations for H&W OSTC4 dive computer @@ -79,6 +82,8 @@ QFile _file; + std::unique_ptr<BmpToArray> bmp; + /// \param[in] dryRun: If TRUE, do not upload FW, just check file structure. void openFirmware(const QString& fileName, bool dryRun); @@ -91,6 +96,7 @@ void writeAllHeader(unsigned char* pBuffer) override; void getAllSamples(unsigned char* pBuffer) override; void writeAllSamples(unsigned char* pBuffer) override; + void setIcons(const QString& fileName) override; EXPORT QString firmwareTemplate() const override; // EXPORT QRegExp portTemplate() const override; @@ -100,6 +106,8 @@ Adler32 fileChecksum; + CrcWrapper* m_crcWrapper; + public: EXPORT OSTC4Operations(); };
