diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-25 03:10:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-25 03:10:19 +0300 |
commit | b68c40d34eecf9da09a00101286b046d93927161 (patch) | |
tree | 3a72009efde8295d85309b77abe1df9b5e9d5ec7 /src/gui/windows/mailwindow.h | |
parent | 82e3927dd6a1e7c035cda8c88a1287834367b95f (diff) | |
download | mv-b68c40d34eecf9da09a00101286b046d93927161.tar.gz mv-b68c40d34eecf9da09a00101286b046d93927161.tar.bz2 mv-b68c40d34eecf9da09a00101286b046d93927161.tar.xz mv-b68c40d34eecf9da09a00101286b046d93927161.zip |
Add support for show mail list for new mail system.
Diffstat (limited to 'src/gui/windows/mailwindow.h')
-rw-r--r-- | src/gui/windows/mailwindow.h | 8 |
1 files changed, 8 insertions, 0 deletions
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<MailMessage*> mMessages; std::map<int, MailMessage*> mMessagesMap; ExtendedNamesModel *mMailModel; @@ -80,6 +87,7 @@ class MailWindow final : public Window, Button *mDeleteButton; Button *mReturnButton; Button *mOpenButton; + MailOpenTypeT mOpenType; bool mUseMail2; }; |