kodi
SmartPlaylistDirectory.h
1 /*
2  * Copyright (C) 2005-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 "IFileDirectory.h"
12 
13 #include <string>
14 
15 class CSmartPlaylist;
16 
17 namespace XFILE
18 {
20  {
21  public:
23  ~CSmartPlaylistDirectory() override;
24  bool GetDirectory(const CURL& url, CFileItemList& items) override;
25  bool AllowAll() const override { return true; }
26  bool ContainsFiles(const CURL& url) override;
27  bool Remove(const CURL& url) override;
28 
29  static bool GetDirectory(const CSmartPlaylist &playlist, CFileItemList& items, const std::string &strBaseDir = "", bool filter = false);
30 
31  static std::string GetPlaylistByName(const std::string& name, const std::string& playlistType);
32  };
33 }
Definition: SmartPlaylistDirectory.h:19
Definition: Scraper.h:41
Represents a list of files.
Definition: FileItem.h:702
Definition: URL.h:21
bool GetDirectory(const CURL &url, CFileItemList &items) override
Get the items of the directory strPath.
Definition: SmartPlaylistDirectory.cpp:43
Definition: IFileDirectory.h:15
bool AllowAll() const override
Whether to allow all files/folders to be listed.
Definition: SmartPlaylistDirectory.h:25
Definition: SmartPlayList.h:90
bool Remove(const CURL &url) override
Removes the directory.
Definition: SmartPlaylistDirectory.cpp:353