summaryrefslogtreecommitdiff
path: root/PlexServer.h
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-12-19 21:55:26 +0100
committerchriszero <zerov83@gmail.com>2015-12-19 21:55:26 +0100
commit516d7da6bf79c8e48d5348706faeba8ea5061984 (patch)
treed200477fa28271c5c47ceb9811394e405fd56b1d /PlexServer.h
parent1d624e296ee8b6a13abf0a4012a5e07b2354970e (diff)
downloadvdr-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.h7
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();