diff options
| author | chriszero <zerov83@gmail.com> | 2015-04-04 15:10:52 +0200 |
|---|---|---|
| committer | chriszero <zerov83@gmail.com> | 2015-04-04 15:10:52 +0200 |
| commit | 21ee9e67ff7029c099c9fd772d3dc3e23c955199 (patch) | |
| tree | 254ecef54be3682aea55ff747f3d2912e5732faf /Directory.cpp | |
| parent | b3a59b06a977129bd773ff46f4fd66e0057fb9cd (diff) | |
| download | vdr-plugin-plex-21ee9e67ff7029c099c9fd772d3dc3e23c955199.tar.gz vdr-plugin-plex-21ee9e67ff7029c099c9fd772d3dc3e23c955199.tar.bz2 | |
more skindesigner support
Diffstat (limited to 'Directory.cpp')
| -rw-r--r-- | Directory.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Directory.cpp b/Directory.cpp index 5102015..e62714f 100644 --- a/Directory.cpp +++ b/Directory.cpp @@ -5,8 +5,9 @@ namespace plexclient { -Directory::Directory(Poco::XML::Node* pNode, MediaContainer* parent) +Directory::Directory(Poco::XML::Node* pNode, PlexServer* Server, MediaContainer* parent) { + m_pServer = Server; if(Poco::icompare(pNode->nodeName(), "Directory") == 0) { Poco::XML::AutoPtr<Poco::XML::NamedNodeMap> pAttribs = pNode->attributes(); @@ -41,9 +42,9 @@ std::string Directory::GetTitle() } } -void Directory::AddTokens(std::shared_ptr<cViewGrid> grid) +void Directory::AddTokens(std::shared_ptr<cOsdElement> grid, bool clear, std::function<void(cGridElement*)> OnCached) { - grid->ClearTokens(); + if(clear) grid->ClearTokens(); grid->AddStringToken("title", m_sTitle); } |
