[Konsole-devel] Review Request: Allow applications hosting the Konsole KPart to monitor for silence and activity

Kurt Hindenburg kurt.hindenburg at gmail.com
Sat Aug 6 15:09:55 UTC 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102223/#review5435
-----------------------------------------------------------

Ship it!


It looks fine to me to put in 4.8 and 4.7.1.  Thanks.

- Kurt


On Aug. 5, 2011, 1:35 p.m., Eike Hein wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/102223/
> -----------------------------------------------------------
> 
> (Updated Aug. 5, 2011, 1:35 p.m.)
> 
> 
> Review request for Konsole.
> 
> 
> Summary
> -------
> 
> The purpose of this patch is to allow applications hosting the Konsole KPart to tap into Konsole's ability to monitor terminals for silence or activity.
> 
> To accomplish this, Part has seen the addition of two slots, each taking a bool argument, to toggle the monitoring for silence or activity, respectively. Once and only if monitoring is enabled for an event type, a corresponding newly-added signal is emitted by Part.
> 
> Repeated calls to enable monitoring are handled by means of Qt::UniqueConnection. As the KPart internally has the notion of supporting multiple sessions, but this is not exposed in its API or user interface, the code has been written to toggle monitoring on all sessions by getting the list from SessionManager.
> 
> The use of signals and slots instead of extending the TerminalInterface class may seem strange, but this has ample precedent - there are several such slots and one signal already, which are in active use by applications (e.g. Yakuake).
> 
> The addition of this interface will allow the implementation of a long-standing feature wish by Yakuake users (monitoring for silence/activity).
> 
> Should this patch be accepted I can commit it myself.
> 
> 
> This addresses bug 169650.
>     http://bugs.kde.org/show_bug.cgi?id=169650
> 
> 
> Diffs
> -----
> 
>   src/Part.h f1262dd 
>   src/Part.cpp e70b7e3 
> 
> Diff: http://git.reviewboard.kde.org/r/102223/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Eike
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20110806/c08faef6/attachment.html>


More information about the konsole-devel mailing list