51 const int itemsCount) :
58 settings.enableNewMailSystem ?
_(
"Get items") :
_(
"Get attach"),
71 message->strTime.c_str()))),
75 message->sender.c_str()))),
78 message->title.c_str()))),
81 message->text.c_str()))),
87 "mailview_listbackground.xml")),
88 mUseMail2(
settings.enableNewMailSystem)
112 if (message->
money != 0)
165 const std::string &eventId =
event.getId();
166 if (eventId ==
"close")
170 else if (eventId ==
"attach")
182 else if (eventId ==
"money")
190 else if (eventId ==
"next")
195 else if (eventId ==
"prev")
200 else if (eventId ==
"reply")
#define fromBool(val, name)
int getLastUsedSlot() const
void setCaption(const std::string &caption)
void setMessage(const std::string &str)
void setSubject(const std::string &str)
void setTo(const std::string &str)
ItemContainer * mItemContainer
Button * mGetAttachButton
void removeItems(const int64_t mailId)
void removeMoney(const int64_t mailId)
ScrollArea * mItemScrollArea
void action(const ActionEvent &event)
MailViewWindow(MailMessage *const message, const int itemsCount)
void updateAttachButton()
Inventory * getInventory() const
void viewPrev(const int64_t id)
void viewNext(const int64_t id)
MailOpenTypeT getOpenType() const
virtual void requestItems(const MailOpenTypeT openType, const int64_t mailId) const =0
virtual void requestMoney(const MailOpenTypeT openType, const int64_t mailId) const =0
virtual void queueCheckName(const MailQueueTypeT type, const std::string &to, const std::string &title, const std::string &body, const int64_t &money) const =0
virtual void getAttach(const int msgId) const =0
void setSaveVisible(const bool save)
void setResizable(const bool resize)
ContainerPlacer getPlacer(const int x, const int y)
virtual void setVisible(Visible visible)
void setWindowName(const std::string &name)
void setMinHeight(const int height)
void setMinWidth(const int width)
void enableVisibleSound(bool b)
void setCloseButton(const bool flag)
virtual void scheduleDelete()
void setStickyButtonLock(const bool sticky)
const bool ForceQuantity_false
Net::Mail2Handler * mail2Handler
MailEditWindow * mailEditWindow
Net::MailHandler * mailHandler
MailViewWindow * mailViewWindow
const bool ShowEmptyRows_false
std::string strprintf(const char *const format,...)
MailMessageType::Type type