Mercurial > public > ostc_companion
diff OSTC4Operations.h @ 11:6fba58c4964b
Minor changes done by automatic style checker
| author | Ideenmodellierer |
|---|---|
| date | Mon, 12 Jan 2026 13:57:24 +0000 |
| parents | 115cfa4a3239 |
| children | e47e0f59101d |
line wrap: on
line diff
--- a/OSTC4Operations.h Mon Jan 12 13:55:38 2026 +0000 +++ b/OSTC4Operations.h Mon Jan 12 13:57:24 2026 +0000 @@ -41,20 +41,19 @@ #ifndef OSTC4_OPERATIONS_H #define OSTC4_OPERATIONS_H +#include <QRegularExpression> #include "OSTC3Operations.h" -#include <QRegularExpression> -#include "AES/Adler16.h" -#include "ostc45_icon.h" -#include "crc_wrapper.h" -#include "Export.h" #include <QFile> #include <QString> +#include "AES/Adler16.h" +#include "Export.h" +#include "crc_wrapper.h" +#include "ostc45_icon.h" ////////////////////////////////////////////////////////////////////////////// /// \brief Implementing various operations for H&W OSTC4 dive computer -class OSTC4Operations - : public OSTC3Operations +class OSTC4Operations : public OSTC3Operations { //------------------------------------------------------------------------ /// \brief Custom text size (lines and columns). @@ -71,42 +70,42 @@ /// \brief Tells what is supported for a given computer. EXPORT CompanionFeatures supported() const override; - struct FirmwareOSTC4 { - uint length; - uchar type, dummy5, dummy6, dummy7; - uint checksum; - struct { + struct FirmwareOSTC4 + { + uint length; + uchar type, dummy5, dummy6, dummy7; + uint checksum; + struct + { unsigned char x, y, z, beta; - } version; + } version; }; - QFile _file; + 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); + void openFirmware(const QString &fileName, bool dryRun); - void loadFirmwarePart(FirmwareOSTC4& header, - QByteArray& bin, int part, - bool dryRun); + void loadFirmwarePart(FirmwareOSTC4 &header, QByteArray &bin, int part, bool dryRun); void getSignal() override; - void getAllHeader(unsigned char* pBuffer) override; - void writeAllHeader(unsigned char* pBuffer) override; - void getAllSamples(unsigned char* pBuffer) override; - void writeAllSamples(unsigned char* pBuffer) override; - void setIcons(const QString& fileName) override; + void getAllHeader(unsigned char *pBuffer) override; + 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; + // EXPORT QRegExp portTemplate() const override; EXPORT QRegularExpression portTemplate() const override; EXPORT QStringList listPorts() const override; EXPORT void upgradeFW(const QString &fileName) override; Adler32 fileChecksum; - CrcWrapper* m_crcWrapper; + CrcWrapper *m_crcWrapper; public: EXPORT OSTC4Operations();
