diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-15 18:42:51 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-15 18:42:51 +0100 |
commit | 64cfb8daa16a49cd5cd4b2d2344d85db31739c0e (patch) | |
tree | d1a62e495b70bf3e97cd00b7339e019a47217ab9 /components/mail/contents/ui/Mail.qml | |
parent | cd82ff9946b82266c65777e141ad58916f05f4ca (diff) | |
download | kube-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.qml | 11 |
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 | |||
27 | import org.kube.framework.actions 1.0 as KubeAction | 27 | import org.kube.framework.actions 1.0 as KubeAction |
28 | import org.kube.framework.settings 1.0 as KubeSettings | 28 | import org.kube.framework.settings 1.0 as KubeSettings |
29 | import org.kube.framework.domain 1.0 as KubeFramework | 29 | import org.kube.framework.domain 1.0 as KubeFramework |
30 | import org.kube.framework.notifications 1.0 as KubeNotifications | ||
30 | import org.kube.components 1.0 as KubeComponents | 31 | import org.kube.components 1.0 as KubeComponents |
31 | import org.kube.components.accounts 1.0 as KubeAccounts | 32 | import 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 |