Loading...
Searching...
No Matches
iaction_listener.h
Go to the documentation of this file.
/*******************************************************************************
* Copyright (c) 2013-2016 Frank Pagliughi <fpagliughi@mindspring.com>
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* and Eclipse Distribution License v1.0 which accompany this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v20.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Frank Pagliughi - initial implementation and documentation
*******************************************************************************/
#ifndef __mqtt_iaction_listener_h
#define __mqtt_iaction_listener_h
#include <vector>
#include "MQTTAsync.h"
#include "mqtt/types.h"
namespace mqtt {
class token;
class iaction_listener
{
public:
using ptr_t = std::shared_ptr<iaction_listener>;
using const_ptr_t = std::shared_ptr<const iaction_listener>;
virtual ~iaction_listener() {}
virtual void on_failure(const token& asyncActionToken) = 0;
virtual void on_success(const token& asyncActionToken) = 0;
};
using iaction_listener_ptr = iaction_listener::ptr_t;
using const_iaction_listener_ptr = iaction_listener::const_ptr_t;
} // namespace mqtt
#endif // __mqtt_iaction_listener_h
mqtt::iaction_listener
Definition iaction_listener.h:50
mqtt::iaction_listener::on_success
virtual void on_success(const token &asyncActionToken)=0
mqtt::iaction_listener::ptr_t
std::shared_ptr< iaction_listener > ptr_t
Definition iaction_listener.h:53
mqtt::iaction_listener::const_ptr_t
std::shared_ptr< const iaction_listener > const_ptr_t
Definition iaction_listener.h:55
mqtt::iaction_listener::~iaction_listener
virtual ~iaction_listener()
Definition iaction_listener.h:60
mqtt::iaction_listener::on_failure
virtual void on_failure(const token &asyncActionToken)=0
mqtt::token
Definition token.h:54
mqtt
Definition async_client.h:60
mqtt::const_iaction_listener_ptr
iaction_listener::const_ptr_t const_iaction_listener_ptr
Definition iaction_listener.h:77
mqtt::iaction_listener_ptr
iaction_listener::ptr_t iaction_listener_ptr
Definition iaction_listener.h:74
types.h