From e61097b8881bc7e72a5499816cb1199ea274a3ca Mon Sep 17 00:00:00 2001 From: Sebastien Braun Date: Thu, 7 Oct 2010 22:54:10 +0200 Subject: Rework template meta-magic - No more implicit dependency on Boost.MPL - Better documentation for template magic - Move input handler policies to handler definitions where they belong - Separate out event descriptions from handlers --- src/input/rebootSystemHandler.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/input/rebootSystemHandler.h') diff --git a/src/input/rebootSystemHandler.h b/src/input/rebootSystemHandler.h index 34fa8ae..4920452 100644 --- a/src/input/rebootSystemHandler.h +++ b/src/input/rebootSystemHandler.h @@ -20,15 +20,11 @@ #include #include "inputEventHandler.h" -class RebootLinuxSystemHandler : public DefaultInputEventHandler +class RebootLinuxSystemHandler : public InputEventHandler< + input_policy::Require > { public: - void handle(InputEvent const&, InputEventContext const*); - - static void describeInto(QList& list) - { - list << SpecialInputEventDescription(tr(QT_TRANSLATE_NOOP("InputEventHandler", "Reboot")), InputEvent::ET_SPECIAL, InputEvent::EC_REBOOT); - } + void doHandle(InputEvent const&, InputEventContext const*); }; #endif /* REBOOTSYSTEMHANDLER_H_ */ -- cgit v1.2.3-55-g7522