/***************************************************************************
- * 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 *
Q_OBJECT
public:
- CtcpHandler(Server *parent = 0);
+ CtcpHandler(NetworkConnection *parent = 0);
enum CtcpType {CtcpQuery, CtcpReply};
- QStringList parse(CtcpType, QString, QString, QString);
+ QStringList parse(CtcpType, QString prefix, QString target, QString message);
QString dequote(QString);
QString XdelimDequote(QString);
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);
private:
QString XDELIM;
QHash<QString, QString> ctcpMDequoteHash;
- QHash<QString, QString> ctcpXDelimDequoteHash;
+ QHash<QString, QString> ctcpXDelimDequoteHash;
};