X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreuserinputhandler.h;h=9a31f69e2c1cf074be2212600f00a1733961fa36;hp=f2c3c6d8d4eefb2da147d58bdd07c93b70c71433;hb=283fdb2c49e5efa1d497d8c3e6f624f86d008ff8;hpb=d81414703facf1199127394ec9d1d72faf77ded0 diff --git a/src/core/coreuserinputhandler.h b/src/core/coreuserinputhandler.h index f2c3c6d8..9a31f69e 100644 --- a/src/core/coreuserinputhandler.h +++ b/src/core/coreuserinputhandler.h @@ -23,6 +23,7 @@ #include "corebasichandler.h" +class Cipher; class Server; class CoreUserInputHandler : public CoreBasicHandler { @@ -77,9 +78,13 @@ protected: private: void banOrUnban(const BufferInfo &bufferInfo, const QString &text, bool ban); - void putPrivmsg(const QByteArray &target, const QByteArray &message); + void putPrivmsg(const QByteArray &target, const QByteArray &message, Cipher *cipher = 0); int lastParamOverrun(const QString &cmd, const QList ¶ms); +#ifdef HAVE_QCA2 + QByteArray encrypt(const QString &target, const QByteArray &message, bool *didEncrypt = 0) const; +#endif + struct Command { BufferInfo bufferInfo; QString command;