X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircchannel.h;h=68c3683621ffee2bf9b582c0512368eb1cf9b8a2;hp=200859cbb87ab559e3cd04d7360d2640c258c5c2;hb=3e63cb8a6e83765069a45101b86ae9e21dcc57ad;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce diff --git a/src/common/ircchannel.h b/src/common/ircchannel.h index 200859cb..68c36836 100644 --- a/src/common/ircchannel.h +++ b/src/common/ircchannel.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005/06 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 * @@ -15,11 +15,10 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef IRCCHANNEL_H -#define IRCCHANNEL_H +#pragma once #include #include @@ -34,15 +33,16 @@ class Network; class 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(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(const QString &channelname, Network *network); ~IrcChannel(); bool isKnownUser(IrcUser *ircuser) const; @@ -51,6 +51,7 @@ public : inline QString name() const { return _name; } inline QString topic() const { return _topic; } inline QString password() const { return _password; } + inline bool encrypted() const { return _encrypted; } inline Network *network() const { return _network; } inline QList ircUsers() const { return _userModes.keys(); } @@ -76,6 +77,7 @@ public : public slots: void setTopic(const QString &topic); void setPassword(const QString &password); + void setEncrypted(bool encrypted); void joinIrcUsers(const QList &users, const QStringList &modes); void joinIrcUsers(const QStringList &nicks, const QStringList &modes); @@ -106,6 +108,7 @@ public slots: signals: void topicSet(const QString &topic); // needed by NetworkModel + void encryptedSet(bool encrypted); // void passwordSet(const QString &password); // void userModesSet(QString nick, QString modes); // void userModeAdded(QString nick, QString mode); @@ -132,6 +135,7 @@ private: QString _name; QString _topic; QString _password; + bool _encrypted; QHash _userModes; @@ -145,6 +149,3 @@ private: QHash _C_channelModes; QSet _D_channelModes; }; - - -#endif