From 8f9342e733730ac36f296140367e7b6b21d941c6 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sat, 6 Jan 2007 02:24:11 +0000 Subject: added recordings_items.ecpp; Updated html structure for recordings --- recordings.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'recordings.h') diff --git a/recordings.h b/recordings.h index d350bbd..748b832 100644 --- a/recordings.h +++ b/recordings.h @@ -13,6 +13,8 @@ namespace vdrlive { class RecordingsTree { + friend RecordingsTree& LiveRecordingsTree(); + public: class RecordingsItem; @@ -26,6 +28,7 @@ namespace vdrlive { public: virtual ~RecordingsItem(); + virtual time_t StartTime() const = 0; virtual bool IsDir() const = 0; virtual const char* Name() const = 0; @@ -41,9 +44,10 @@ namespace vdrlive { { public: RecordingsItemDir(); - virtual ~RecordingsItemDir(); RecordingsItemDir(const string& name, int level); + virtual ~RecordingsItemDir(); + virtual time_t StartTime() const { return 0; } virtual bool IsDir() const { return true; } virtual const char* Name() const { return m_name.c_str(); } @@ -57,6 +61,7 @@ namespace vdrlive { { public: RecordingsItemRec(cRecording* recording); + virtual ~RecordingsItemRec(); virtual time_t StartTime() const; @@ -68,6 +73,7 @@ namespace vdrlive { }; RecordingsTree(); + virtual ~RecordingsTree(); Map::iterator begin() { return m_root->m_entries.begin(); } @@ -79,8 +85,11 @@ namespace vdrlive { int m_maxLevel; RecordingsItemPtr m_root; cThreadLock m_recordingsLock; + + static RecordingsTree* globalInstance; }; + RecordingsTree& LiveRecordingsTree(); } // namespace vdrlive #endif // VDR_LIVE_RECORDINGS_H -- cgit v1.2.3