X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fctcphandler.h;h=59db0767b7a2e9fb57d3a56f45b41d1270512322;hp=9cb2c78d7650de93769a24b556f3ad95b2025972;hb=9d12f8189a0dfd8ac76e41aea86ac56bdf907fde;hpb=902c95728306e5ba115de84800fc8d5d239c9d62 diff --git a/src/core/ctcphandler.h b/src/core/ctcphandler.h index 9cb2c78d..59db0767 100644 --- a/src/core/ctcphandler.h +++ b/src/core/ctcphandler.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005/06 by The Quassel Team * + * Copyright (C) 2005-08 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -30,11 +30,11 @@ class CtcpHandler : public BasicHandler { Q_OBJECT public: - CtcpHandler(Server *parent = 0); + CtcpHandler(NetworkConnection *parent = 0); enum CtcpType {CtcpQuery, CtcpReply}; - QStringList parse(CtcpType, QString, QString, QString); + void parse(Message::Type, QString prefix, QString target, QString message); QString dequote(QString); QString XdelimDequote(QString); @@ -42,7 +42,7 @@ public: QString pack(QString ctcpTag, QString message); void query(QString bufname, QString ctcpTag, QString message); void reply(QString bufname, QString ctcpTag, QString message); - + public slots: void handleAction(CtcpType, QString prefix, QString target, QString param); void handlePing(CtcpType, QString prefix, QString target, QString param); @@ -53,7 +53,7 @@ public slots: private: QString XDELIM; QHash ctcpMDequoteHash; - QHash ctcpXDelimDequoteHash; + QHash ctcpXDelimDequoteHash; };