23#ifndef __mqtt_response_options_h
24#define __mqtt_response_options_h
53 MQTTAsync_responseOptions opts_ MQTTAsync_responseOptions_initializer;
62 std::vector<MQTTSubscribe_options> subOpts_;
68 void update_c_struct();
107#if defined(UNIT_TESTS)
108 const auto& c_struct()
const {
return opts_; }
138 props_ = std::move(props);
139 opts_.properties = props_.
c_struct();
190 : opts_(mqttVersion) {}
266 MQTTAsync_responseOptions opts_;
290#if defined(UNIT_TESTS)
291 const MQTTAsync_responseOptions& c_struct()
const {
return opts_; }
299 opts_.context = dtok.get();
Definition async_client.h:121
Definition response_options.h:264
void set_token(const delivery_token_ptr &dtok)
Definition response_options.h:297
delivery_response_options(int mqttVersion=MQTTVERSION_DEFAULT)
delivery_response_options(const delivery_token_ptr &dtok, int mqttVersion=MQTTVERSION_DEFAULT)
std::weak_ptr< delivery_token > weak_ptr_t
Definition delivery_token.h:62
Definition properties.h:293
properties()
Definition properties.h:358
const MQTTProperties & c_struct() const
Definition properties.h:389
Definition response_options.h:179
auto properties(mqtt::properties &&props) -> self &
Definition response_options.h:212
auto subscribe_opts(const subscribe_options &opts) -> self &
Definition response_options.h:228
auto properties(const mqtt::properties &props) -> self &
Definition response_options.h:220
auto token(const token_ptr &tok) -> self &
Definition response_options.h:204
auto subscribe_opts(const std::vector< subscribe_options > &opts) -> self &
Definition response_options.h:244
response_options finalize()
Definition response_options.h:252
auto mqtt_version(int mqttVersion) -> self &
Definition response_options.h:196
auto subscribe_many_opts(const std::vector< subscribe_options > &opts) -> self &
Definition response_options.h:236
response_options_builder(int mqttVersion=MQTTVERSION_DEFAULT)
Definition response_options.h:189
Definition response_options.h:51
std::vector< subscribe_options > get_subscribe_many_options() const
response_options(int mqttVersion=MQTTVERSION_DEFAULT)
Definition response_options.h:75
void set_token(const token_ptr &tok)
response_options(const token_ptr &tok, int mqttVersion=MQTTVERSION_DEFAULT)
subscribe_options get_subscribe_options() const
Definition response_options.h:145
void set_subscribe_options(const subscribe_options &opts)
response_options & operator=(const response_options &rhs)
void set_subscribe_options(const std::vector< subscribe_options > &opts)
Definition response_options.h:168
void set_mqtt_version(int mqttVersion)
response_options(response_options &&other)
void set_properties(properties &&props)
Definition response_options.h:137
void set_subscribe_many_options(const std::vector< subscribe_options > &opts)
void set_properties(const properties &props)
Definition response_options.h:129
response_options(const response_options &other)
const properties & get_properties() const
Definition response_options.h:124
response_options & operator=(response_options &&rhs)
Definition subscribe_options.h:49
std::weak_ptr< token > weak_ptr_t
Definition token.h:61
Definition async_client.h:60
token::ptr_t token_ptr
Definition token.h:513
delivery_token::ptr_t delivery_token_ptr
Definition delivery_token.h:127