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 "IDirectory.h"
12 #include "MusicDatabaseDirectory/DirectoryNode.h"
13 #include "MusicDatabaseDirectory/QueryParams.h"
17 class CMusicDatabaseDirectory
: public IDirectory
20 CMusicDatabaseDirectory(void);
21 ~CMusicDatabaseDirectory(void) override
;
22 bool GetDirectory(const CURL
& url
, CFileItemList
&items
) override
;
23 bool AllowAll() const override
{ return true; }
24 bool Exists(const CURL
& url
) override
;
25 static MUSICDATABASEDIRECTORY::NODE_TYPE
GetDirectoryChildType(const std::string
& strPath
);
26 static MUSICDATABASEDIRECTORY::NODE_TYPE
GetDirectoryType(const std::string
& strPath
);
27 static MUSICDATABASEDIRECTORY::NODE_TYPE
GetDirectoryParentType(const std::string
& strPath
);
28 static bool GetDirectoryNodeInfo(const std::string
& strPath
, MUSICDATABASEDIRECTORY::NODE_TYPE
& type
, MUSICDATABASEDIRECTORY::NODE_TYPE
& childtype
, MUSICDATABASEDIRECTORY::CQueryParams
& params
);
29 bool IsArtistDir(const std::string
& strDirectory
);
30 void ClearDirectoryCache(const std::string
& strDirectory
);
31 static bool IsAllItem(const std::string
& strDirectory
);
32 static bool GetLabel(const std::string
& strDirectory
, std::string
& strLabel
);
33 bool ContainsSongs(const std::string
&path
);
34 static bool CanCache(const std::string
& strPath
);
35 static std::string
GetIcon(const std::string
& strDirectory
);