From 7b64bf5062f3eb6ddff5d7606e44367bd5077e4c Mon Sep 17 00:00:00 2001 From: chriszero Date: Tue, 15 Dec 2015 22:15:35 +0100 Subject: Added SSL support, started support for remote resources (servers). Browsing remote servers is working. plex.tv login is mandatory. --- device.h | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 device.h (limited to 'device.h') 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 +#include +#include +#include +#include +#include +#include +#include +#include + +#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 m_vConnections; + + MediaContainer* m_pParent; +}; + +} + +#endif // DEVICE_H -- cgit v1.2.3