24 #ifndef __mqtt_iaction_listener_h
25 #define __mqtt_iaction_listener_h
27 #include "MQTTAsync.h"
52 using ptr_t = std::shared_ptr<iaction_listener>;
83 #endif // __mqtt_iaction_listener_h
Basic types and type conversions for the Paho MQTT C++ library.
Provides a mechanism for tracking the completion of an asynchronous action.
Definition: iaction_listener.h:48
virtual ~iaction_listener()
Virtual base destructor.
Definition: iaction_listener.h:59
virtual void on_failure(const token &asyncActionToken)=0
This method is invoked when an action fails.
std::shared_ptr< iaction_listener > ptr_t
Smart/shared pointer to an object of this class.
Definition: iaction_listener.h:52
std::shared_ptr< const iaction_listener > const_ptr_t
Smart/shared pointer to a const object of this class.
Definition: iaction_listener.h:54
virtual void on_success(const token &asyncActionToken)=0
This method is invoked when an action has completed successfully.
Provides a mechanism for tracking the completion of an asynchronous action.
Definition: token.h:49