xbmc
LibraryDirectory.h
1 /*
2  * Copyright (C) 2011-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "IDirectory.h"
12 #include "utils/XBMCTinyXML.h"
13 
14 namespace XFILE
15 {
17  {
18  public:
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:
29  std::string GetNode(const CURL& path);
30 
36  TiXmlElement *LoadXML(const std::string &xmlFile);
37 
38  CXBMCTinyXML m_doc;
39  };
40 }
Interface to the directory on a file system.
Definition: IDirectory.h:51
bool Exists(const CURL &url) override
Check for directory existence.
Definition: LibraryDirectory.cpp:157
Definition: Scraper.h:41
Definition: XBMCTinyXML.h:33
Represents a list of files.
Definition: FileItem.h:721
Definition: URL.h:21
Definition: LibraryDirectory.h:16
bool AllowAll() const override
Whether to allow all files/folders to be listed.
Definition: LibraryDirectory.h:23
bool GetDirectory(const CURL &url, CFileItemList &items) override
Get the items of the directory strPath.
Definition: LibraryDirectory.cpp:32