summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgit-vdr <herrlado@gmail.com>2011-10-04 01:30:00 +0200
committergit-vdr <herrlado@gmail.com>2011-10-04 01:30:00 +0200
commit9ce208a5c9f702dc7d84013ba0f6a68d53aebd28 (patch)
treeda7f22410bbe0d5733aec8be5115b715b7424556
parent7bd3d50edb91743db9c4ce1c7493954f58527537 (diff)
downloadvdr-manager-9ce208a5c9f702dc7d84013ba0f6a68d53aebd28.tar.gz
vdr-manager-9ce208a5c9f702dc7d84013ba0f6a68d53aebd28.tar.bz2
initial version of a recordings client
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/RecordingClient.java29
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");
+ }
+
+}