summaryrefslogtreecommitdiff
path: root/recordings.h
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-01-06 02:24:11 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-01-06 02:24:11 +0000
commit8f9342e733730ac36f296140367e7b6b21d941c6 (patch)
tree5050953f2d5e3f0a6b97fa1918a1b71061f3cbec /recordings.h
parenta92938f1dfcaf9b3be3258e46ab984c863153d58 (diff)
downloadvdr-plugin-live-8f9342e733730ac36f296140367e7b6b21d941c6.tar.gz
vdr-plugin-live-8f9342e733730ac36f296140367e7b6b21d941c6.tar.bz2
added recordings_items.ecpp; Updated html structure for recordings
Diffstat (limited to 'recordings.h')
-rw-r--r--recordings.h11
1 files changed, 10 insertions, 1 deletions
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