summaryrefslogtreecommitdiff
path: root/src/gui/windows/mailwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-25 03:10:19 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-25 03:10:19 +0300
commitb68c40d34eecf9da09a00101286b046d93927161 (patch)
tree3a72009efde8295d85309b77abe1df9b5e9d5ec7 /src/gui/windows/mailwindow.h
parent82e3927dd6a1e7c035cda8c88a1287834367b95f (diff)
downloadplus-b68c40d34eecf9da09a00101286b046d93927161.tar.gz
plus-b68c40d34eecf9da09a00101286b046d93927161.tar.bz2
plus-b68c40d34eecf9da09a00101286b046d93927161.tar.xz
plus-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.h8
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;
};