ManaPlus
chathandler.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2004-2009 The Mana World Development Team
4  * Copyright (C) 2009-2010 The Mana Developers
5  * Copyright (C) 2011-2019 The ManaPlus Developers
6  * Copyright (C) 2019-2021 Andrei Karas
7  *
8  * This file is part of The ManaPlus Client.
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #ifndef NET_EATHENA_CHATHANDLER_H
25 #define NET_EATHENA_CHATHANDLER_H
26 
27 #include "net/ea/chathandler.h"
28 
29 namespace EAthena
30 {
31 class MessageOut;
32 
34 {
35  public:
36  ChatHandler();
37 
39 
40  ~ChatHandler() override final;
41 
42  void talk(const std::string &restrict text) const override final;
43 
44  void talkRaw(const std::string &text) const override final;
45 
46  void privateMessage(const std::string &restrict recipient,
47  const std::string &restrict text) const
48  override final;
49 
50  void channelMessage(const std::string &restrict channel,
51  const std::string &restrict text) const
52  override final;
53 
54  void joinChannel(const std::string &channel) const override final;
55 
56  void who() const override final;
57 
58  void sendRaw(const std::string &args) const override final;
59 
60  void ignoreAll() const override final;
61 
62  void unIgnoreAll() const override final;
63 
64  void createChatRoom(const std::string &title,
65  const std::string &password,
66  const int limit,
67  const bool isPublic) const override final;
68 
69  void ignore(const std::string &nick) const override final;
70 
71  void unIgnore(const std::string &nick) const override final;
72 
73  void requestIgnoreList() const override final;
74 
75  void battleTalk(const std::string &text) const override final;
76 
77  void joinChat(const ChatObject *const chat,
78  const std::string &password) const override final;
79 
80  void partChannel(const std::string &channel) const override final;
81 
82  void talkPet(const std::string &restrict text) const override final;
83 
84  void leaveChatRoom() const override final;
85 
86  void setChatRoomOptions(const int limit,
87  const bool isPublic,
88  const std::string &password,
89  const std::string &title) const override final;
90 
91  void setChatRoomOwner(const std::string &nick) const override final;
92 
93  void kickFromChatRoom(const std::string &nick) const override final;
94 
95  protected:
96  static void processRaw(MessageOut &restrict outMsg,
97  const std::string &restrict line);
98 };
99 
100 } // namespace EAthena
101 
102 #endif // NET_EATHENA_CHATHANDLER_H
void ignoreAll() const
void sendRaw(const std::string &args) const
void privateMessage(const std::string &recipient, const std::string &text) const
Definition: chathandler.cpp:87
void setChatRoomOwner(const std::string &nick) const
void unIgnore(const std::string &nick) const
void requestIgnoreList() const
void ignore(const std::string &nick) const
void talk(const std::string &text) const
Definition: chathandler.cpp:58
void setChatRoomOptions(const int limit, const bool isPublic, const std::string &password, const std::string &title) const
void leaveChatRoom() const
void battleTalk(const std::string &text) const
void talkPet(const std::string &text) const
void joinChannel(const std::string &channel) const
static void processRaw(MessageOut &outMsg, const std::string &line)
void partChannel(const std::string &channel) const
void talkRaw(const std::string &text) const
Definition: chathandler.cpp:80
void kickFromChatRoom(const std::string &nick) const
void channelMessage(const std::string &channel, const std::string &text) const
void unIgnoreAll() const
void joinChat(const ChatObject *const chat, const std::string &password) const
void createChatRoom(const std::string &title, const std::string &password, const int limit, const bool isPublic) const
#define restrict
Definition: localconsts.h:165
#define final
Definition: localconsts.h:46
#define A_DELETE_COPY(func)
Definition: localconsts.h:53