7 #ifndef __mqtt_response_options_h 8 #define __mqtt_response_options_h 10 #include "MQTTAsync.h" 37 MQTTAsync_responseOptions opts_;
46 std::vector<MQTTSubscribe_options> subOpts_;
52 void update_c_struct();
79 #if defined(UNIT_TESTS) 80 const MQTTAsync_responseOptions& c_struct()
const {
return opts_; }
106 props_ = std::move(props);
107 opts_.properties = props_.
c_struct();
138 : opts_(mqttVersion) {}
206 MQTTAsync_responseOptions opts_;
225 int mqttVersion=MQTTVERSION_DEFAULT);
229 #if defined(UNIT_TESTS) 230 const MQTTAsync_responseOptions& c_struct()
const {
return opts_; }
238 opts_.context = dtok.get();
246 #endif // __mqtt_response_options_h Definition: response_options.h:203
auto properties(const mqtt::properties &props) -> self &
Definition: response_options.h:168
Definition: async_client.h:107
void set_token(const token_ptr &tok)
std::weak_ptr< token > weak_ptr_t
Definition: token.h:60
response_options(int mqttVersion=MQTTVERSION_DEFAULT)
void set_properties(const properties &props)
Definition: response_options.h:97
auto subscribe_opts(const subscribe_options &opts) -> self &
Definition: response_options.h:176
std::weak_ptr< delivery_token > weak_ptr_t
Definition: delivery_token.h:61
Definition: properties.h:255
auto mqtt_version(int mqttVersion) -> self &
Definition: response_options.h:144
auto properties(mqtt::properties &&props) -> self &
Definition: response_options.h:160
void set_mqtt_version(int mqttVersion)
const MQTTProperties & c_struct() const
Definition: properties.h:308
response_options & operator=(const response_options &rhs)
token::ptr_t token_ptr
Definition: token.h:506
delivery_response_options(int mqttVersion=MQTTVERSION_DEFAULT)
response_options_builder(int mqttVersion=MQTTVERSION_DEFAULT)
Definition: response_options.h:137
delivery_token::ptr_t delivery_token_ptr
Definition: delivery_token.h:125
auto subscribe_opts(const std::vector< subscribe_options > &opts) -> self &
Definition: response_options.h:184
Definition: response_options.h:126
Definition: subscribe_options.h:41
void set_token(const delivery_token_ptr &dtok)
Definition: response_options.h:236
auto token(const token_ptr &tok) -> self &
Definition: response_options.h:152
Definition: response_options.h:34
Definition: async_client.h:49
void set_properties(properties &&props)
Definition: response_options.h:105
response_options finalize()
Definition: response_options.h:192
void set_subscribe_options(const subscribe_options &opts)