1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2008 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
14 #ifndef __PROTOCOL_H__
15 #define __PROTOCOL_H__
21 typedef std::deque<std::string> parameterlist;
23 class ProtocolInterface : public Extensible
26 InspIRCd* ServerInstance;
28 ProtocolInterface(InspIRCd* Instance) : ServerInstance(Instance) { }
29 virtual ~ProtocolInterface() { }
31 virtual void SendEncapsulatedData(parameterlist &encap) { }
33 virtual void SendMetaData(void* target, int type, const std::string &key, const std::string &data) { }
35 virtual void SendTopic(Channel* channel, std::string &topic) { }
37 virtual void SendMode(const std::string &target, parameterlist &modedata) { }
39 virtual void SendModeStr(const std::string &target, const std::string &modeline)
41 /* Convenience function */
42 irc::spacesepstream x(modeline);
50 virtual void SendOperNotice(const std::string &text) { }
52 virtual void SendModeNotice(const std::string &modes, const std::string &text) { }
54 virtual void SendSNONotice(const std::string &snomask, const std::string &text) { }
56 virtual void PushToClient(User* target, const std::string &rawline) { }
58 virtual void SendChannelPrivmsg(Channel* target, char status, const std::string &text) { }
60 virtual void SendChannelNotice(Channel* target, char status, const std::string &text) { }
62 virtual void SendUserPrivmsg(User* target, const std::string &text) { }
64 virtual void SendUserNotice(User* target, const std::string &text) { }