ManaPlus
mail2handler.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2011-2019 The ManaPlus Developers
4  * Copyright (C) 2019-2021 Andrei Karas
5  *
6  * This file is part of The ManaPlus 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 #ifndef NET_TMWA_MAIL2HANDLER_H
23 #define NET_TMWA_MAIL2HANDLER_H
24 
25 #include "net/mail2handler.h"
26 
27 namespace TmwAthena
28 {
29 
31 {
32  public:
33  Mail2Handler();
34 
36 
37  ~Mail2Handler() override final;
38 
39  void openWriteMail(const std::string &receiver) const override final;
40 
41  void addItem(const Item *const item,
42  const int amount) const override final;
43 
44  void removeItem(const int index,
45  const int amount) const override final;
46 
47  void sendMail(const std::string &to,
48  const std::string &title,
49  const std::string &body,
50  const int64_t &money) const override final;
51 
52  void queueCheckName(const MailQueueTypeT type,
53  const std::string &to,
54  const std::string &title,
55  const std::string &body,
56  const int64_t &money) const override final;
57 
58  void nextPage(const MailOpenTypeT openType,
59  const int64_t mailId) const override final;
60 
61  void readMail(const MailOpenTypeT openType,
62  const int64_t mailId) const override final;
63 
64  void deleteMail(const MailOpenTypeT openType,
65  const int64_t mailId) const override final;
66 
67  void requestMoney(const MailOpenTypeT openType,
68  const int64_t mailId) const override final;
69 
70  void requestItems(const MailOpenTypeT openType,
71  const int64_t mailId) const override final;
72 
73  void refreshMailList(const MailOpenTypeT openType,
74  const int64_t mailId) const override final;
75 
76  void openMailBox(const MailOpenTypeT openType) const override final;
77 
78  void closeMailBox() const override final;
79 
80  void cancelWriteMail() const override final;
81 
82  void requestCheckName(const std::string &name) const override final;
83 
84  std::string getCheckedName() const override final;
85 };
86 
87 } // namespace TmwAthena
88 
89 #endif // NET_TMWA_MAIL2HANDLER_H
Definition: item.h:50
void nextPage(const MailOpenTypeT openType, const int64_t mailId) const
void openWriteMail(const std::string &receiver) const
void sendMail(const std::string &to, const std::string &title, const std::string &body, const int64_t &money) const
void cancelWriteMail() const
std::string getCheckedName() const
void requestCheckName(const std::string &name) const
void refreshMailList(const MailOpenTypeT openType, const int64_t mailId) const
void openMailBox(const MailOpenTypeT openType) const
void removeItem(const int index, const int amount) const
void requestItems(const MailOpenTypeT openType, const int64_t mailId) const
void readMail(const MailOpenTypeT openType, const int64_t mailId) const
void deleteMail(const MailOpenTypeT openType, const int64_t mailId) const
void requestMoney(const MailOpenTypeT openType, const int64_t mailId) const
void queueCheckName(const MailQueueTypeT type, const std::string &to, const std::string &title, const std::string &body, const int64_t &money) const
void addItem(const Item *const item, const int amount) const
#define final
Definition: localconsts.h:46
#define A_DELETE_COPY(func)
Definition: localconsts.h:53
MailOpenType ::T MailOpenTypeT
Definition: mailopentype.h:33
MailQueueType ::T MailQueueTypeT
Definition: mailqueuetype.h:34