xbmc
UPnPDirectory.h
1 /*
2  * UPnP Support for XBMC
3  * Copyright (c) 2006 c0diq (Sylvain Rebaud)
4  * Portions Copyright (c) by the authors of libPlatinum
5  * http://www.plutinosoft.com/blog/category/platinum/
6  *
7  * Copyright (C) 2010-2018 Team Kodi
8  * This file is part of Kodi - https://kodi.tv
9  *
10  * SPDX-License-Identifier: GPL-2.0-or-later
11  * See LICENSES/README.md for more information.
12  */
13 
14 #pragma once
15 
16 #include "IDirectory.h"
17 
18 class CFileItem;
19 class CURL;
20 
21 namespace XFILE
22 {
23 class CUPnPDirectory : public IDirectory
24 {
25 public:
26  CUPnPDirectory(void) = default;
27  ~CUPnPDirectory(void) override = default;
28 
29  // IDirectory methods
30  bool GetDirectory(const CURL& url, CFileItemList &items) override;
31  bool AllowAll() const override { return true; }
32 
33  // class methods
34  static const char* GetFriendlyName(const CURL& url);
35  static bool GetResource(const CURL &path, CFileItem& item);
36 };
37 }
Interface to the directory on a file system.
Definition: IDirectory.h:50
Definition: Scraper.h:41
bool AllowAll() const override
Whether to allow all files/folders to be listed.
Definition: UPnPDirectory.h:31
Represents a list of files.
Definition: FileItem.h:713
Definition: URL.h:20
Definition: UPnPDirectory.h:23
bool GetDirectory(const CURL &url, CFileItemList &items) override
Get the items of the directory strPath.
Definition: UPnPDirectory.cpp:182
Represents a file on a share.
Definition: FileItem.h:102