xbmc
SourcesDirectory.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 "IDirectory.h"
12 
13 #include <vector>
14 
15 class CMediaSource;
16 typedef std::vector<CMediaSource> VECSOURCES;
17 
18 namespace XFILE
19 {
21  {
22  public:
23  CSourcesDirectory(void);
24  ~CSourcesDirectory(void) override;
25  bool GetDirectory(const CURL& url, CFileItemList &items) override;
26  bool GetDirectory(const VECSOURCES &sources, CFileItemList &items);
27  bool Exists(const CURL& url) override;
28  bool AllowAll() const override { return true; }
29  };
30 }
bool Exists(const CURL &url) override
Check for directory existence.
Definition: SourcesDirectory.cpp:103
Interface to the directory on a file system.
Definition: IDirectory.h:50
Definition: Scraper.h:41
Represents a list of files.
Definition: FileItem.h:713
Definition: URL.h:20
Represents a share.
Definition: MediaSource.h:22
std::vector< CMediaSource > VECSOURCES
A vector to hold CMediaSource objects.
Definition: MediaSource.h:98
bool GetDirectory(const CURL &url, CFileItemList &items) override
Get the items of the directory strPath.
Definition: SourcesDirectory.cpp:29
bool AllowAll() const override
Whether to allow all files/folders to be listed.
Definition: SourcesDirectory.h:28
Definition: SourcesDirectory.h:20