X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreuserinputhandler.h;h=7c4e930212bbbf43ae49c04f286fdcf19d9d1cbf;hp=801024d64bda07d70bdda9fdb3ae0b160d814e09;hb=ddeaf866099f56f42bf86b2bfc72a92763c733aa;hpb=6f0a153a674317d77233139fc50a2985af86e36e diff --git a/src/core/coreuserinputhandler.h b/src/core/coreuserinputhandler.h index 801024d6..7c4e9302 100644 --- a/src/core/coreuserinputhandler.h +++ b/src/core/coreuserinputhandler.h @@ -22,7 +22,9 @@ #define COREUSERINPUTHANDLER_H #include "corebasichandler.h" +#include "corenetwork.h" +class Cipher; class Server; class CoreUserInputHandler : public CoreBasicHandler { @@ -30,6 +32,7 @@ class CoreUserInputHandler : public CoreBasicHandler { public: CoreUserInputHandler(CoreNetwork *parent = 0); + inline CoreNetwork *coreNetwork() const { return qobject_cast(parent()); } void handleUserInput(const BufferInfo &bufferInfo, const QString &text); @@ -77,11 +80,11 @@ protected: private: void banOrUnban(const BufferInfo &bufferInfo, const QString &text, bool ban); - void putPrivmsg(const QByteArray &target, const QByteArray &message, bool isEncrypted); + 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) const; + QByteArray encrypt(const QString &target, const QByteArray &message, bool *didEncrypt = 0) const; #endif struct Command {