Merge pull request #4857 from t-nelson/Gotham_13.2_backports
[vuplus_xbmc] / xbmc / filesystem / 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-2013 Team XBMC
8  *      http://xbmc.org
9  *
10  *  This Program is free software; you can redistribute it and/or modify
11  *  it under the terms of the GNU General Public License as published by
12  *  the Free Software Foundation; either version 2, or (at your option)
13  *  any later version.
14  *
15  *  This Program is distributed in the hope that it will be useful,
16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  *  GNU General Public License for more details.
19  *
20  *  You should have received a copy of the GNU General Public License
21  *  along with XBMC; see the file COPYING.  If not, see
22  *  <http://www.gnu.org/licenses/>.
23  *
24  */
25 #pragma once
26
27 #include "IDirectory.h"
28
29 class CFileItem;
30 class CURL;
31
32 namespace XFILE
33 {
34 class CUPnPDirectory :  public IDirectory
35 {
36 public:
37     CUPnPDirectory(void) {}
38     virtual ~CUPnPDirectory(void) {}
39
40     // IDirectory methods
41     virtual bool GetDirectory(const CStdString& strPath, CFileItemList &items);
42     virtual bool IsAllowed(const CStdString& strFile) const { return true; };
43
44     // class methods
45     static const char* GetFriendlyName(const char* url);
46     static bool        GetResource(const CURL &path, CFileItem& item);
47 };
48 }