[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Listening to a notification button's "onClick" in the notifications DataEngine
From:       Martin Klapetek <martin.klapetek () gmail ! com>
Date:       2017-03-13 14:41:53
Message-ID: CAPLgePpK8MWM9E-P_bgLFR7ykpSY56C5vc_mzY4Cw0Vmi5aS6w () mail ! gmail ! com
[Download RAW message or body]

Hey,


On Thu, Mar 9, 2017 at 10:56 PM, Chris Holland <zrenfire@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

[Attachment #3 (text/html)]

<div dir="ltr"><div class="gmail_extra">Hey,</div><div class="gmail_extra"><br></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 9, 2017 at 10:56 PM, Chris Holland \
<span dir="ltr">&lt;<a href="mailto:zrenfire@gmail.com" \
target="_blank">zrenfire@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It \
seems the ActionInvoked and NotificationClosed signal isn&#39;t exposed anywhere.<br> <br>
The signals are defined here:<br>
<a href="https://github.com/KDE/plasma-workspace/blob/master/dataengines/notifications/notificationsengine.h#L84" \
rel="noreferrer" target="_blank">https://github.com/KDE/plasma-<wbr>workspace/blob/master/<wbr>dataengines/notifications/<wbr>notificationsengine.h#L84</a><br>
 <br>
And the signals are called here:<br>
<a href="https://github.com/KDE/plasma-workspace/blob/master/dataengines/notifications/notificationaction.cpp#L54" \
rel="noreferrer" target="_blank">https://github.com/KDE/plasma-<wbr>workspace/blob/master/<wbr>dataengines/notifications/<wbr>notificationaction.cpp#L54</a><br>
 <br>
Would it be possible to expose that signal somewhere?<br></blockquote><div><br></div><div>Those \
signals are relied back to you into your</div><div>client side code, eg. if you use \
KNotification,</div><div>then you can listen to those signals there.</div><div>This obviously \
only works for notifications that</div><div>you yourself have created, you cannot \
listen</div><div>to those signals of all notifications, that&#39;s only</div><div>for the \
client and the shell to know.</div><div><br class="gmail-Apple-interchange-newline">Cheers<br \
clear="all"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div><span \
style="color:rgb(102,102,102)">--</span></div><div><span style="color:rgb(102,102,102)">Martin \
Klapetek</span></div></div></div></div></div></div></div></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic