summaryrefslogtreecommitdiff
path: root/PVideo.h
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2014-11-15 19:43:07 +0100
committerchriszero <zerov83@gmail.com>2014-11-15 19:43:07 +0100
commit23f9f7712bfa33b5a488a447a6fabe6035cc3240 (patch)
tree06bbe8e0bc52496c5ad3c41accc7524aa597e670 /PVideo.h
parenta40adaf76fb1267d38b4c5e6386933ddb2d0d328 (diff)
downloadvdr-plugin-plex-23f9f7712bfa33b5a488a447a6fabe6035cc3240.tar.gz
vdr-plugin-plex-23f9f7712bfa33b5a488a447a6fabe6035cc3240.tar.bz2
initial commit
Diffstat (limited to 'PVideo.h')
-rw-r--r--PVideo.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/PVideo.h b/PVideo.h
new file mode 100644
index 0000000..ae61da4
--- /dev/null
+++ b/PVideo.h
@@ -0,0 +1,67 @@
+#ifndef VIDEO_H
+#define VIDEO_H
+
+#include <Poco/DOM/DOMParser.h>
+#include <Poco/DOM/Document.h>
+#include <Poco/DOM/NamedNodeMap.h>
+#include <Poco/DOM/NodeIterator.h>
+#include <Poco/DOM/NodeFilter.h>
+#include <Poco/DOM/NodeList.h>
+#include <Poco/DOM/AutoPtr.h>
+#include <Poco/Exception.h>
+#include <Poco/Timestamp.h>
+#include <Poco/String.h>
+
+#include <vector>
+#include <iostream>
+
+#include "XmlObject.h"
+#include "Media.h"
+
+using Poco::XML::DOMParser;
+using Poco::XML::Document;
+using Poco::XML::NodeIterator;
+using Poco::XML::NodeFilter;
+using Poco::XML::Node;
+using Poco::XML::AutoPtr;
+using Poco::Exception;
+
+namespace plexclient
+{
+
+class Video: XmlObject
+{
+public:
+ Video(Poco::XML::Node* pNode);
+ ~Video();
+
+public:
+ int m_iRatingKey;
+ std::string m_sStudio;
+ MediaType m_tType;
+ std::string m_sTitle;
+ std::string m_sOriginalTitle;
+ std::string m_sContentRating;
+ std::string m_sSummary;
+ long m_lViewoffset;
+ Poco::Timestamp m_tLastViewedAt;
+ int m_iYear;
+ std::string m_sThumb;
+ std::string m_sArt;
+ long m_iDuration;
+ Poco::Timestamp m_tAddedAt;
+ Poco::Timestamp m_tUpdatedAt;
+
+ std::vector<std::string> m_vGenre;
+ std::vector<std::string> m_vWriter;
+ std::vector<std::string> m_vDirector;
+ std::vector<std::string> m_vCountry;
+ std::vector<std::string> m_vRole;
+ std::string m_sCollection;
+ Media *m_pMedia;
+
+};
+
+}
+
+#endif // VIDEO_H