diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-05-25 21:34:57 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-05-25 21:34:57 -0400 |
commit | 501880160ac69f90143bc38add541731a9242ab0 (patch) | |
tree | 30c0a94d056cba49b89a272c844cc2f459817fea /src/client.h | |
parent | cec9786bc11c897a00cf7ab8baafb142a709ba27 (diff) | |
download | libtwittercpp-501880160ac69f90143bc38add541731a9242ab0.tar.gz libtwittercpp-501880160ac69f90143bc38add541731a9242ab0.tar.bz2 libtwittercpp-501880160ac69f90143bc38add541731a9242ab0.zip |
Added option to receive all replies in user stream
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 { | |||
31 | stream(client& _client); | 31 | stream(client& _client); |
32 | 32 | ||
33 | void setNotifyCallback(notify_callback _n); | 33 | void setNotifyCallback(notify_callback _n); |
34 | void setReceiveAllReplies(bool _arg); | ||
34 | 35 | ||
35 | bool isRunning() const; | 36 | bool isRunning() const; |
36 | void start(); | 37 | void start(); |
@@ -54,13 +55,13 @@ namespace twitter { | |||
54 | bool _stop = false; | 55 | bool _stop = false; |
55 | std::thread _thread; | 56 | std::thread _thread; |
56 | std::mutex _running_mutex; | 57 | std::mutex _running_mutex; |
57 | std::mutex _notify_mutex; | ||
58 | std::mutex _stall_mutex; | 58 | std::mutex _stall_mutex; |
59 | std::string _buffer; | 59 | std::string _buffer; |
60 | time_t _last_write; | 60 | time_t _last_write; |
61 | bool _established = false; | 61 | bool _established = false; |
62 | backoff _backoff_type = backoff::none; | 62 | backoff _backoff_type = backoff::none; |
63 | std::chrono::milliseconds _backoff_amount; | 63 | std::chrono::milliseconds _backoff_amount; |
64 | bool _receive_all_replies = false; | ||
64 | }; | 65 | }; |
65 | 66 | ||
66 | client(const auth& _auth); | 67 | client(const auth& _auth); |
@@ -80,7 +81,9 @@ namespace twitter { | |||
80 | 81 | ||
81 | const user& getUser() const; | 82 | const user& getUser() const; |
82 | 83 | ||
84 | // NOTE: stream setting function calls will fail silently when stream is running | ||
83 | void setUserStreamNotifyCallback(stream::notify_callback callback); | 85 | void setUserStreamNotifyCallback(stream::notify_callback callback); |
86 | void setUserStreamReceiveAllReplies(bool _arg); | ||
84 | void startUserStream(); | 87 | void startUserStream(); |
85 | void stopUserStream(); | 88 | void stopUserStream(); |
86 | 89 | ||