diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2015-12-16 15:26:31 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2015-12-16 15:26:31 +0100 |
commit | 5ac5f26a109cbf985b35d11fe6392d5fcb3a5050 (patch) | |
tree | 7ace6538efe136480ab1001909175ffe670ba0ae /framework/mail/maillistcontroller.cpp | |
parent | aff0fc08492d473f1759b2239376fd2bc0f23a5a (diff) | |
download | kube-5ac5f26a109cbf985b35d11fe6392d5fcb3a5050.tar.gz kube-5ac5f26a109cbf985b35d11fe6392d5fcb3a5050.zip |
delete, important, unread actions for maillist controller and action buttons in toolbar
Diffstat (limited to 'framework/mail/maillistcontroller.cpp')
-rw-r--r-- | framework/mail/maillistcontroller.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/framework/mail/maillistcontroller.cpp b/framework/mail/maillistcontroller.cpp index 859aed91..07baeb01 100644 --- a/framework/mail/maillistcontroller.cpp +++ b/framework/mail/maillistcontroller.cpp | |||
@@ -58,3 +58,32 @@ void MailListController::loadImportantMail() | |||
58 | query.propertyFilter.insert("important", true); | 58 | query.propertyFilter.insert("important", true); |
59 | m_model->runQuery(query); | 59 | m_model->runQuery(query); |
60 | } | 60 | } |
61 | |||
62 | QString MailListController::selectedMail() const | ||
63 | { | ||
64 | return m_selectedMail; | ||
65 | } | ||
66 | |||
67 | void MailListController::setSelectedMail(const QString& id) | ||
68 | { | ||
69 | if (m_selectedMail != id) { | ||
70 | m_selectedMail = id; | ||
71 | emit selectedMailChanged(); | ||
72 | } | ||
73 | } | ||
74 | |||
75 | void MailListController::markMailImportant(bool important) | ||
76 | { | ||
77 | qDebug() << "user action: mark mail important "; | ||
78 | } | ||
79 | |||
80 | void MailListController::markMailUnread(bool unread) | ||
81 | { | ||
82 | qDebug() << "user action: mark mail unread "; | ||
83 | } | ||
84 | |||
85 | void MailListController::deleteMail() | ||
86 | { | ||
87 | qDebug() << "user action: delete mail"; | ||
88 | } | ||
89 | |||