Listening to a notification button's "onClick" in the notifications DataEngine

Martin Klapetek martin.klapetek at gmail.com
Mon Mar 13 14:41:53 UTC 2017


Hey,


On Thu, Mar 9, 2017 at 10:56 PM, Chris Holland <zrenfire at gmail.com> wrote:

> It seems the ActionInvoked and NotificationClosed signal isn't exposed
> anywhere.
>
> The signals are defined here:
> https://github.com/KDE/plasma-workspace/blob/master/
> dataengines/notifications/notificationsengine.h#L84
>
> And the signals are called here:
> https://github.com/KDE/plasma-workspace/blob/master/
> dataengines/notifications/notificationaction.cpp#L54
>
> Would it be possible to expose that signal somewhere?
>

Those signals are relied back to you into your
client side code, eg. if you use KNotification,
then you can listen to those signals there.
This obviously only works for notifications that
you yourself have created, you cannot listen
to those signals of all notifications, that's only
for the client and the shell to know.

Cheers
--
Martin Klapetek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170313/326f51bc/attachment.html>


More information about the Plasma-devel mailing list