2
kircctcpplugin.h - IRC CTCP plugin handler.
4
Copyright (c) 2002 by Nick Betcher <nbetcher@kde.org>
5
Copyright (c) 2003 by Jason Keirstead <jason@keirstead.org>
6
Copyright (c) 2003-2007 by Michel Hermier <michel.hermier@gmail.com>
8
Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org>
10
*************************************************************************
12
* This program is free software; you can redistribute it and/or modify *
13
* it under the terms of the GNU General Public License as published by *
14
* the Free Software Foundation; either version 2 of the License, or *
15
* (at your option) any later version. *
17
*************************************************************************
20
#ifndef KIRCCTCPPLUGIN_H
21
#define KIRCCTCPPLUGIN_H
23
#include "kircmessage.h"
24
#include "kircevent.h"
32
* @author Nick Betcher <nbetcher@kde.org>
33
* @author Michel Hermier <michel.hermier@gmail.com>
34
* @author Jason Keirstead <jason@keirstead.org>
38
, public KIrc::CommandHandlerInterface
39
, public KIrc::MessageHandlerInterface
42
Q_INTERFACES(Kirc::CommandHandlerInterface Kirc::MessageHandlerInterface)
45
explicit CtcpPlugin(QObject *parent = 0);
49
void postEvent(const KIrc::Message &msg, KIrc::Message::Type messageType, const QString &message);
50
void postErrorEvent(const KIrc::Message &msg, const QString &message = QString());
51
void postInfoEvent(const KIrc::Message &msg, const QString &message = QString());
52
void postMOTDEvent(const KIrc::Message &msg, const QString &message = QString());
54
void receivedServerMessage(KIrc::Message msg) KDE_DEPRECATED; // emit the suffix of the message.
55
void receivedServerMessage(KIrc::Message msg, const QString &message) KDE_DEPRECATED;
60
void CtcpQuery_action(KIrc::Message msg);
61
void CtcpQuery_clientinfo(KIrc::Message msg);
62
void CtcpQuery_finger(KIrc::Message msg);
63
void CtcpQuery_dcc(KIrc::Message msg);
64
void CtcpQuery_ping(KIrc::Message msg);
65
void CtcpQuery_source(KIrc::Message msg);
66
void CtcpQuery_time(KIrc::Message msg);
67
void CtcpQuery_userinfo(KIrc::Message msg);
68
void CtcpQuery_version(KIrc::Message msg);
70
void CtcpReply_errmsg(KIrc::Message msg);
71
void CtcpReply_ping(KIrc::Message msg);
72
void CtcpReply_version(KIrc::Message msg);
76
Q_DISABLE_COPY(CtcpPlugin)