diff options
| author | Sebastien Braun | 2010-11-04 00:38:24 +0100 |
|---|---|---|
| committer | Sebastien Braun | 2010-11-04 00:38:24 +0100 |
| commit | 4fcc0efae9738bb28922da592fff78cfef50277b (patch) | |
| tree | b3855b36abe874606a802ec75fc573543d2d7b35 /src/input/sayHelloHandler.h | |
| parent | [PVSMGRTOUCH] resetall bug fixed (diff) | |
| parent | Documentation fixes and code cleanup (diff) | |
| download | pvs-4fcc0efae9738bb28922da592fff78cfef50277b.tar.gz pvs-4fcc0efae9738bb28922da592fff78cfef50277b.tar.xz pvs-4fcc0efae9738bb28922da592fff78cfef50277b.zip | |
Merge input handling work to master
Diffstat (limited to 'src/input/sayHelloHandler.h')
| -rw-r--r-- | src/input/sayHelloHandler.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/input/sayHelloHandler.h b/src/input/sayHelloHandler.h index b0d4c7e..24118cf 100644 --- a/src/input/sayHelloHandler.h +++ b/src/input/sayHelloHandler.h @@ -20,15 +20,16 @@ #include <QCoreApplication> #include "inputEventHandler.h" -class SayHelloHandler : public DefaultInputEventHandler<InputEvent::ET_SPECIAL, InputEvent::EC_SAY_HELLO> +/** + * Write a line to the log stating the PID, UID and GID of the + * PVS Client Daemon. + */ +class SayHelloHandler : public InputEventHandler< + input_policy::Match<InputEvent::ET_SPECIAL, InputEvent::EC_SAY_HELLO>, + input_policy::Security<input_policy::AllowEverybody> > { public: - void handle(InputEvent const&, InputEventContext const*); - - static void describeInto(QList<SpecialInputEventDescription>& list) - { - list << SpecialInputEventDescription(tr(QT_TRANSLATE_NOOP("InputEventHandler", "Say Hello")), InputEvent::ET_SPECIAL, InputEvent::EC_SAY_HELLO); - } + void doHandle(InputEvent const&, InputEventContext const*); }; #endif /* SAYHELLOHANDLER_CPP_ */ |
