EX-Display
EX-Display
Loading...
Searching...
No Matches
CallbackInterface Class Referenceabstract

Interface class to use for callbacks. More...

#include <CallbackInterface.h>

Inheritance diagram for CallbackInterface:
[legend]
Collaboration diagram for CallbackInterface:
[legend]

Public Member Functions

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.
 

Protected Attributes

Logger_logger = nullptr
 Pointer to the logger interface.
 

Detailed Description

Interface class to use for callbacks.

Constructor & Destructor Documentation

◆ ~CallbackInterface()

virtual CallbackInterface::~CallbackInterface ( )
virtualdefault

Virtual destructor for the CallBackInterface.

Member Function Documentation

◆ onInputAction()

virtual void CallbackInterface::onInputAction ( InputAction  action)
pure virtual

Method to implement to respond to an input action.

Parameters
actionPRESS_UP, PRESS_DOWN, PRESS_LEFT, PRESS_RIGHT, PRESS_CENTRE

Implemented in Controller.

Here is the caller graph for this function:

◆ setLogger()

void CallbackInterface::setLogger ( Logger logger)
inline

Set the logger instance to use for diagnostic logging.

Parameters
loggerPointer 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
screenIdID of the screen to update
rowRow number to update
textText to update

Implemented in Controller.

Here is the caller graph for this function:

Member Data Documentation

◆ _logger

Logger* CallbackInterface::_logger = nullptr
protected

Pointer to the logger interface.


The documentation for this class was generated from the following file: