modernize: Reformat ALL the source... again!
[quassel.git] / src / common / dccconfig.h
index f919dcc..e35400a 100644 (file)
@@ -62,7 +62,8 @@ public:
     /**
      * Mode for detecting the outgoing IP
      */
-    enum class IpDetectionMode : quint8 {
+    enum class IpDetectionMode : quint8
+    {
         Automatic,  ///< Automatic detection (network socket or USERHOST)
         Manual,     ///< Manually specified IP
     };
@@ -71,9 +72,10 @@ public:
     /**
      * Mode for selecting the port range for DCC
      */
-    enum class PortSelectionMode : quint8 {
-        Automatic,   ///< Automatic port selection
-        Manual,      ///< Manually specified port range
+    enum class PortSelectionMode : quint8
+    {
+        Automatic,  ///< Automatic port selection
+        Manual,     ///< Manually specified port range
     };
     Q_ENUMS(PortSelectionMode)
 
@@ -84,7 +86,7 @@ public:
      *
      * @param[in] parent QObject parent
      */
-    DccConfig(QObject *parent = nullptr);
+    DccConfig(QObjectparent = nullptr);
 
     /**
      * Assignment operator.
@@ -94,7 +96,7 @@ public:
      * @param[in] other Right-hand side instance
      * @returns The updated instance
      */
-    DccConfig &operator=(const DccConfig &other);
+    DccConfig& operator=(const DccConfig& other);
 
     /**
      * Equality operator.
@@ -104,7 +106,7 @@ public:
      * @param[in] other Right-hand side instance
      * @returns Whether the two instances have equal properties
      */
-    bool operator==(const DccConfig &other);
+    bool operator==(const DccConfigother);
 
     /// @name Getters
     /// @{
@@ -124,7 +126,7 @@ public slots:
     /// @name Setters
     /// @{
     void setDccEnabled(bool enabled);
-    void setOutgoingIp(const QHostAddress &outgoingIp);
+    void setOutgoingIp(const QHostAddressoutgoingIp);
     void setIpDetectionMode(DccConfig::IpDetectionMode ipDetectionMode);
     void setPortSelectionMode(DccConfig::PortSelectionMode portSelectionMode);
     void setMinPort(quint16 port);
@@ -137,14 +139,14 @@ public slots:
 
 private:
     // The given values are used as default for both initialization and settings
-    bool _dccEnabled                     {false};
-    QHostAddress _outgoingIp             {QHostAddress::LocalHost};
-    IpDetectionMode _ipDetectionMode     {IpDetectionMode::Automatic};
-    PortSelectionMode _portSelectionMode {PortSelectionMode::Automatic};
-    quint16 _minPort                     {1024};
-    quint16 _maxPort                     {32767};
-    int _chunkSize                       {16};
-    int _sendTimeout                     {180};
-    bool _usePassiveDcc                  {false};
-    bool _useFastSend                    {false};
+    bool _dccEnabled{false};
+    QHostAddress _outgoingIp{QHostAddress::LocalHost};
+    IpDetectionMode _ipDetectionMode{IpDetectionMode::Automatic};
+    PortSelectionMode _portSelectionMode{PortSelectionMode::Automatic};
+    quint16 _minPort{1024};
+    quint16 _maxPort{32767};
+    int _chunkSize{16};
+    int _sendTimeout{180};
+    bool _usePassiveDcc{false};
+    bool _useFastSend{false};
 };