![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A DTMF sequence editor and player for HAM radio equipment command & control.
KeyboardManager/kbd_mgr/KeyboardStateChangeMonitor.h@0:1324e7d9d471, 2011-03-07 (annotated)
- Committer:
- osmeest
- Date:
- Mon Mar 07 22:51:19 2011 +0000
- Revision:
- 0:1324e7d9d471
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
osmeest | 0:1324e7d9d471 | 1 | #ifndef KEYBOARD_STATE_CHANGE_MONITOR_H_ |
osmeest | 0:1324e7d9d471 | 2 | #define KEYBOARD_STATE_CHANGE_MONITOR_H_ |
osmeest | 0:1324e7d9d471 | 3 | |
osmeest | 0:1324e7d9d471 | 4 | #include "kbd_mgr/KeyboardStateEventServer.h" |
osmeest | 0:1324e7d9d471 | 5 | #include "kbd_mgr/KeyboardState.h" |
osmeest | 0:1324e7d9d471 | 6 | |
osmeest | 0:1324e7d9d471 | 7 | namespace kbd_mgr { |
osmeest | 0:1324e7d9d471 | 8 | |
osmeest | 0:1324e7d9d471 | 9 | /** |
osmeest | 0:1324e7d9d471 | 10 | * @brief A keyboard state handler that reports only state changes. |
osmeest | 0:1324e7d9d471 | 11 | */ |
osmeest | 0:1324e7d9d471 | 12 | class KeyboardStateChangeMonitor : public KeyboardStateEventServer, public KeyboardStateHandler { |
osmeest | 0:1324e7d9d471 | 13 | public: |
osmeest | 0:1324e7d9d471 | 14 | virtual void handleState(const KeyboardState &newState); |
osmeest | 0:1324e7d9d471 | 15 | |
osmeest | 0:1324e7d9d471 | 16 | private: |
osmeest | 0:1324e7d9d471 | 17 | KeyboardState lastState; |
osmeest | 0:1324e7d9d471 | 18 | }; |
osmeest | 0:1324e7d9d471 | 19 | |
osmeest | 0:1324e7d9d471 | 20 | } // kbd_mgr |
osmeest | 0:1324e7d9d471 | 21 | |
osmeest | 0:1324e7d9d471 | 22 | #endif // KEYBOARD_STATE_CHANGE_MONITOR_H_ |