diff options
author | lado <herrlado@gmail.com> | 2011-11-02 01:48:17 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-11-02 01:48:17 +0100 |
commit | fbd424c37a5124b13d612623c2fa450c8e1b0bdc (patch) | |
tree | 57ddb30ab6e6520f07c394d5b442cf6c3b52b139 /vdrmanager/src | |
parent | 84def0e7e2aebc4d2a5c870b867bf53193ba5084 (diff) | |
download | vdr-manager-fbd424c37a5124b13d612623c2fa450c8e1b0bdc.tar.gz vdr-manager-fbd424c37a5124b13d612623c2fa450c8e1b0bdc.tar.bz2 |
no results in the client itself
Diffstat (limited to 'vdrmanager/src')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/ChannelClient.java | 1 | ||||
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java | 40 |
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) { |