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
23 #include "IDirectory.h"
24 #include "MythSession.h"
25 #include "XBDateTime.h"
42 virtual ~CMythDirectory();
44 virtual bool GetDirectory(const CStdString& strPath, CFileItemList &items);
45 virtual bool Exists(const char* strPath);
46 virtual bool IsAllowed(const CStdString &strFile) const { return true; };
47 virtual DIR_CACHE_TYPE GetCacheType(const CStdString& strPath) const;
49 static bool SupportsFileOperations(const CStdString& strPath);
50 static bool IsLiveTV(const CStdString& strPath);
54 bool GetGuide(const CStdString& base, CFileItemList &items);
55 bool GetGuideForChannel(const CStdString& base, CFileItemList &items, const int channelNumber);
56 bool GetRecordings(const CStdString& base, CFileItemList &items, enum FilterType type = ALL, const CStdString& filter = "");
57 bool GetTvShowFolders(const CStdString& base, CFileItemList &items);
58 bool GetChannels(const CStdString& base, CFileItemList &items);
60 CStdString GetValue(char* str) { return m_session->GetValue(str); }
61 CDateTime GetValue(cmyth_timestamp_t t) { return m_session->GetValue(t); }
62 bool IsVisible(const cmyth_proginfo_t program);
63 bool IsMovie(const cmyth_proginfo_t program);
64 bool IsTvShow(const cmyth_proginfo_t program);
66 XFILE::CMythSession* m_session;
68 cmyth_database_t m_database;
69 cmyth_recorder_t m_recorder;
70 cmyth_proginfo_t m_program;