X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Fprotocolinterface.h;h=8b9eeb6a869f6b4fa870d65798bff36ebcf302ef;hb=cc74fb0be4ce4a5f55719dcf4b1045fe156ded1b;hp=80a21c49b34c7a11631386ceb5b6fb55ea0c22c0;hpb=4ab1c43c1eee708fc50a4808f714a731891b75e8;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/protocolinterface.h b/src/modules/m_spanningtree/protocolinterface.h index 80a21c49b..8b9eeb6a8 100644 --- a/src/modules/m_spanningtree/protocolinterface.h +++ b/src/modules/m_spanningtree/protocolinterface.h @@ -19,25 +19,27 @@ #pragma once -class SpanningTreeUtilities; -class ModuleSpanningTree; - class SpanningTreeProtocolInterface : public ProtocolInterface { - SpanningTreeUtilities* Utils; - void SendChannel(Channel* target, char status, const std::string &text); public: - SpanningTreeProtocolInterface(SpanningTreeUtilities* util) : Utils(util) { } + class Server : public ProtocolInterface::Server + { + TreeSocket* const sock; + + public: + Server(TreeSocket* s) : sock(s) { } + void SendMetaData(const std::string& key, const std::string& data) CXX11_OVERRIDE; + }; bool SendEncapsulatedData(const parameterlist &encap); - void SendMetaData(Extensible* target, const std::string &key, const std::string &data); + void SendMetaData(User* user, const std::string& key, const std::string& data) CXX11_OVERRIDE; + void SendMetaData(Channel* chan, const std::string& key, const std::string& data) CXX11_OVERRIDE; + void SendMetaData(const std::string& key, const std::string& data) CXX11_OVERRIDE; void SendTopic(Channel* channel, std::string &topic); - void SendMode(const std::string &target, const parameterlist &modedata, const std::vector &types); + void SendMode(User* source, User* usertarget, Channel* chantarget, const parameterlist& modedata, const std::vector& types); void SendSNONotice(const std::string &snomask, const std::string &text); void PushToClient(User* target, const std::string &rawline); - void SendChannelPrivmsg(Channel* target, char status, const std::string &text); - void SendChannelNotice(Channel* target, char status, const std::string &text); - void SendUserPrivmsg(User* target, const std::string &text); - void SendUserNotice(User* target, const std::string &text); - void GetServerList(ProtoServerList &sl); + void SendMessage(Channel* target, char status, const std::string& text, MessageType msgtype); + void SendMessage(User* target, const std::string& text, MessageType msgtype); + void GetServerList(ServerList& sl); };