diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2015-12-09 19:46:13 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2015-12-09 19:46:13 +0100 |
commit | d148e90c04c4c0f2df290942c7711f159b7ba148 (patch) | |
tree | a889e45c41db0242da6db0934420a8a7d3128f2f /framework/mail/maillistcontroller.h | |
parent | 9f7c076d242889c97955e2489e414aaca8058d68 (diff) | |
download | kube-d148e90c04c4c0f2df290942c7711f159b7ba148.tar.gz kube-d148e90c04c4c0f2df290942c7711f159b7ba148.zip |
introduce slots to set special queries and adjust folderlsitview accordingly
Diffstat (limited to 'framework/mail/maillistcontroller.h')
-rw-r--r-- | framework/mail/maillistcontroller.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/framework/mail/maillistcontroller.h b/framework/mail/maillistcontroller.h index 9e972e18..ebdc990b 100644 --- a/framework/mail/maillistcontroller.h +++ b/framework/mail/maillistcontroller.h | |||
@@ -10,23 +10,19 @@ | |||
10 | class MailListController : public QObject | 10 | class MailListController : public QObject |
11 | { | 11 | { |
12 | Q_OBJECT | 12 | Q_OBJECT |
13 | Q_PROPERTY (QString folderId READ folderId WRITE setFolderId NOTIFY folderIdChanged) | ||
14 | Q_PROPERTY (MailListModel *model READ model CONSTANT) | 13 | Q_PROPERTY (MailListModel *model READ model CONSTANT) |
15 | 14 | ||
16 | public: | 15 | public: |
17 | explicit MailListController(QObject *parent = Q_NULLPTR); | 16 | explicit MailListController(QObject *parent = Q_NULLPTR); |
18 | 17 | ||
19 | QString folderId() const; | ||
20 | void setFolderId(const QString &query); | ||
21 | MailListModel *model() const; | 18 | MailListModel *model() const; |
22 | 19 | ||
23 | signals: | ||
24 | void folderIdChanged(); | ||
25 | |||
26 | public slots: | 20 | public slots: |
27 | void addMail(QString subject); | 21 | void loadAllMail(); |
22 | void loadUnreadMail(); | ||
23 | void loadImportantMail(); | ||
24 | void loadMailFolder(const QString &folderId); | ||
28 | 25 | ||
29 | private: | 26 | private: |
30 | QString m_folderId; | ||
31 | QScopedPointer<MailListModel> m_model; | 27 | QScopedPointer<MailListModel> m_model; |
32 | }; | 28 | }; |