Merge pull request #25808 from CastagnaIT/fix_url_parse
[xbmc.git] / xbmc / filesystem / SmartPlaylistDirectory.h
blob7cca5c67d7ec1529d49a822d4e06ee9d3af4f3a5
1 /*
2 * Copyright (C) 2005-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 "IFileDirectory.h"
13 #include <string>
15 namespace KODI::PLAYLIST
17 class CSmartPlaylist;
20 namespace XFILE
22 class CSmartPlaylistDirectory : public IFileDirectory
24 public:
25 CSmartPlaylistDirectory();
26 ~CSmartPlaylistDirectory() override;
27 bool GetDirectory(const CURL& url, CFileItemList& items) override;
28 bool AllowAll() const override { return true; }
29 bool ContainsFiles(const CURL& url) override;
30 bool Remove(const CURL& url) override;
32 static bool GetDirectory(const KODI::PLAYLIST::CSmartPlaylist& playlist,
33 CFileItemList& items,
34 const std::string& strBaseDir = "",
35 bool filter = false);
37 static std::string GetPlaylistByName(const std::string& name, const std::string& playlistType);