Mana
Loading...
Searching...
No Matches
chathandler.h
Go to the documentation of this file.
1/*
2 * The Mana Client
3 * Copyright (C) 2009 The Mana World Development Team
4 * Copyright (C) 2009-2012 The Mana Developers
5 *
6 * This file is part of The Mana Client.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#include <string>
25
26namespace Net {
27
29{
30 public:
31 virtual ~ChatHandler() = default;
32
33 virtual void talk(const std::string &text) = 0;
34
35 virtual void me(const std::string &text) = 0;
36
37 virtual void privateMessage(const std::string &recipient,
38 const std::string &text) = 0;
39
40 virtual void channelList() = 0;
41
42 virtual void enterChannel(const std::string &channel,
43 const std::string &password) = 0;
44
45 virtual void quitChannel(int channelId) = 0;
46
47 virtual void sendToChannel(int channelId, const std::string &text) = 0;
48
49 virtual void userList(const std::string &channel) = 0;
50
51 virtual void setChannelTopic(int channelId, const std::string &text) = 0;
52
53 virtual void setUserMode(int channelId, const std::string &name, int mode) = 0;
54
55 virtual void kickUser(int channelId, const std::string &name) = 0;
56
57 virtual void who() = 0;
58
59 virtual bool whoSupported() const = 0;
60
61 virtual void requestOnlineList() = 0;
62};
63}
virtual void talk(const std::string &text)=0
virtual void setChannelTopic(int channelId, const std::string &text)=0
virtual void enterChannel(const std::string &channel, const std::string &password)=0
virtual void setUserMode(int channelId, const std::string &name, int mode)=0
virtual void requestOnlineList()=0
virtual void who()=0
virtual void quitChannel(int channelId)=0
virtual void me(const std::string &text)=0
virtual void privateMessage(const std::string &recipient, const std::string &text)=0
virtual void channelList()=0
virtual void sendToChannel(int channelId, const std::string &text)=0
virtual void userList(const std::string &channel)=0
virtual void kickUser(int channelId, const std::string &name)=0
virtual bool whoSupported() const =0
virtual ~ChatHandler()=default
The network communication layer.