diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-18 17:14:25 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-18 17:14:25 +0000 |
commit | 5c45eb690e1a54eb6d90d4cef573104f1c034415 (patch) | |
tree | 4bab86c55e1c60cfd1b1936b8c20d15a8ab41837 /tasks.h | |
parent | 7de66ca6d2bcfc308781eb1c8d22a76df33f34a5 (diff) | |
download | vdr-plugin-live-5c45eb690e1a54eb6d90d4cef573104f1c034415.tar.gz vdr-plugin-live-5c45eb690e1a54eb6d90d4cef573104f1c034415.tar.bz2 |
- improved error handling and task creation (on stack is possible, now)
- fully implemented PlayRecordingTask
Diffstat (limited to 'tasks.h')
-rw-r--r-- | tasks.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -18,8 +18,7 @@ class TaskManager: public cMutex typedef std::deque< Task* > TaskQueue; public: - bool Execute( Task* task, std::string& error ); - bool Execute( Task* task ); + bool Execute( Task& task ); // may only be called from Plugin::MainThreadHook void DoScheduledTasks(); @@ -58,7 +57,7 @@ private: class SwitchChannelTask: public Task { public: - SwitchChannelTask( tChannelID channel ): m_channel( channel ) {} + explicit SwitchChannelTask( tChannelID channel ): m_channel( channel ) {} private: tChannelID m_channel; @@ -69,12 +68,12 @@ private: class ReplayRecordingTask: public Task { public: - ReplayRecordingTask( std::string const& recording ): m_recording( recording ) {} + explicit ReplayRecordingTask( std::string const& recording ): m_recording( recording ) {} private: std::string m_recording; - virtual void Action() {} + virtual void Action(); }; |