X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoresessioneventprocessor.h;h=e1d015bc424b5af3522c86a16466181273df3c50;hp=7c4362aa048fdae95e70f7a27ac9c66a5e804576;hb=8f2ee00f4edef1693628d3af0bdee84d725eb754;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce diff --git a/src/core/coresessioneventprocessor.h b/src/core/coresessioneventprocessor.h index 7c4362aa..e1d015bc 100644 --- a/src/core/coresessioneventprocessor.h +++ b/src/core/coresessioneventprocessor.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2012 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,7 +15,7 @@ * 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 CORESESSIONEVENTPROCESSOR_H @@ -31,6 +31,10 @@ class IrcEvent; class IrcEventNumeric; class Netsplit; +#ifdef HAVE_QCA2 +class KeyEvent; +#endif + class CoreSessionEventProcessor : public BasicHandler { Q_OBJECT @@ -42,21 +46,30 @@ public: Q_INVOKABLE void processIrcEventNumeric(IrcEventNumeric *event); - Q_INVOKABLE void processIrcEventAuthenticate(IrcEvent *event); // SASL auth - Q_INVOKABLE void processIrcEventCap(IrcEvent *event); // CAP framework + Q_INVOKABLE void processIrcEventAuthenticate(IrcEvent *event); /// SASL authentication + Q_INVOKABLE void processIrcEventCap(IrcEvent *event); /// CAP framework negotiation + Q_INVOKABLE void processIrcEventAccount(IrcEvent *event); /// account-notify received + Q_INVOKABLE void processIrcEventAway(IrcEvent *event); /// away-notify received + Q_INVOKABLE void processIrcEventChghost(IrcEvent *event); /// chghost received Q_INVOKABLE void processIrcEventInvite(IrcEvent *event); Q_INVOKABLE void processIrcEventJoin(IrcEvent *event); Q_INVOKABLE void lateProcessIrcEventKick(IrcEvent *event); Q_INVOKABLE void processIrcEventMode(IrcEvent *event); + Q_INVOKABLE void processIrcEventNick(IrcEvent *event); /// Nickname changes Q_INVOKABLE void lateProcessIrcEventNick(IrcEvent *event); + Q_INVOKABLE void processIrcEventPart(IrcEvent *event); /// Leaving a channel Q_INVOKABLE void lateProcessIrcEventPart(IrcEvent *event); Q_INVOKABLE void processIrcEventPing(IrcEvent *event); Q_INVOKABLE void processIrcEventPong(IrcEvent *event); Q_INVOKABLE void processIrcEventQuit(IrcEvent *event); Q_INVOKABLE void lateProcessIrcEventQuit(IrcEvent *event); Q_INVOKABLE void processIrcEventTopic(IrcEvent *event); + Q_INVOKABLE void processIrcEventError(IrcEvent *event); /// ERROR message from server +#ifdef HAVE_QCA2 + Q_INVOKABLE void processKeyEvent(KeyEvent *event); +#endif - Q_INVOKABLE void processIrcEvent001(IrcEvent *event); // RPL_WELCOME + Q_INVOKABLE void processIrcEvent001(IrcEventNumeric *event); // RPL_WELCOME Q_INVOKABLE void processIrcEvent005(IrcEvent *event); // RPL_ISUPPORT Q_INVOKABLE void processIrcEvent221(IrcEvent *event); // RPL_UMODEIS Q_INVOKABLE void processIrcEvent250(IrcEvent *event); // RPL_STATSCONN @@ -75,10 +88,13 @@ public: Q_INVOKABLE void processIrcEvent322(IrcEvent *event); // RPL_LIST Q_INVOKABLE void processIrcEvent323(IrcEvent *event); // RPL_LISTEND Q_INVOKABLE void processIrcEvent324(IrcEvent *event); // RPL_CHANNELMODEIS + Q_INVOKABLE void processIrcEvent330(IrcEvent *event); // RPL_WHOISACCOUNT (quakenet/snircd/undernet) Q_INVOKABLE void processIrcEvent331(IrcEvent *event); // RPL_NOTOPIC Q_INVOKABLE void processIrcEvent332(IrcEvent *event); // RPL_TOPIC Q_INVOKABLE void processIrcEvent352(IrcEvent *event); // RPL_WHOREPLY Q_INVOKABLE void processIrcEvent353(IrcEvent *event); // RPL_NAMREPLY + Q_INVOKABLE void processIrcEvent354(IrcEvent *event); // RPL_WHOSPCRPL + Q_INVOKABLE void processIrcEvent403(IrcEventNumeric *event); // ERR_NOSUCHCHANNEL Q_INVOKABLE void processIrcEvent432(IrcEventNumeric *event); // ERR_ERRONEUSNICKNAME Q_INVOKABLE void processIrcEvent433(IrcEventNumeric *event); // ERR_NICKNAMEINUSE Q_INVOKABLE void processIrcEvent437(IrcEventNumeric *event); // ERR_UNAVAILRESOURCE @@ -90,6 +106,7 @@ public: Q_INVOKABLE void handleCtcpAction(CtcpEvent *event); Q_INVOKABLE void handleCtcpClientinfo(CtcpEvent *event); + Q_INVOKABLE void handleCtcpDcc(CtcpEvent *event); Q_INVOKABLE void handleCtcpPing(CtcpEvent *event); Q_INVOKABLE void handleCtcpTime(CtcpEvent *event); Q_INVOKABLE void handleCtcpVersion(CtcpEvent *event); @@ -144,6 +161,25 @@ private: // key: quit message // value: the corresponding netsplit object QHash > _netsplits; + + /** + * Process given WHO reply information, updating user data, channel modes, etc as needed + * + * This takes information from WHO and WHOX replies, processing information that's common + * between them. + * + * @param[in] net Network object for the IRC server + * @param[in] targetChannel Target channel, or * if unspecified + * @param[in] ircUser IrcUser representing the desired nick + * @param[in] server Nick server name + * @param[in] user Nick username + * @param[in] host Nick hostname + * @param[in] awayStateAndModes Nick away-state and modes (e.g. G@) + * @param[in] realname Nick realname + */ + void processWhoInformation (Network *net, const QString &targetChannel, IrcUser *ircUser, + const QString &server, const QString &user, const QString &host, + const QString &awayStateAndModes, const QString &realname); };