summaryrefslogtreecommitdiff
path: root/recordings.h
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-05-05 23:57:05 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-05-05 23:57:05 +0000
commitaba821e79cdcf657f84fd1be7c574e29f7835d12 (patch)
tree073688a2c98896e8b2a3499d4aa51306848b68b3 /recordings.h
parent36a0bb39d832bef433ee81c4f156411df521b358 (diff)
downloadvdr-plugin-live-aba821e79cdcf657f84fd1be7c574e29f7835d12.tar.gz
vdr-plugin-live-aba821e79cdcf657f84fd1be7c574e29f7835d12.tar.bz2
- 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.
Diffstat (limited to 'recordings.h')
-rw-r--r--recordings.h12
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;