|
Open Model Railroad Network (OpenMRN)
|
This class provides a proxy for the Notifiable provided by the SocketClient. More...
Public Member Functions | |
| UplinkNotifiable (Esp32WiFiManager *parent) | |
| Constructor. | |
| virtual void | notify () override |
| Proxies the notify() call to the uplink if it is not null. | |
Private Attributes | |
| Esp32WiFiManager * | parent_ |
| Esp32WiFiManager instance that manages this class instance. | |
This class provides a proxy for the Notifiable provided by the SocketClient.
This is necessary to ensure the Notifiable does not get invalidated when the SocketClient is deleted prior to the socket being closed.
Definition at line 591 of file Esp32WiFiManager.hxx.
|
inline |
Constructor.
| parent | Esp32WiFiManager instance that this notifiable will interact with for uplink disconnect events. |
Definition at line 598 of file Esp32WiFiManager.hxx.
|
inlineoverridevirtual |
Proxies the notify() call to the uplink if it is not null.
Implements Notifiable.
Definition at line 603 of file Esp32WiFiManager.hxx.
|
private |
Esp32WiFiManager instance that manages this class instance.
Definition at line 614 of file Esp32WiFiManager.hxx.