diff options
author | Christian <zerov83@googlemail.com> | 2015-12-20 18:55:27 +0100 |
---|---|---|
committer | Christian <zerov83@googlemail.com> | 2015-12-20 18:55:27 +0100 |
commit | 2a112bcf6f15603d46ab904eabb13bd8ee062a91 (patch) | |
tree | b948261300ea449823485305b2d980504190b11d /device.h | |
parent | 135ed5d0ce1613f70f4b2ddcb9e8bca721ffca9e (diff) | |
parent | 4775c62bf44ba6d757722611313f53d6dd2a0b56 (diff) | |
download | vdr-plugin-plex-2a112bcf6f15603d46ab904eabb13bd8ee062a91.tar.gz vdr-plugin-plex-2a112bcf6f15603d46ab904eabb13bd8ee062a91.tar.bz2 |
Merge pull request #2 from chriszero/remoteserverremoteserver
merge remoteserver branch
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/device.h b/device.h new file mode 100644 index 0000000..5b28047 --- /dev/null +++ b/device.h @@ -0,0 +1,59 @@ +#ifndef DEVICE_H +#define DEVICE_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/AutoPtr.h> +#include <Poco/Exception.h> +#include <Poco/Timestamp.h> +#include <Poco/String.h> + +#include "XmlObject.h" +#include "MediaContainer.h" + +namespace plexclient +{ +class Device; + +class Connection: private XmlObject +{ +public: + Connection(Poco::XML::Node* pNode, Device* parent); + + std::string m_sProtocol; + std::string m_sAddress; + int m_iPort; + std::string m_sUri; + bool m_bLocal; + + Device* m_pParent; + +}; + +class Device: private XmlObject +{ +public: + Device(Poco::XML::Node* pNode, MediaContainer* parent); + + std::string m_sName; + std::string m_sProduct; + std::string m_sProvides; + std::string m_sClientIdentifier; + bool m_bOwned; + std::string m_sAccessToken; + bool m_bHttpsRequired; + bool m_bPublicAddressMatches; + bool m_bPresence; + std::string m_sSourceTitle; + + std::vector<Connection> m_vConnections; + + MediaContainer* m_pParent; +}; + +} + +#endif // DEVICE_H |