1 /***************************************************************************
2 * Copyright (C) 2005-08 by the Quassel Project *
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) version 3. *
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 _USERINPUTHANDLER_H_
22 #define _USERINPUTHANDLER_H_
24 #include "basichandler.h"
28 class UserInputHandler : public BasicHandler {
32 UserInputHandler(NetworkConnection *parent = 0);
34 void handleUserInput(const BufferInfo &bufferInfo, const QString &text);
37 void handleAway(const BufferInfo &bufferInfo, const QString &text);
38 void handleBan(const BufferInfo &bufferInfo, const QString &text);
39 void handleCtcp(const BufferInfo &bufferInfo, const QString &text);
40 void handleDeop(const BufferInfo &bufferInfo, const QString &text);
41 void handleDevoice(const BufferInfo &bufferInfo, const QString &text);
42 void handleInvite(const BufferInfo &bufferInfo, const QString &text);
43 void handleJ(const BufferInfo &bufferInfo, const QString &text);
44 void handleJoin(const BufferInfo &bufferInfo, const QString &text);
45 void handleKick(const BufferInfo &bufferInfo, const QString &text);
46 void handleList(const BufferInfo &bufferInfo, const QString &text);
47 void handleMe(const BufferInfo &bufferInfo, const QString &text);
48 void handleMode(const BufferInfo &bufferInfo, const QString &text);
49 void handleMsg(const BufferInfo &bufferInfo, const QString &text);
50 void handleNick(const BufferInfo &bufferInfo, const QString &text);
51 void handleOp(const BufferInfo &bufferInfo, const QString &text);
52 void handlePart(const BufferInfo &bufferInfo, const QString &text);
53 void handleQuery(const BufferInfo &bufferInfo, const QString &text);
54 void handleQuit(const BufferInfo &bufferInfo, const QString &text);
55 void handleQuote(const BufferInfo &bufferInfo, const QString &text);
56 void handleSay(const BufferInfo &bufferInfo, const QString &text);
57 void handleTopic(const BufferInfo &bufferInfo, const QString &text);
58 void handleVoice(const BufferInfo &bufferInfo, const QString &text);
59 void handleWho(const BufferInfo &bufferInfo, const QString &text);
60 void handleWhois(const BufferInfo &bufferInfo, const QString &text);
61 void handleWhowas(const BufferInfo &bufferInfo, const QString &text);
63 void defaultHandler(QString cmd, const BufferInfo &bufferInfo, const QString &text);