From 1cb637c457d0a2948d82b3715d8a56552aae6457 Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Tue, 16 Jan 2007 18:33:59 +0000 Subject: - adopted to new task manager interface --- pages/play_recording.ecpp | 4 +--- pages/switch_channel.ecpp | 11 +---------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/pages/play_recording.ecpp b/pages/play_recording.ecpp index 8356697..ccb76e1 100644 --- a/pages/play_recording.ecpp +++ b/pages/play_recording.ecpp @@ -14,13 +14,11 @@ using namespace vdrlive; <%cpp> reply.setContentType( "application/xml" ); - - bool result = LiveTaskManager().ReplayRecording( recordingid ); <$ recordingid $> -<$ result ? "1" : "0" $> +<$ LiveTaskManager().Execute( new ReplayRecordingTask( recordingid ) ) $> diff --git a/pages/switch_channel.ecpp b/pages/switch_channel.ecpp index 501715e..a777fc1 100644 --- a/pages/switch_channel.ecpp +++ b/pages/switch_channel.ecpp @@ -11,21 +11,12 @@ using namespace vdrlive; tChannelID channelid; <%cpp> - bool result = false; - reply.setContentType( "application/xml" ); - - ReadLock channelsLock( Channels ); - if ( channelsLock ) { - cChannel* channel = Channels.GetByChannelID( channelid ); - if ( channel != 0 ) - result = LiveTaskManager().SwitchChannel( channel->Number() ); - } <$ *channelid.ToString() $> -<$ result ? "1" : "0" $> +<$ LiveTaskManager().Execute( new SwitchChannelTask( channelid ) ) $> -- cgit v1.2.3