X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircchannel.h;h=d9fe9e92591dcf0053cc056f1c32f8aba2eb2508;hp=c0ee07058d78744392971bdb24a30a48ff01900c;hb=e49189fdfac6eadbe0f4a5f46dc43c1585e847f6;hpb=04315f46a16fc3627218377071e008b6b9744992 diff --git a/src/common/ircchannel.h b/src/common/ircchannel.h index c0ee0705..d9fe9e92 100644 --- a/src/common/ircchannel.h +++ b/src/common/ircchannel.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2014 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -40,6 +40,7 @@ class IrcChannel : public SyncableObject 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) public : IrcChannel(const QString &channelname, Network *network); @@ -51,6 +52,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 +78,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 +109,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 +136,7 @@ private: QString _name; QString _topic; QString _password; + bool _encrypted; QHash _userModes;