1 /***************************************************************************
2 * Copyright (C) 2005/06 by The Quassel Team *
3 * devel@quassel-irc.org *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
21 #ifndef _IRCSERVERHANDLER_H_
22 #define _IRCSERVERHANDLER_H_
24 #include "basichandler.h"
26 class IrcServerHandler : public BasicHandler {
30 IrcServerHandler(Server *parent = 0);
33 void handleServerMsg(QByteArray rawMsg);
36 void handleJoin(QString, QStringList);
37 void handleKick(QString, QStringList);
38 void handleMode(QString, QStringList);
39 void handleNick(QString, QStringList);
40 void handleNotice(QString, QStringList);
41 void handlePart(QString, QStringList);
42 void handlePing(QString, QStringList);
43 void handlePrivmsg(QString, QStringList);
44 void handleQuit(QString, QStringList);
45 void handleTopic(QString, QStringList);
47 void handle001(QString, QStringList); // RPL_WELCOME
48 void handle005(QString, QStringList); // RPL_ISUPPORT
49 void handle331(QString, QStringList); // RPL_NOTOPIC
50 void handle332(QString, QStringList); // RPL_TOPIC
51 void handle333(QString, QStringList); // Topic set by...
52 void handle353(QString, QStringList); // RPL_NAMREPLY
53 void handle432(QString, QStringList); // ERR_ERRONEUSNICKNAME
54 void handle433(QString, QStringList); // ERR_NICKNAMEINUSE
56 void defaultHandler(QString cmd, QString prefix, QStringList params);