diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-01-06 17:17:33 +0000 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-01-06 17:17:33 +0000 |
commit | 8a08fe2731a08e595530376a1a8856d851fc8f27 (patch) | |
tree | 06625d02124669c997a7535d37e4472a5995df9b /recordings.cpp | |
parent | 9d30ca58281c0aaedcb5aa6c3a825bab892a3a12 (diff) | |
download | vdr-plugin-live-8a08fe2731a08e595530376a1a8856d851fc8f27.tar.gz vdr-plugin-live-8a08fe2731a08e595530376a1a8856d851fc8f27.tar.bz2 |
Collapsable treeview of recordings (almost)
Diffstat (limited to 'recordings.cpp')
-rw-r--r-- | recordings.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/recordings.cpp b/recordings.cpp index 3eaef45..d4c7cb6 100644 --- a/recordings.cpp +++ b/recordings.cpp @@ -4,18 +4,12 @@ namespace vdrlive { - RecordingsTree::RecordingsTree* RecordingsTree::globalInstance = 0; - RecordingsTree::RecordingsTree() : m_maxLevel(0), m_root(new RecordingsItemDir()), m_recordingsLock(&Recordings) { - if (globalInstance != 0) { - // TODO: report ERROR and fail. - } - for ( cRecording* recording = Recordings.First(); recording != 0; recording = Recordings.Next( recording ) ) { if (m_maxLevel < recording->HierarchyLevels()) { m_maxLevel = recording->HierarchyLevels(); @@ -46,17 +40,10 @@ namespace vdrlive { } } while (pos != string::npos); } - - globalInstance = this; } RecordingsTree::~RecordingsTree() { - if (globalInstance != this) - { - // TODO: report ERROR and fail - } - globalInstance = 0; } RecordingsTree::Map::iterator RecordingsTree::begin(const vector< string >& path) @@ -128,13 +115,4 @@ namespace vdrlive { return m_recording->start; } - RecordingsTree& LiveRecordingsTree() - { - if (RecordingsTree::globalInstance == 0) - { - // TODO: report ERROR and fail! - } - return *RecordingsTree::globalInstance; - } - } // namespace vdrlive |