diff options
Diffstat (limited to 'framework/mail/maillistcontroller.h')
-rw-r--r-- | framework/mail/maillistcontroller.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/framework/mail/maillistcontroller.h b/framework/mail/maillistcontroller.h index ebdc990b..3c969403 100644 --- a/framework/mail/maillistcontroller.h +++ b/framework/mail/maillistcontroller.h | |||
@@ -11,18 +11,31 @@ class MailListController : public QObject | |||
11 | { | 11 | { |
12 | Q_OBJECT | 12 | Q_OBJECT |
13 | Q_PROPERTY (MailListModel *model READ model CONSTANT) | 13 | Q_PROPERTY (MailListModel *model READ model CONSTANT) |
14 | Q_PROPERTY (QString selectedMail READ selectedMail WRITE setSelectedMail NOTIFY selectedMailChanged) | ||
14 | 15 | ||
15 | public: | 16 | public: |
16 | explicit MailListController(QObject *parent = Q_NULLPTR); | 17 | explicit MailListController(QObject *parent = Q_NULLPTR); |
17 | 18 | ||
18 | MailListModel *model() const; | 19 | MailListModel *model() const; |
19 | 20 | ||
21 | QString selectedMail() const; | ||
22 | void setSelectedMail(const QString &id); | ||
23 | |||
24 | signals: | ||
25 | void selectedMailChanged(); | ||
26 | |||
20 | public slots: | 27 | public slots: |
21 | void loadAllMail(); | 28 | void loadAllMail(); |
22 | void loadUnreadMail(); | 29 | void loadUnreadMail(); |
23 | void loadImportantMail(); | 30 | void loadImportantMail(); |
24 | void loadMailFolder(const QString &folderId); | 31 | void loadMailFolder(const QString &folderId); |
25 | 32 | ||
33 | void markMailImportant(bool important); | ||
34 | void markMailUnread(bool unread); | ||
35 | void deleteMail(); | ||
36 | |||
26 | private: | 37 | private: |
27 | QScopedPointer<MailListModel> m_model; | 38 | QScopedPointer<MailListModel> m_model; |
39 | |||
40 | QString m_selectedMail; | ||
28 | }; | 41 | }; |