diff options
author | chriszero <zerov83@gmail.com> | 2015-12-19 21:55:26 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-12-19 21:55:26 +0100 |
commit | 516d7da6bf79c8e48d5348706faeba8ea5061984 (patch) | |
tree | d200477fa28271c5c47ceb9811394e405fd56b1d /PlexServer.h | |
parent | 1d624e296ee8b6a13abf0a4012a5e07b2354970e (diff) | |
download | vdr-plugin-plex-516d7da6bf79c8e48d5348706faeba8ea5061984.tar.gz vdr-plugin-plex-516d7da6bf79c8e48d5348706faeba8ea5061984.tar.bz2 |
Starting to redesign server communication.
Diffstat (limited to 'PlexServer.h')
-rw-r--r-- | PlexServer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/PlexServer.h b/PlexServer.h index e530aa9..61031a0 100644 --- a/PlexServer.h +++ b/PlexServer.h @@ -7,11 +7,13 @@ #include <iostream> #include <vector> #include <memory> +#include <map> #include <Poco/String.h> #include <Poco/Net/HTTPClientSession.h> #include <Poco/Net/HTTPSClientSession.h> #include <Poco/Net/HTTPRequest.h> +#include <Poco/Net/HTTPResponse.h> #include <Poco/Net/MessageHeader.h> #include <Poco/URI.h> @@ -60,6 +62,11 @@ class PlexServer const bool& IsLocal() const { return m_bLocal; } + void SetAuthToken(std::string token) { + m_authToken = token; + } + + std::istream& MakeRequest(Poco::Net::HTTPResponse& response, std::string path, std::map<std::string, std::string> queryParameters = std::map<std::string, std::string>()); std::string GetHost(); int GetPort(); |