summaryrefslogtreecommitdiffstats
path: root/components/mail/contents/ui/Mail.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-15 18:42:51 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-15 18:42:51 +0100
commit64cfb8daa16a49cd5cd4b2d2344d85db31739c0e (patch)
treed1a62e495b70bf3e97cd00b7339e019a47217ab9 /components/mail/contents/ui/Mail.qml
parentcd82ff9946b82266c65777e141ad58916f05f4ca (diff)
downloadkube-64cfb8daa16a49cd5cd4b2d2344d85db31739c0e.tar.gz
kube-64cfb8daa16a49cd5cd4b2d2344d85db31739c0e.zip
Start of a notifications framework
Diffstat (limited to 'components/mail/contents/ui/Mail.qml')
-rw-r--r--components/mail/contents/ui/Mail.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/components/mail/contents/ui/Mail.qml b/components/mail/contents/ui/Mail.qml
index ff0e8c5c..334e5a96 100644
--- a/components/mail/contents/ui/Mail.qml
+++ b/components/mail/contents/ui/Mail.qml
@@ -27,6 +27,7 @@ import org.kde.kirigami 1.0 as Kirigami
27import org.kube.framework.actions 1.0 as KubeAction 27import org.kube.framework.actions 1.0 as KubeAction
28import org.kube.framework.settings 1.0 as KubeSettings 28import org.kube.framework.settings 1.0 as KubeSettings
29import org.kube.framework.domain 1.0 as KubeFramework 29import org.kube.framework.domain 1.0 as KubeFramework
30import org.kube.framework.notifications 1.0 as KubeNotifications
30import org.kube.components 1.0 as KubeComponents 31import org.kube.components 1.0 as KubeComponents
31import org.kube.components.accounts 1.0 as KubeAccounts 32import org.kube.components.accounts 1.0 as KubeAccounts
32 33
@@ -40,6 +41,16 @@ Controls2.ApplicationWindow {
40 41
41 visible: true 42 visible: true
42 43
44 KubeNotifications.NotificationHandler {
45 id: notificationHandler
46 function handler(n) {
47 console.warn("We got a notification: ", n.message)
48 if (n.type == KubeNotifications.Notification.Warning) {
49 console.warn("And it's a warning!", n.type)
50 }
51 }
52 }
53
43 //BEGIN Actions 54 //BEGIN Actions
44 KubeAction.Context { 55 KubeAction.Context {
45 id: maillistcontext 56 id: maillistcontext