64 this, mMailModel,
"extendedlistbox.xml", 0)),
67 "mail_listbackground.xml")),
69 mRefreshButton(
new Button(this,
_(
"Refresh"),
"refresh",
77 settings.enableNewMailSystem ?
_(
"Get old") :
_(
"Return"),
82 mUseMail2(
settings.enableNewMailSystem),
129 const std::string &eventId =
event.getId();
130 if (eventId ==
"refresh")
134 else if (eventId ==
"new")
141 else if (eventId ==
"open")
152 else if (eventId ==
"delete")
163 else if (eventId ==
"return")
201 header =
_(
"(expired)");
216 header.append(
" ").append(message->
title);
220 message->
read ?
" " :
"U",
221 message->
title.c_str());
226 if (message ==
nullptr)
235 std::map<int64_t, MailMessage*>::iterator it1 =
mMessagesMap.find(
id);
244 if ((message !=
nullptr) && message->
id ==
id)
255 if (message !=
nullptr)
261 const int itemsCount)
265 const std::map<int64_t, MailMessage*>::const_iterator
283 if (message !=
nullptr &&
311 if (message !=
nullptr &&
378 std::map<int64_t, MailMessage*>::iterator it =
mMessagesMap.find(
id);
396 if (message !=
nullptr)
#define fromBool(val, name)
Widget * getSource() const
void add(const std::string &str)
void setRowHeight(const int n, const int h)
void setSelected(const int selected)
void setTo(const std::string &str)
std::vector< MailMessage * > mMessages
std::map< int64_t, MailMessage * > mMessagesMap
ExtendedNamesModel * mMailModel
void mouseClicked(MouseEvent &event)
void removeMail(const int64_t id)
ScrollArea * mListScrollArea
void addMail(MailMessage *const message)
ExtendedListBox * mListBox
void viewPrev(const int64_t id)
std::string getMailHeader(const MailMessage *const message) const
void action(const ActionEvent &event)
MailMessage * findMail(const int64_t id)
void showMessage(MailMessage *const mail, const int itemsCount)
void viewNext(const int64_t id)
static void createMail(const std::string &to)
MouseButtonT getButton() const
int getClickCount() const
virtual void refreshMailList(const MailOpenTypeT openType, const int64_t mailId) const =0
virtual void deleteMail(const MailOpenTypeT openType, const int64_t mailId) const =0
virtual void readMail(const MailOpenTypeT openType, const int64_t mailId) const =0
virtual void nextPage(const MailOpenTypeT openType, const int64_t mailId) const =0
virtual void refresh() const =0
virtual void readMessage(const int msgId) const =0
virtual void returnMessage(const int msgId) const =0
virtual void deleteMessage(const int msgId) const =0
void registerWindowForReset(Window *const window)
void setSaveVisible(const bool save)
void setResizable(const bool resize)
ContainerPlacer getPlacer(const int x, const int y)
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)
void setStickyButtonLock(const bool sticky)
void delete_all(Container &c)
#define FOR_EACH(type, iter, array)
Net::Mail2Handler * mail2Handler
MailEditWindow * mailEditWindow
Net::MailHandler * mailHandler
MailViewWindow * mailViewWindow
std::vector< std::string > mMessages
SetupWindow * setupWindow
std::string strprintf(const char *const format,...)
MailMessageType::Type type