summaryrefslogtreecommitdiff
path: root/tasks.h
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2008-01-25 01:09:49 +0100
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2008-01-25 01:09:49 +0100
commit5c5da204386e7a63ed4fac1d458dd10a120470e0 (patch)
treedeb3e5f385ddeee6c1746714859fb1de09177299 /tasks.h
parente2496312144175ba6fc030eb9f8f9781590f5e6b (diff)
downloadvdr-plugin-live-5c5da204386e7a63ed4fac1d458dd10a120470e0.tar.gz
vdr-plugin-live-5c5da204386e7a63ed4fac1d458dd10a120470e0.tar.bz2
Fixed bug that the recordings items were not deleted when the tree was
rebuild. This was because of the non weak references to the parent items. Deleting of recordings can be triggered now. It still needs some tweaking on the visual feedback. And possibly a 'undelete' option for the last deleted recording.
Diffstat (limited to 'tasks.h')
-rw-r--r--tasks.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tasks.h b/tasks.h
index 2a269fd..787be96 100644
--- a/tasks.h
+++ b/tasks.h
@@ -139,6 +139,21 @@ public:
virtual void Action();
};
+class RemoveRecordingTask: public RecordingTask
+{
+public:
+ explicit RemoveRecordingTask( std::string const& recording )
+ : RecordingTask(recording)
+ {}
+
+ virtual void Action();
+
+ std::string const & RecName() const { return m_recName; }
+
+private:
+ std::string m_recName;
+};
+
TaskManager& LiveTaskManager();