summaryrefslogtreecommitdiff
path: root/Plexservice.h
diff options
context:
space:
mode:
Diffstat (limited to 'Plexservice.h')
-rw-r--r--Plexservice.h70
1 files changed, 39 insertions, 31 deletions
diff --git a/Plexservice.h b/Plexservice.h
index a40525c..97bf8a2 100644
--- a/Plexservice.h
+++ b/Plexservice.h
@@ -33,37 +33,45 @@
#include "user.h"
#include "MediaContainer.h"
-namespace plexclient
-{
-
-class Plexservice
-{
-public:
- Plexservice(PlexServer *server);
- Plexservice(PlexServer *server, std::string startUri);
-
- std::shared_ptr<MediaContainer> GetSection(std::string section, bool putOnStack = true);
- std::shared_ptr<MediaContainer> GetLastSection(bool current = false);
- bool IsRoot();
- PlexServer* GetServer();
- void Authenticate();
-
- static std::string GetUniversalTranscodeUrl(cVideo* video, int offset = 0, PlexServer* server = 0, bool http = false);
- static std::string GetMyPlexToken();
- static std::shared_ptr<MediaContainer> GetMediaContainer(std::string fullUrl);
- //static std::string encode(std::string message);
- static void UpdateResources();
-
- std::string StartUri;
-
-private:
- Poco::Mutex m_mutex;
- PlexServer *pServer;
-
- std::stack<std::string> m_vUriStack;
- std::unique_ptr<Poco::Net::HTTPRequest> CreateRequest(std::string path);
-
-};
+namespace plexclient {
+
+ class Plexservice {
+ public:
+ Plexservice(PlexServer *server);
+
+ Plexservice(PlexServer *server, std::string startUri);
+
+ std::shared_ptr<MediaContainer> GetSection(std::string section, bool putOnStack = true);
+
+ std::shared_ptr<MediaContainer> GetLastSection(bool current = false);
+
+ bool IsRoot();
+
+ PlexServer *GetServer();
+
+ void Authenticate();
+
+ static std::string GetUniversalTranscodeUrl(cVideo *video, int offset = 0, PlexServer *server = 0,
+ bool http = false);
+
+ static std::string GetMyPlexToken();
+
+ static std::shared_ptr<MediaContainer> GetMediaContainer(std::string fullUrl);
+
+ //static std::string encode(std::string message);
+ static void UpdateResources();
+
+ std::string StartUri;
+
+ private:
+ Poco::Mutex m_mutex;
+ PlexServer *pServer;
+
+ std::stack<std::string> m_vUriStack;
+
+ std::unique_ptr<Poco::Net::HTTPRequest> CreateRequest(std::string path);
+
+ };
}