X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreuserinputhandler.h;h=9a31f69e2c1cf074be2212600f00a1733961fa36;hp=0634fa153a5132b8aa8585c0a8e98a8f792f1bfb;hb=f324687be396f9ae7aea2c66a42777c5ba35f5fc;hpb=45cf725071f19107d73b96f8a24b47df1e2f474e diff --git a/src/core/coreuserinputhandler.h b/src/core/coreuserinputhandler.h index 0634fa15..9a31f69e 100644 --- a/src/core/coreuserinputhandler.h +++ b/src/core/coreuserinputhandler.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-10 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -21,11 +21,12 @@ #ifndef COREUSERINPUTHANDLER_H #define COREUSERINPUTHANDLER_H -#include "basichandler.h" +#include "corebasichandler.h" +class Cipher; class Server; -class CoreUserInputHandler : public BasicHandler { +class CoreUserInputHandler : public CoreBasicHandler { Q_OBJECT public: @@ -38,6 +39,7 @@ public slots: void handleBan(const BufferInfo &bufferInfo, const QString &text); void handleUnban(const BufferInfo &bufferInfo, const QString &text); void handleCtcp(const BufferInfo &bufferInfo, const QString &text); + void handleDelkey(const BufferInfo &bufferInfo, const QString &text); void handleDeop(const BufferInfo &bufferInfo, const QString &text); void handleDevoice(const BufferInfo &bufferInfo, const QString &text); void handleInvite(const BufferInfo &bufferInfo, const QString &text); @@ -58,6 +60,7 @@ public slots: void handleQuit(const BufferInfo &bufferInfo, const QString &text); void handleQuote(const BufferInfo &bufferInfo, const QString &text); void handleSay(const BufferInfo &bufferInfo, const QString &text); + void handleSetkey(const BufferInfo &bufferInfo, const QString &text); void handleTopic(const BufferInfo &bufferInfo, const QString &text); void handleVoice(const BufferInfo &bufferInfo, const QString &text); void handleWait(const BufferInfo &bufferInfo, const QString &text); @@ -68,15 +71,20 @@ public slots: void defaultHandler(QString cmd, const BufferInfo &bufferInfo, const QString &text); void issueQuit(const QString &reason); + void issueAway(const QString &msg, bool autoCheck = true); protected: void timerEvent(QTimerEvent *event); 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;