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.
11 #include "IFileDirectory.h"
15 namespace KODI::PLAYLIST
22 class CSmartPlaylistDirectory
: public IFileDirectory
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
,
34 const std::string
& strBaseDir
= "",
37 static std::string
GetPlaylistByName(const std::string
& name
, const std::string
& playlistType
);