xbmc
MusicFileDirectory.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 #include "music/tags/MusicInfoTag.h"
13 
14 namespace XFILE
15 {
17  {
18  public:
19  CMusicFileDirectory(void);
20  ~CMusicFileDirectory(void) override;
21  bool GetDirectory(const CURL& url, CFileItemList &items) override;
22  bool Exists(const CURL& url) override;
23  bool ContainsFiles(const CURL& url) override;
24  bool AllowAll() const override { return true; }
25  protected:
26  virtual bool Load(const std::string& strFileName,
28  EmbeddedArt* art = nullptr) { return false; }
29  virtual int GetTrackCount(const std::string& strPath) = 0;
30  std::string m_strExt;
32  };
33 }
Definition: Scraper.h:41
Definition: EmbeddedArt.h:38
bool AllowAll() const override
Whether to allow all files/folders to be listed.
Definition: MusicFileDirectory.h:24
Represents a list of files.
Definition: FileItem.h:713
Definition: URL.h:20
Definition: MusicFileDirectory.h:16
bool GetDirectory(const CURL &url, CFileItemList &items) override
Get the items of the directory strPath.
Definition: MusicFileDirectory.cpp:24
bool Exists(const CURL &url) override
Check for directory existence.
Definition: MusicFileDirectory.cpp:67
Definition: IFileDirectory.h:15
Definition: MusicInfoTag.h:27