HiveMind
ButtonCallbackRegister.h
Go to the documentation of this file.
1 #ifndef BUTTONCALLBACKREGISTER_H_
2 #define BUTTONCALLBACKREGISTER_H_
3 
5 
7  public:
9  ~ButtonCallbackRegister() = default;
10 
11  void setCallback(buttonCallbackFunction_t callback, void* context) override;
12 
13  private:
16 };
17 
18 #endif // BUTTONCALLBACKREGISTER_H_
ButtonCallbackRegister::ButtonCallbackRegister
ButtonCallbackRegister(IApplicationInterface &appInterface, Button button)
Definition: ButtonCallbackRegister.cpp:3
IButtonCallbackRegister
Manages the callback of a single button.
Definition: IButtonCallbackRegister.h:7
IApplicationInterface
Definition: IApplicationInterface.h:7
ButtonCallbackRegister::m_appInterface
IApplicationInterface & m_appInterface
Definition: ButtonCallbackRegister.h:14
Button
Button
Buttons present on the board.
Definition: IUserInterface.h:16
ButtonCallbackRegister::~ButtonCallbackRegister
~ButtonCallbackRegister()=default
ButtonCallbackRegister
Definition: ButtonCallbackRegister.h:6
ButtonCallbackRegister::setCallback
void setCallback(buttonCallbackFunction_t callback, void *context) override
sets the callback to the managed button
Definition: ButtonCallbackRegister.cpp:6
IButtonCallbackRegister.h
ButtonCallbackRegister::m_button
Button m_button
Definition: ButtonCallbackRegister.h:15
buttonCallbackFunction_t
void(* buttonCallbackFunction_t)(void *instance)
Prototype for a callback from a button press.
Definition: IUserInterface.h:28