summaryrefslogtreecommitdiff
path: root/MediaContainer.h
blob: 61e102d5cd079d03e5732c031adaf762127c32c1 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#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"
#include "device.h"
#include "playlist.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 cVideo;

    class Directory;

    class Device;

    class Playlist;

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

        MediaContainer(std::istream *response);

    protected:


    public:
        std::vector<Directory> m_vDirectories;
        std::vector<cVideo> m_vVideos;
        std::vector<Device> m_vDevices;
        std::vector<Playlist> m_vPlaylists;

        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();

#ifdef SKINDESIGNER

        void PreCache();

#endif
    };

}

#endif // ALLSECTIONS_H