Interface class to use for callbacks.
More...
#include <CallbackInterface.h>
|
virtual void | updateScreen (uint8_t screenId, uint8_t row, const char *text)=0 |
| Method to implement updating a screen.
|
|
virtual void | onInputAction (InputAction action)=0 |
| Method to implement to respond to an input action.
|
|
void | setLogger (Logger *logger) |
| Set the logger instance to use for diagnostic logging.
|
|
virtual | ~CallbackInterface ()=default |
| Virtual destructor for the CallBackInterface.
|
|
Interface class to use for callbacks.
◆ ~CallbackInterface()
virtual CallbackInterface::~CallbackInterface |
( |
| ) |
|
|
virtualdefault |
Virtual destructor for the CallBackInterface.
◆ onInputAction()
virtual void CallbackInterface::onInputAction |
( |
InputAction |
action | ) |
|
|
pure virtual |
Method to implement to respond to an input action.
- Parameters
-
action | PRESS_UP, PRESS_DOWN, PRESS_LEFT, PRESS_RIGHT, PRESS_CENTRE |
Implemented in Controller.
◆ setLogger()
void CallbackInterface::setLogger |
( |
Logger * |
logger | ) |
|
|
inline |
Set the logger instance to use for diagnostic logging.
- Parameters
-
logger | Pointer to the Logger instance to use |
◆ updateScreen()
virtual void CallbackInterface::updateScreen |
( |
uint8_t |
screenId, |
|
|
uint8_t |
row, |
|
|
const char * |
text |
|
) |
| |
|
pure virtual |
Method to implement updating a screen.
- Parameters
-
screenId | ID of the screen to update |
row | Row number to update |
text | Text to update |
Implemented in Controller.
◆ _logger
Logger* CallbackInterface::_logger = nullptr |
|
protected |
Pointer to the logger interface.
The documentation for this class was generated from the following file: