diff options
author | chriszero <zerov83@gmail.com> | 2014-11-15 19:43:07 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2014-11-15 19:43:07 +0100 |
commit | 23f9f7712bfa33b5a488a447a6fabe6035cc3240 (patch) | |
tree | 06bbe8e0bc52496c5ad3c41accc7524aa597e670 /XmlObject.h | |
parent | a40adaf76fb1267d38b4c5e6386933ddb2d0d328 (diff) | |
download | vdr-plugin-plex-23f9f7712bfa33b5a488a447a6fabe6035cc3240.tar.gz vdr-plugin-plex-23f9f7712bfa33b5a488a447a6fabe6035cc3240.tar.bz2 |
initial commit
Diffstat (limited to 'XmlObject.h')
-rw-r--r-- | XmlObject.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/XmlObject.h b/XmlObject.h new file mode 100644 index 0000000..d227af7 --- /dev/null +++ b/XmlObject.h @@ -0,0 +1,34 @@ +#ifndef XMLOBJECT_H +#define XMLOBJECT_H + +#include <Poco/DOM/Document.h> +#include <Poco/Timestamp.h> +#include <Poco/String.h> +#include <Poco/Exception.h> + +namespace plexclient +{ + +enum MediaType {UNDEF = 0, PHOTO, MOVIE, MUSIC, SHOW, SEASON}; + +class XmlObject +{ +public: + XmlObject(); + ~XmlObject(); + +protected: + std::string GetNodeValue(Poco::XML::Node* pNode); + int GetNodeValueAsInt(Poco::XML::Node* pNode); + long GetNodeValueAsLong(Poco::XML::Node* pNode); + bool GetNodeValueAsBool(Poco::XML::Node* pNode); + Poco::Timestamp GetNodeValueAsTimeStamp(Poco::XML::Node* pNode); + MediaType GetNodeValueAsMediaType(Poco::XML::Node* pNode); + +private: + +}; + +} + +#endif // XMLOBJECT_H |