blob: a9b2ba736c442c022bdcf1f219aedd6f0250cc47 (
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
|
#ifndef DIRECTORY_H
#define DIRECTORY_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 <memory>
#include <libskindesignerapi/osdelements.h>
#include "XmlObject.h"
#include "MediaContainer.h"
#include "viewGridNavigator.h"
#include "PlexServer.h"
using Poco::XML::DOMParser;
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 MediaContainer;
class Directory: private XmlObject, public cGridElement
{
public:
Directory(Poco::XML::Node* pNode, PlexServer* Server, MediaContainer* parent);
public:
bool m_bAllowSync;
int m_iIndex; // Season, Episode number
int m_iYear;
int m_iLeafCount; // Total number of Episodes
int m_iViewedLeafCount; // Watched Episodes
int m_iChildCount; // Number of Seasons
double m_fRating;
std::string m_sSummary;
std::string m_sParentSummary;
std::string m_sTitle;
std::string m_sTitle1;
std::string m_sTitle2;
std::string m_sParentTitle;
std::string m_sComposite;
std::string m_sLanguage;
std::string m_sUuid;
std::string m_sArt;
std::string m_sThumb;
std::string m_sStudio;
Poco::Timestamp m_tUpdatedAt;
Poco::Timestamp m_tCreatedAt;
std::string m_sKey;
std::vector<std::string> m_vGenre;
std::vector<std::string> m_vRole;
MediaType m_eType;
PlexServer* m_pServer;
MediaContainer* m_pParent;
virtual std::string GetTitle();
std::string ArtUri();
std::string ThumbUri();
// gridElement
virtual void AddTokens(std::shared_ptr<skindesignerapi::cOsdElement> grid, bool clear = true, std::function<void(cGridElement*)> OnCached = NULL);
};
}
#endif // DIRECTORY_H
|