about summary refs log tree commit diff stats
path: root/src/client.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-05-31 09:55:58 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-05-31 09:55:58 -0400
commitaceb3cc33ee78cce1077252aff8a8808a3195ff1 (patch)
tree74afeee58c942f827c4f7830c20b206cb8c7e36b /src/client.h
parent501880160ac69f90143bc38add541731a9242ab0 (diff)
downloadlibtwittercpp-aceb3cc33ee78cce1077252aff8a8808a3195ff1.tar.gz
libtwittercpp-aceb3cc33ee78cce1077252aff8a8808a3195ff1.tar.bz2
libtwittercpp-aceb3cc33ee78cce1077252aff8a8808a3195ff1.zip
Added ability to get configuration
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);