HiveMind
Public Member Functions | Private Attributes | List of all members
ButtonCallbackRegister Class Reference

#include <ButtonCallbackRegister.h>

Inheritance diagram for ButtonCallbackRegister:
Inheritance graph
Collaboration diagram for ButtonCallbackRegister:
Collaboration graph

Public Member Functions

 ButtonCallbackRegister (IApplicationInterface &appInterface, Button button)
 
 ~ButtonCallbackRegister ()=default
 
void setCallback (buttonCallbackFunction_t callback, void *context) override
 sets the callback to the managed button More...
 
- Public Member Functions inherited from IButtonCallbackRegister
virtual ~IButtonCallbackRegister ()=default
 

Private Attributes

IApplicationInterfacem_appInterface
 
Button m_button
 

Constructor & Destructor Documentation

◆ ButtonCallbackRegister()

ButtonCallbackRegister::ButtonCallbackRegister ( IApplicationInterface appInterface,
Button  button 
)

◆ ~ButtonCallbackRegister()

ButtonCallbackRegister::~ButtonCallbackRegister ( )
default

Member Function Documentation

◆ setCallback()

void ButtonCallbackRegister::setCallback ( buttonCallbackFunction_t  callback,
void *  context 
)
overridevirtual

sets the callback to the managed button

Parameters
callbacka pointer to the callback function
contexta pointer to the context passed to the callback when called

Implements IButtonCallbackRegister.

Here is the call graph for this function:

Member Data Documentation

◆ m_appInterface

IApplicationInterface& ButtonCallbackRegister::m_appInterface
private

◆ m_button

Button ButtonCallbackRegister::m_button
private

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