/***************************************************************************
- * Copyright (C) 2005/06 by the Quassel Project *
+ * Copyright (C) 2005-2013 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* 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
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);
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<IrcUser *> ircUsers() const { return _userModes.keys(); }
public slots:
void setTopic(const QString &topic);
void setPassword(const QString &password);
+ void setEncrypted(bool encrypted);
void joinIrcUsers(const QList<IrcUser *> &users, const QStringList &modes);
void joinIrcUsers(const QStringList &nicks, const QStringList &modes);
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);
QString _name;
QString _topic;
QString _password;
+ bool _encrypted;
QHash<IrcUser *, QString> _userModes;