3 * Copyright (C) 2005-2008 Team XBMC
6 * This Program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
11 * This Program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with XBMC; see the file COPYING. If not, write to
18 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
19 * http://www.gnu.org/copyleft/gpl.html
24 #include "utils/StdString.h"
30 namespace VIDEODATABASEDIRECTORY
34 typedef enum _NODE_TYPE
37 NODE_TYPE_MOVIES_OVERVIEW,
38 NODE_TYPE_TVSHOWS_OVERVIEW,
43 NODE_TYPE_TITLE_MOVIES,
46 NODE_TYPE_TITLE_TVSHOWS,
49 NODE_TYPE_RECENTLY_ADDED_MOVIES,
50 NODE_TYPE_RECENTLY_ADDED_EPISODES,
52 NODE_TYPE_MUSICVIDEOS_OVERVIEW,
53 NODE_TYPE_RECENTLY_ADDED_MUSICVIDEOS,
54 NODE_TYPE_TITLE_MUSICVIDEOS,
55 NODE_TYPE_MUSICVIDEOS_ALBUM,
63 static CDirectoryNode* ParseURL(const CStdString& strPath);
64 static void GetDatabaseInfo(const CStdString& strPath, CQueryParams& params);
65 virtual ~CDirectoryNode();
69 bool GetChilds(CFileItemList& items);
70 virtual NODE_TYPE GetChildType();
72 CDirectoryNode* GetParent();
76 CDirectoryNode(NODE_TYPE Type, const CStdString& strName, CDirectoryNode* pParent);
77 static CDirectoryNode* CreateNode(NODE_TYPE Type, const CStdString& strName, CDirectoryNode* pParent);
79 void CollectQueryParams(CQueryParams& params);
81 const CStdString& GetName();
84 virtual bool GetContent(CFileItemList& items);
86 CStdString BuildPath();
89 void AddQueuingFolder(CFileItemList& items);
94 CDirectoryNode* m_pParent;