From b68c40d34eecf9da09a00101286b046d93927161 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Aug 2017 03:10:19 +0300 Subject: Add support for show mail list for new mail system. --- src/gui/windows/mailwindow.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui/windows/mailwindow.h') diff --git a/src/gui/windows/mailwindow.h b/src/gui/windows/mailwindow.h index 9ac4a5069..b356b0666 100644 --- a/src/gui/windows/mailwindow.h +++ b/src/gui/windows/mailwindow.h @@ -23,6 +23,8 @@ #include "gui/widgets/window.h" +#include "enums/net/mailopentype.h" + #include "listeners/actionlistener.h" class Button; @@ -67,9 +69,14 @@ class MailWindow final : public Window, void createMail(const std::string &to); + void setOpenType(const MailOpenTypeT &type) + { mOpenType = type; } + private: void refreshMails(); + std::string getMailHeader(MailMessage *const message) A_NONNULL(2); + STD_VECTOR mMessages; std::map mMessagesMap; ExtendedNamesModel *mMailModel; @@ -80,6 +87,7 @@ class MailWindow final : public Window, Button *mDeleteButton; Button *mReturnButton; Button *mOpenButton; + MailOpenTypeT mOpenType; bool mUseMail2; }; -- cgit v1.2.3-70-g09d2