[Konsole-devel] Review Request: Allow applications hosting the Konsole KPart to monitor for silence and activity
Eike Hein
hein at kde.org
Fri Aug 5 11:37:28 UTC 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102223/
-----------------------------------------------------------
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).
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/20110805/c5b98a4c/attachment.html>
More information about the konsole-devel
mailing list