[windows] Fix MAC Address Discovery
[xbmc.git] / xbmc / filesystem / MusicDatabaseDirectory.h
blobdc52464f0af761e9afd818d383e51e5df8954240
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 "IDirectory.h"
12 #include "MusicDatabaseDirectory/DirectoryNode.h"
13 #include "MusicDatabaseDirectory/QueryParams.h"
15 namespace XFILE
17 class CMusicDatabaseDirectory : public IDirectory
19 public:
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);