modernize: Replace most remaining old-style connects by PMF ones
[quassel.git] / src / common / ircchannel.h
index b27ea90..bcb6f59 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2013 by the Quassel Project                        *
+ *   Copyright (C) 2005-2018 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -18,8 +18,9 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
-#ifndef IRCCHANNEL_H
-#define IRCCHANNEL_H
+#pragma once
+
+#include "common-export.h"
 
 #include <QHash>
 #include <QSet>
 class IrcUser;
 class Network;
 
-class IrcChannel : public SyncableObject
+class COMMON_EXPORT IrcChannel : public SyncableObject
 {
-    SYNCABLE_OBJECT
     Q_OBJECT
+    SYNCABLE_OBJECT
 
-    Q_PROPERTY(QString name READ name STORED false)
-    Q_PROPERTY(QString topic READ topic WRITE setTopic STORED false)
-    Q_PROPERTY(QString password READ password WRITE setPassword STORED false)
-    Q_PROPERTY(bool encrypted READ encrypted WRITE setEncrypted STORED false)
+    Q_PROPERTY(QString name READ name)
+    Q_PROPERTY(QString topic READ topic WRITE setTopic)
+    Q_PROPERTY(QString password READ password WRITE setPassword)
+    Q_PROPERTY(bool encrypted READ encrypted WRITE setEncrypted)
 
 public :
-        IrcChannel(const QString &channelname, Network *network);
-    ~IrcChannel();
+    IrcChannel(const QString &channelname, Network *network);
 
     bool isKnownUser(IrcUser *ircuser) const;
     bool isValidChannelUserMode(const QString &mode) const;
@@ -117,7 +117,7 @@ signals:
 //   void channelModeAdded(const QChar &mode, const QString &value);
 //   void channelModeRemoved(const QChar &mode, const QString &value);
 
-    void ircUsersJoined(QList<IrcUser *> ircusers);
+    void ircUsersJoined(const QList<IrcUser *> &ircusers);
 //   void ircUsersJoined(QStringList nicks, QStringList modes);
     void ircUserParted(IrcUser *ircuser);
     void ircUserNickSet(IrcUser *ircuser, QString nick);
@@ -150,6 +150,3 @@ private:
     QHash<QChar, QString> _C_channelModes;
     QSet<QChar> _D_channelModes;
 };
-
-
-#endif