diff options
Diffstat (limited to 'recordings.h')
-rw-r--r-- | recordings.h | 12 |
1 files changed, 12 insertions, 0 deletions
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<EpgEvent> EpgEventPtr; + class RecordingsManager; typedef boost::shared_ptr<RecordingsManager> 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; |