From 501880160ac69f90143bc38add541731a9242ab0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 25 May 2016 21:34:57 -0400 Subject: Added option to receive all replies in user stream --- src/client.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index 901c7b5..c1c6344 100644 --- a/src/client.h +++ b/src/client.h @@ -31,6 +31,7 @@ namespace twitter { stream(client& _client); void setNotifyCallback(notify_callback _n); + void setReceiveAllReplies(bool _arg); bool isRunning() const; void start(); @@ -54,13 +55,13 @@ namespace twitter { bool _stop = false; std::thread _thread; std::mutex _running_mutex; - std::mutex _notify_mutex; std::mutex _stall_mutex; std::string _buffer; time_t _last_write; bool _established = false; backoff _backoff_type = backoff::none; std::chrono::milliseconds _backoff_amount; + bool _receive_all_replies = false; }; client(const auth& _auth); @@ -80,7 +81,9 @@ namespace twitter { const user& getUser() const; + // NOTE: stream setting function calls will fail silently when stream is running void setUserStreamNotifyCallback(stream::notify_callback callback); + void setUserStreamReceiveAllReplies(bool _arg); void startUserStream(); void stopUserStream(); -- cgit 1.4.1