From 9ce208a5c9f702dc7d84013ba0f6a68d53aebd28 Mon Sep 17 00:00:00 2001 From: git-vdr Date: Tue, 4 Oct 2011 01:30:00 +0200 Subject: initial version of a recordings client --- .../vdrmanager/utils/svdrp/RecordingClient.java | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/RecordingClient.java diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/RecordingClient.java b/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/RecordingClient.java new file mode 100644 index 0000000..40de70a --- /dev/null +++ b/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/RecordingClient.java @@ -0,0 +1,29 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Recording; + +public class RecordingClient extends SvdrpClient implements SvdrpListener { + + public void svdrpEvent(SvdrpEvent event, Recording result) { +// if(event == SvdrpEvent.RESULT_RECEIVED){ +// results.add(result); +// } + } + + @Override + protected Recording parseAnswer(String line) { + return new Recording(line); + } + + @Override + public int getProgressTextId() { + return R.string.progress_recordings_loading; + } + + @Override + public void run() throws SvdrpException { + runCommand("recordings"); + } + +} -- cgit v1.2.3