diff OSTC3Operations.h @ 8:21ce6187d32e

Minor changes done by automatic style checker
author Ideenmodellierer
date Mon, 12 Jan 2026 13:51:17 +0000
parents 0b3630a29ad8
children
line wrap: on
line diff
--- a/OSTC3Operations.h	Mon Jan 12 13:49:16 2026 +0000
+++ b/OSTC3Operations.h	Mon Jan 12 13:51:17 2026 +0000
@@ -49,13 +49,12 @@
 ///
 /// \sa OSTCSportOperations, OSTC2Operations, OSTC3pOperations,
 ///     OSTC4Operations, OSTCcROperations.
-class  OSTC3Operations
-  : public HardwareOperations
+class OSTC3Operations : public HardwareOperations
 {
     //////////////////////////////////////////////////////////////////////////
     /// \{ \section Configuration management.
 
-   // QRegExp portTemplate() const override;
+    // QRegExp portTemplate() const override;
     QRegularExpression portTemplate() const override;
     QStringList listPorts() const override;
     QString model() const override;
@@ -65,7 +64,6 @@
     /// \}
     //////////////////////////////////////////////////////////////////////////
 protected:
-
     //------------------------------------------------------------------------
     /// \brief Erase OSTC3 PROM memory.
     /// PROM memory should be erased beforeprogramming the new firmware.
@@ -82,8 +80,7 @@
     /// \param[in] data: Bytes to write.
     /// \param[in] size: Number of bytes to write.
     /// \throws if something goes wrong.
-    void writeBlock(unsigned int addr,
-                    const unsigned char *data, unsigned int size);
+    void writeBlock(unsigned int addr, const unsigned char *data, unsigned int size);
 
     //------------------------------------------------------------------------
     /// \brief Read-back a big block of bytes from OSTC3 RAM memory.
@@ -92,7 +89,7 @@
     /// \param[in] ptr : Where to store bytes read.
     /// \param[in] size: Number of bytes to read.
     /// \throws if something goes wrong.
-    void readBlock (unsigned int addr, unsigned char *ptr, unsigned int size);
+    void readBlock(unsigned int addr, unsigned char *ptr, unsigned int size);
 
     //------------------------------------------------------------------------
     /// \brief Burn firmare.
@@ -152,26 +149,26 @@
 
     bool connect() override;
     bool disconnect(bool closing = false) override;
-    void setDate(const QDateTime& date) override;
-    void setName(const QString& newName) override;
+    void setDate(const QDateTime &date) override;
+    void setName(const QString &newName) override;
     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;
     QImage dumpScreen() const override;
-    void upgradeFW(const QString& fileName) override;
+    void upgradeFW(const QString &fileName) override;
 
-    void loadFirmware(HexFile& hex, const QString& fileName) const override;
+    void loadFirmware(HexFile &hex, const QString &fileName) const override;
 
     /// \}
 
     //////////////////////////////////////////////////////////////////////////
 protected:
-    QString     descriptionString;
-    QString     emulatorName;
-    char        computerText[60];
+    QString descriptionString;
+    QString emulatorName;
+    char computerText[60];
 
     virtual void getCommonIdentity();
 
@@ -184,9 +181,9 @@
 
 protected:
     enum Mode {
-        CLOSED_MODE = 0,        ///< Not yet open.
-        DOWNLOAD_MODE,          ///< Open in normal mode.
-        SERVICE_MODE            ///< Open in FIRMWARE UPGRADE mode.
+        CLOSED_MODE = 0, ///< Not yet open.
+        DOWNLOAD_MODE,   ///< Open in normal mode.
+        SERVICE_MODE     ///< Open in FIRMWARE UPGRADE mode.
     } _connectMode;
 };