about summary refs log tree commit diff stats
path: root/src/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h index c1c6344..f96022d 100644 --- a/src/client.h +++ b/src/client.h
@@ -11,6 +11,7 @@
11#include <set> 11#include <set>
12#include <ctime> 12#include <ctime>
13#include <chrono> 13#include <chrono>
14#include "configuration.h"
14 15
15namespace OAuth { 16namespace OAuth {
16 class Consumer; 17 class Consumer;
@@ -81,6 +82,8 @@ namespace twitter {
81 82
82 const user& getUser() const; 83 const user& getUser() const;
83 84
85 configuration getConfiguration();
86
84 // NOTE: stream setting function calls will fail silently when stream is running 87 // NOTE: stream setting function calls will fail silently when stream is running
85 void setUserStreamNotifyCallback(stream::notify_callback callback); 88 void setUserStreamNotifyCallback(stream::notify_callback callback);
86 void setUserStreamReceiveAllReplies(bool _arg); 89 void setUserStreamReceiveAllReplies(bool _arg);
@@ -99,6 +102,9 @@ namespace twitter {
99 user _current_user; 102 user _current_user;
100 stream _user_stream{*this}; 103 stream _user_stream{*this};
101 104
105 configuration _configuration;
106 time_t _last_configuration_update;
107
102 bool performGet(std::string url, long& response_code, std::string& result); 108 bool performGet(std::string url, long& response_code, std::string& result);
103 bool performPost(std::string url, std::string dataStr, long& response_code, std::string& result); 109 bool performPost(std::string url, std::string dataStr, long& response_code, std::string& result);
104 bool performMultiPost(std::string url, const curl_httppost* fields, long& response_code, std::string& result); 110 bool performMultiPost(std::string url, const curl_httppost* fields, long& response_code, std::string& result);