diff options
author | git-vdr <herrlado@gmail.com> | 2011-10-04 01:30:00 +0200 |
---|---|---|
committer | git-vdr <herrlado@gmail.com> | 2011-10-04 01:30:00 +0200 |
commit | 9ce208a5c9f702dc7d84013ba0f6a68d53aebd28 (patch) | |
tree | da7f22410bbe0d5733aec8be5115b715b7424556 /vdrmanager | |
parent | 7bd3d50edb91743db9c4ce1c7493954f58527537 (diff) | |
download | vdr-manager-9ce208a5c9f702dc7d84013ba0f6a68d53aebd28.tar.gz vdr-manager-9ce208a5c9f702dc7d84013ba0f6a68d53aebd28.tar.bz2 |
initial version of a recordings client
Diffstat (limited to 'vdrmanager')
-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"); + } + +} |