3 * Copyright (C) 2005-2013 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, see
18 * <http://www.gnu.org/licenses/>.
22 #include "IDirectory.h"
23 #include "MythSession.h"
24 #include "XBDateTime.h"
41 virtual ~CMythDirectory();
43 virtual bool GetDirectory(const CStdString& strPath, CFileItemList &items);
44 virtual bool Exists(const char* strPath);
45 virtual bool IsAllowed(const CStdString &strFile) const { return true; };
46 virtual DIR_CACHE_TYPE GetCacheType(const CStdString& strPath) const;
48 static bool SupportsWriteFileOperations(const CStdString& strPath);
49 static bool IsLiveTV(const CStdString& strPath);
53 bool GetGuide(const CStdString& base, CFileItemList &items);
54 bool GetGuideForChannel(const CStdString& base, CFileItemList &items, const int channelNumber);
55 bool GetRecordings(const CStdString& base, CFileItemList &items, enum FilterType type = ALL, const CStdString& filter = "");
56 bool GetTvShowFolders(const CStdString& base, CFileItemList &items);
57 bool GetChannels(const CStdString& base, CFileItemList &items);
59 CStdString GetValue(char* str) { return m_session->GetValue(str); }
60 CDateTime GetValue(cmyth_timestamp_t t) { return m_session->GetValue(t); }
61 bool IsVisible(const cmyth_proginfo_t program);
62 bool IsMovie(const cmyth_proginfo_t program);
63 bool IsTvShow(const cmyth_proginfo_t program);
65 XFILE::CMythSession* m_session;
67 cmyth_database_t m_database;
68 cmyth_recorder_t m_recorder;
69 cmyth_proginfo_t m_program;