Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
ConfigUpdateListener.hxx
Go to the documentation of this file.
1
36#ifndef _UTILS_CONFIGUPDATELISTENER_HXX_
37#define _UTILS_CONFIGUPDATELISTENER_HXX_
38
39#include "utils/QMember.hxx"
41
52{
53public:
66
90 virtual UpdateAction apply_configuration(int fd, bool initial_load,
91 BarrierNotifiable *done) = 0;
92
98 virtual void factory_reset(int fd) = 0;
99};
100
101
110
111
112#endif // _UTILS_CONFIGUPDATELISTENER_HXX_
A BarrierNotifiable allows to create a number of child Notifiable and wait for all of them to finish.
Abstract class for components that need to receive configuration from EEPROM.
virtual void factory_reset(int fd)=0
Clears configuration file and resets the configuration settings to factory value.
UpdateAction
Specifies what additional steps are needed to apply the new configuration.
@ REINIT_NEEDED
Need to perform application-level reinitialization.
@ UPDATED
No additional step is necessary.
@ REBOOT_NEEDED
Need to reboot the hardware.
virtual UpdateAction apply_configuration(int fd, bool initial_load, BarrierNotifiable *done)=0
Notifies the component that there is new configuration available for loading.
Implementation of ConfigUpdateListener that registers itself in the constructor and unregisters itsel...
Essentially a "next" pointer container.
Definition QMember.hxx:42