summaryrefslogtreecommitdiff
path: root/vdrmanager/src/de
diff options
context:
space:
mode:
Diffstat (limited to 'vdrmanager/src/de')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/ChannelClient.java1
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java40
2 files changed, 23 insertions, 18 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/ChannelClient.java b/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/ChannelClient.java
index 41ca798..741250f 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/ChannelClient.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/ChannelClient.java
@@ -33,7 +33,6 @@ public class ChannelClient extends SvdrpClient<Channel> implements
if (useCache == false) {
clearCache();
}
- setResultInfoEnabled(true);
addSvdrpListener(this);
}
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java b/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java
index 6849e90..46c8e9d 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java
@@ -36,9 +36,15 @@ public abstract class SvdrpClient<Result> {
/** listener */
private final List<SvdrpListener<Result>> listeners = new ArrayList<SvdrpListener<Result>>();
/** list of results */
- private final List<Result> results = new ArrayList<Result>();
+ //private final List<Result> results = new ArrayList<Result>();
/** should the listener be informed about each received result */
- private boolean resultInfoEnabled = false;
+ //private boolean resultInfoEnabled = false;
+ /**
+ * @return true if the client has result
+ */
+// public boolean hasResults(){
+// return results.isEmpty() == false;
+// }
private Timer watchDog = new Timer();
@@ -123,14 +129,14 @@ public abstract class SvdrpClient<Result> {
}
- /**
- * Gets the list of results
- *
- * @return results
- */
- public List<Result> getResults() {
- return results;
- }
+// /**
+// * Gets the list of results
+// *
+// * @return results
+// */
+// public List<Result> getResults() {
+// return results;
+// }
private Thread st;
@@ -295,7 +301,7 @@ public abstract class SvdrpClient<Result> {
abort = false;
// clear results
- results.clear();
+ //results.clear();
// connect
final boolean connected = connect();
@@ -349,10 +355,10 @@ public abstract class SvdrpClient<Result> {
break;
}
if (result != null) {
- results.add(result);
- if (resultInfoEnabled) {
+ //results.add(result);
+ //if (resultInfoEnabled) {
informListener(SvdrpEvent.RESULT_RECEIVED, result);
- }
+ //}
}
}
@@ -373,9 +379,9 @@ public abstract class SvdrpClient<Result> {
}
}
- public void setResultInfoEnabled(final boolean resultInfoEnabled) {
- this.resultInfoEnabled = resultInfoEnabled;
- }
+// public void setResultInfoEnabled(final boolean resultInfoEnabled) {
+// this.resultInfoEnabled = resultInfoEnabled;
+// }
protected void informListenerError(final SvdrpEvent event,
final Throwable result) {