modernize: Reformat ALL the source... again!
[quassel.git] / src / core / keyevent.h
index 65db084..1985a94 100644 (file)
 class KeyEvent : public IrcEvent
 {
 public:
-    enum ExchangeType {
+    enum ExchangeType
+    {
         Init,
         Finish
     };
 
-    explicit KeyEvent(EventManager::EventType type, Network *network, const QString &prefix, QString target,
-        ExchangeType exchangeType, QByteArray key,
-        const QDateTime &timestamp = QDateTime())
-        : IrcEvent(type, network, prefix),
-        _exchangeType(exchangeType),
-        _target(std::move(target)),
-        _key(std::move(key))
+    explicit KeyEvent(EventManager::EventType type,
+                      Network* network,
+                      const QString& prefix,
+                      QString target,
+                      ExchangeType exchangeType,
+                      QByteArray key,
+                      const QDateTime& timestamp = QDateTime())
+        : IrcEvent(type, network, prefix)
+        , _exchangeType(exchangeType)
+        , _target(std::move(target))
+        , _key(std::move(key))
     {
         setTimestamp(timestamp);
     }
 
-
     inline ExchangeType exchangeType() const { return _exchangeType; }
     inline void setExchangeType(ExchangeType type) { _exchangeType = type; }
 
     inline QString target() const { return _target; }
-    inline void setTarget(const QString &target) { _target = target; }
+    inline void setTarget(const QStringtarget) { _target = target; }
 
     inline QByteArray key() const { return _key; }
-    inline void setKey(const QByteArray &key) { _key = key; }
+    inline void setKey(const QByteArraykey) { _key = key; }
 
-    static Event *create(EventManager::EventType type, QVariantMap &map, Network *network);
+    static Event* create(EventManager::EventType type, QVariantMap& map, Network* network);
 
 protected:
-    explicit KeyEvent(EventManager::EventType type, QVariantMap &map, Network *network);
-    void toVariantMap(QVariantMap &map) const override;
+    explicit KeyEvent(EventManager::EventType type, QVariantMap& map, Network* network);
+    void toVariantMap(QVariantMapmap) const override;
 
     inline QString className() const override { return "KeyEvent"; }
-    inline void debugInfo(QDebug &dbg) const override
+    inline void debugInfo(QDebugdbg) const override
     {
         NetworkEvent::debugInfo(dbg);
-        dbg << ", prefix = " << qPrintable(prefix())
-            << ", target = " << qPrintable(target())
-            << ", exchangetype = " << (exchangeType() == Init ? "init" : "finish")
-            << ", key = " << key();
+        dbg << ", prefix = " << qPrintable(prefix()) << ", target = " << qPrintable(target())
+            << ", exchangetype = " << (exchangeType() == Init ? "init" : "finish") << ", key = " << key();
     }
 
-
 private:
     ExchangeType _exchangeType;
     QString _target;
     QByteArray _key;
 };
 
-
 #endif