X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircchannel.h;fp=src%2Fcommon%2Fircchannel.h;h=0c0f2ed1feb59eedbe55aef05bd92648f560cca5;hp=7f7d04a80de083ab7da539eb9e4c832bd1213b7a;hb=2fde026f4e0509e164be0ccd50174cb6b1103d55;hpb=3da47d9186d1d40dc8fe998a130813b84345760d diff --git a/src/common/ircchannel.h b/src/common/ircchannel.h index 7f7d04a8..0c0f2ed1 100644 --- a/src/common/ircchannel.h +++ b/src/common/ircchannel.h @@ -29,6 +29,10 @@ #include "syncableobject.h" +#ifdef HAVE_QCA2 +#include "cipher.h" +#endif + class IrcUser; class Network; @@ -70,6 +74,12 @@ public: QString decodeString(const QByteArray &text) const; QByteArray encodeString(const QString &string) const; + + #ifdef HAVE_QCA2 + Cipher* cipher(); + #endif + + void setEncrypted(bool); public slots: void setTopic(const QString &topic); @@ -93,7 +103,7 @@ public slots: void addChannelMode(const QChar &mode, const QString &value); void removeChannelMode(const QChar &mode, const QString &value); - + // init geters QVariantMap initUserModes() const; QVariantMap initChanModes() const; @@ -101,7 +111,7 @@ public slots: // init seters void initSetUserModes(const QVariantMap &usermodes); void initSetChanModes(const QVariantMap &chanModes); - + signals: void topicSet(const QString &topic); // needed by NetworkModel // void passwordSet(const QString &password); @@ -130,7 +140,7 @@ private: QString _name; QString _topic; QString _password; - + QHash _userModes; Network *network; @@ -143,6 +153,9 @@ private: QHash _C_channelModes; QSet _D_channelModes; + #ifdef HAVE_QCA2 + Cipher *_cipher; + #endif }; #endif