Olivier Smeesters
/
DtmfKit
A DTMF sequence editor and player for HAM radio equipment command & control.
KeyboardManager/kbd_mgr/KeyboardStateChangeMonitor.h
- Committer:
- osmeest
- Date:
- 2011-03-07
- Revision:
- 0:1324e7d9d471
File content as of revision 0:1324e7d9d471:
#ifndef KEYBOARD_STATE_CHANGE_MONITOR_H_ #define KEYBOARD_STATE_CHANGE_MONITOR_H_ #include "kbd_mgr/KeyboardStateEventServer.h" #include "kbd_mgr/KeyboardState.h" namespace kbd_mgr { /** * @brief A keyboard state handler that reports only state changes. */ class KeyboardStateChangeMonitor : public KeyboardStateEventServer, public KeyboardStateHandler { public: virtual void handleState(const KeyboardState &newState); private: KeyboardState lastState; }; } // kbd_mgr #endif // KEYBOARD_STATE_CHANGE_MONITOR_H_