From aba821e79cdcf657f84fd1be7c574e29f7835d12 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sat, 5 May 2007 23:57:05 +0000 Subject: - General cleanup of recordings. Made design more like other pages - Bugfix for #289, #291 - Adapted styles and helper classes. - recordings should be now strict XHTML. --- recordings.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'recordings.h') diff --git a/recordings.h b/recordings.h index 5bea835..1e4b57b 100644 --- a/recordings.h +++ b/recordings.h @@ -9,6 +9,10 @@ namespace vdrlive { + // Forward declations from epg_events.h + class EpgEvent; + typedef boost::shared_ptr EpgEventPtr; + class RecordingsManager; typedef boost::shared_ptr RecordingsManagerPtr; @@ -54,8 +58,10 @@ namespace vdrlive { virtual time_t StartTime() const = 0; virtual bool IsDir() const = 0; + virtual bool IsArchived() const = 0; virtual const std::string& Name() const { return m_name; } virtual const std::string Id() const = 0; + virtual const std::string ArchiveId() const = 0; virtual const cRecording* Recording() const { return 0; } virtual const cRecordingInfo* RecInfo() const { return 0; } @@ -78,7 +84,9 @@ namespace vdrlive { virtual time_t StartTime() const { return 0; } virtual bool IsDir() const { return true; } + virtual bool IsArchived() const { return false; } virtual const std::string Id() const { std::string e; return e; } + virtual const std::string ArchiveId() const { std::string e; return e; } private: int m_level; @@ -93,7 +101,9 @@ namespace vdrlive { virtual time_t StartTime() const; virtual bool IsDir() const { return false; } + virtual bool IsArchived() const ; virtual const std::string Id() const { return m_id; } + virtual const std::string ArchiveId() const; virtual const cRecording* Recording() const { return m_recording; } virtual const cRecordingInfo* RecInfo() const { return m_recording->Info(); } @@ -112,6 +122,8 @@ namespace vdrlive { int MaxLevel() const { return m_maxLevel; } + static EpgEventPtr CreateEpgEvent(const RecordingsItemPtr recItem); + private: int m_maxLevel; RecordingsItemPtr m_root; -- cgit v1.2.3