diff options
| author | Sebastien Braun | 2010-10-23 17:49:12 +0200 |
|---|---|---|
| committer | Sebastien Braun | 2010-10-24 23:43:08 +0200 |
| commit | 7e3b963e3a0cbbf9391243e72ceb015e9015d630 (patch) | |
| tree | d980c26b837ef106e286ea3ed3562ee37ffbd0bf /src/input/magicSysRqHandler.h | |
| parent | Fix forgotten change of j to mods in X11FakeKeyboardHandler. (diff) | |
| download | pvs-7e3b963e3a0cbbf9391243e72ceb015e9015d630.tar.gz pvs-7e3b963e3a0cbbf9391243e72ceb015e9015d630.tar.xz pvs-7e3b963e3a0cbbf9391243e72ceb015e9015d630.zip | |
Documentation fixes and code cleanup
Diffstat (limited to 'src/input/magicSysRqHandler.h')
| -rw-r--r-- | src/input/magicSysRqHandler.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/input/magicSysRqHandler.h b/src/input/magicSysRqHandler.h index ba02997..5afe259 100644 --- a/src/input/magicSysRqHandler.h +++ b/src/input/magicSysRqHandler.h @@ -19,16 +19,20 @@ #include "inputEventHandler.h" +/** + * Emulate the magic SysRq-Key on Linux. + */ class MagicSysRqHandler : public InputEventHandler< input_policy::Match<InputEvent::ET_SPECIAL, InputEvent::EC_SYSRQ>, input_policy::Require<input_policy::LinuxSystem> > { public: - void doHandle(InputEvent const& evt, InputEventContext const* ctx); -// static void describeInto(QList<SpecialInputEventDescription>& list) -// { -// } + /** + * Send the least significant byte of \c evt's InputEvent::value() + * to the magic \c /proc/sysrq-trigger file. + */ + void doHandle(InputEvent const& evt, InputEventContext const* ctx); }; #endif /* MAGICSYSRQHANDLER_H_ */ |
