diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-25 20:45:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-25 20:45:38 +0300 |
commit | f7d3792df9fd01ea7baabaf9b612031b1f28d7ab (patch) | |
tree | a38b12795443c2c364059cf418d6171171d4434b /src/gui/windows/mailviewwindow.h | |
parent | 6adafcc07e2101ab085bd9f2182c965ef70d0519 (diff) | |
download | plus-f7d3792df9fd01ea7baabaf9b612031b1f28d7ab.tar.gz plus-f7d3792df9fd01ea7baabaf9b612031b1f28d7ab.tar.bz2 plus-f7d3792df9fd01ea7baabaf9b612031b1f28d7ab.tar.xz plus-f7d3792df9fd01ea7baabaf9b612031b1f28d7ab.zip |
Add basic support for view mail message.
Diffstat (limited to 'src/gui/windows/mailviewwindow.h')
-rw-r--r-- | src/gui/windows/mailviewwindow.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/gui/windows/mailviewwindow.h b/src/gui/windows/mailviewwindow.h index 97cd8e84e..a9d19e57e 100644 --- a/src/gui/windows/mailviewwindow.h +++ b/src/gui/windows/mailviewwindow.h @@ -27,7 +27,10 @@ class Button; class Icon; +class Inventory; +class ItemContainer; class Label; +class ScrollArea; struct MailMessage; @@ -35,7 +38,8 @@ class MailViewWindow final : public Window, public ActionListener { public: - explicit MailViewWindow(const MailMessage *const message) A_NONNULL(2); + MailViewWindow(const MailMessage *const message, + const int itemsCount) A_NONNULL(2); A_DELETE_COPY(MailViewWindow) @@ -43,6 +47,10 @@ class MailViewWindow final : public Window, void action(const ActionEvent &event) override final; + Inventory *getInventory() const A_WARN_UNUSED; + + void updateItems(); + private: const MailMessage *mMessage; Button *mGetAttachButton; @@ -55,8 +63,10 @@ class MailViewWindow final : public Window, Label *mFromLabel; Label *mSubjectLabel; Label *mMessageLabel; - Label *mItemLabel; - Icon *mIcon; + Inventory *mInventory; + ItemContainer *mItemContainer; + ScrollArea *mItemScrollArea; + bool mUseMail2; }; extern MailViewWindow *mailViewWindow; |