summaryrefslogtreecommitdiffstats
path: root/src/input/magicSysRqHandler.h
diff options
context:
space:
mode:
authorSebastien Braun2010-10-23 17:49:12 +0200
committerSebastien Braun2010-10-24 23:43:08 +0200
commit7e3b963e3a0cbbf9391243e72ceb015e9015d630 (patch)
treed980c26b837ef106e286ea3ed3562ee37ffbd0bf /src/input/magicSysRqHandler.h
parentFix forgotten change of j to mods in X11FakeKeyboardHandler. (diff)
downloadpvs-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.h12
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_ */