~neon/kdenetwork/trunk

« back to all changes in this revision

Viewing changes to kopete/protocols/irc/libkirc/plugins/ctcp/kircctcpplugin.h

  • Committer: uwolfer
  • Date: 2013-06-08 10:12:41 UTC
  • Revision ID: svn-v4:283d02a7-25f6-0310-bc7c-ecb5cbfe19da:trunk/KDE/kdenetwork:1357331
kdenetwork has moved to Git

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    kircctcpplugin.h - IRC CTCP plugin handler.
3
 
 
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>
7
 
 
8
 
    Kopete    (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org>
9
 
 
10
 
    *************************************************************************
11
 
    *                                                                       *
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.                                   *
16
 
    *                                                                       *
17
 
    *************************************************************************
18
 
*/
19
 
 
20
 
#ifndef KIRCCTCPPLUGIN_H
21
 
#define KIRCCTCPPLUGIN_H
22
 
 
23
 
#include "kircmessage.h"
24
 
#include "kircevent.h"
25
 
 
26
 
namespace KIrc
27
 
{
28
 
 
29
 
class Event;
30
 
 
31
 
/**
32
 
 * @author Nick Betcher <nbetcher@kde.org>
33
 
 * @author Michel Hermier <michel.hermier@gmail.com>
34
 
 * @author Jason Keirstead <jason@keirstead.org>
35
 
 */
36
 
class CtcpPlugin
37
 
        : public QObject
38
 
        , public KIrc::CommandHandlerInterface
39
 
        , public KIrc::MessageHandlerInterface
40
 
{
41
 
        Q_OBJECT
42
 
        Q_INTERFACES(Kirc::CommandHandlerInterface Kirc::MessageHandlerInterface)
43
 
 
44
 
public:
45
 
        explicit CtcpPlugin(QObject *parent = 0);
46
 
        ~CtcpPlugin();
47
 
 
48
 
private slots:
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());
53
 
 
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;
56
 
 
57
 
private slots:
58
 
 
59
 
#if 0
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);
69
 
 
70
 
        void CtcpReply_errmsg(KIrc::Message msg);
71
 
        void CtcpReply_ping(KIrc::Message msg);
72
 
        void CtcpReply_version(KIrc::Message msg);
73
 
#endif
74
 
 
75
 
private:
76
 
        Q_DISABLE_COPY(CtcpPlugin)
77
 
 
78
 
        class Private;
79
 
        Private * const d;
80
 
};
81
 
 
82
 
}
83
 
 
84
 
#endif
85