[PVR][Estuary] Timer settings dialog: Show client name in timer type selection dialog...
[xbmc.git] / xbmc / filesystem / LibraryDirectory.h
blobaf76dd497fd9447dc2d2949e8dd57dce32b28418
1 /*
2 * Copyright (C) 2011-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "IDirectory.h"
12 #include "utils/XBMCTinyXML.h"
14 namespace XFILE
16 class CLibraryDirectory : public IDirectory
18 public:
19 CLibraryDirectory();
20 ~CLibraryDirectory() override;
21 bool GetDirectory(const CURL& url, CFileItemList &items) override;
22 bool Exists(const CURL& url) override;
23 bool AllowAll() const override { return true; }
24 private:
25 /*! \brief parse the given path and return the node corresponding to this path
26 \param path the library:// path to parse
27 \return path to the XML file or directory corresponding to this path
29 std::string GetNode(const CURL& path);
31 /*! \brief load the XML file and return a pointer to the <node> root element.
32 Checks visible attribute and only returns non-NULL for valid nodes that should be visible.
33 \param xmlFile the XML file to load and parse
34 \return the TiXmlElement pointer to the node, if it should be visible.
36 TiXmlElement *LoadXML(const std::string &xmlFile);
38 CXBMCTinyXML m_doc;