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.
11 #include "IDirectory.h"
12 #include "utils/XBMCTinyXML.h"
16 class CLibraryDirectory
: public IDirectory
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; }
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
);