diff options
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/RecordingClient.java | 29 |
1 files changed, 29 insertions, 0 deletions
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<Recording> implements SvdrpListener<Recording> { + + 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"); + } + +} |