summaryrefslogtreecommitdiff
path: root/MediaContainer.h
blob: 947a6473d27edc31f0915ecd0dcb663e48042ea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef ALLSECTIONS_H
#define ALLSECTIONS_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/SAX/InputSource.h>
#include <Poco/Exception.h>
#include <Poco/String.h>

#include <vector>
#include <iostream>

#include "XmlObject.h"
#include "Directory.h"
#include "PVideo.h"
#include "PlexServer.h"
#include "Config.h"

using Poco::XML::DOMParser;
using Poco::XML::InputSource;
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;
class Directory;

class MediaContainer: XmlObject
{
public:
	MediaContainer(std::istream *response, PlexServer* Server);

protected:


public:
	std::vector<Directory> m_vDirectories;
	std::vector<Video> m_vVideos;

	bool m_bAllowSync;
	std::string m_sArt;
	std::string m_sThumb;
	std::string m_sBanner;
	std::string m_sTitle;
	std::string m_sTitle1;
	std::string m_sTitle2;
	std::string m_sGrandparentTitle;
	MediaType m_eViewGroup;
	int m_iLibrarySectionID;
	std::string m_sLibrarySectionTitle;
	std::string m_sLibrarySectionUUID;
	std::string m_sMediaTagPrefix;
	int m_iSize;
	std::string m_sSummary;
	int m_iParentIndex;
	std::string m_sParentTitle;
	int m_iParentYear;
	
	PlexServer* m_pServer;
	
	std::string ThumbUri();
	std::string ArtUri();
	void PreCache();
};

}

#endif // ALLSECTIONS_H