From d1843c8b6310533a32c10c08e3aeb511a5f8be08 Mon Sep 17 00:00:00 2001 From: bju Date: Sun, 20 Mar 2011 00:45:32 +0100 Subject: Removed unneded settings --- androvdr/res/values/preferences.xml | 4 +--- androvdr/res/values/preferences_keys.xml | 2 +- androvdr/res/xml/preferences.xml | 5 +---- .../src/de/bjusystems/androvdr/data/Preferences.java | 11 ----------- .../bjusystems/androvdr/utils/svdrp/SvdrpClient.java | 6 +----- .../androvdr/utils/wakeup/AsyncWakeupTask.java | 18 +++++------------- 6 files changed, 9 insertions(+), 37 deletions(-) (limited to 'androvdr') diff --git a/androvdr/res/values/preferences.xml b/androvdr/res/values/preferences.xml index a354345..36a5e1a 100644 --- a/androvdr/res/values/preferences.xml +++ b/androvdr/res/values/preferences.xml @@ -14,7 +14,7 @@ Use SSL for connections - Limit channels + Channel settings Limit channels Use only given channels Channels @@ -24,8 +24,6 @@ Remote VDR host wakeup Can remote wakeup VDR Enables to remote wakeup the VDR host - Use HTTP request for wakeup - Wakeup by HTTP request and not using SvdrpHelper URL for remote wakeup URL for a request doing the wakeup Wakeup user diff --git a/androvdr/res/values/preferences_keys.xml b/androvdr/res/values/preferences_keys.xml index d60b323..36fee64 100644 --- a/androvdr/res/values/preferences_keys.xml +++ b/androvdr/res/values/preferences_keys.xml @@ -13,7 +13,7 @@ last_channel wakeup_enabled - wakeup_http + wakeup_url wakeup_user wakeup_password diff --git a/androvdr/res/xml/preferences.xml b/androvdr/res/xml/preferences.xml index 6d69051..8a84449 100644 --- a/androvdr/res/xml/preferences.xml +++ b/androvdr/res/xml/preferences.xml @@ -50,10 +50,7 @@ android:title="@string/wakeup_enabled_title" android:summary="@string/wakeup_enabled_summary"/> - + { try { // connect informListener(SvdrpEvent.CONNECTING, null); - if (prefs.isSSL()) { - throw new IllegalArgumentException("SSL not implemented yet"); - } else { - socket = new Socket(prefs.getSvdrpHost(), prefs.getSvdrpPort()); - } + socket = new Socket(prefs.getSvdrpHost(), prefs.getSvdrpPort()); informListener(SvdrpEvent.CONNECTED, null); } catch (final IOException e) { informListener(SvdrpEvent.CONNECT_ERROR, null); diff --git a/androvdr/src/de/bjusystems/androvdr/utils/wakeup/AsyncWakeupTask.java b/androvdr/src/de/bjusystems/androvdr/utils/wakeup/AsyncWakeupTask.java index 7002140..a5603db 100644 --- a/androvdr/src/de/bjusystems/androvdr/utils/wakeup/AsyncWakeupTask.java +++ b/androvdr/src/de/bjusystems/androvdr/utils/wakeup/AsyncWakeupTask.java @@ -33,19 +33,11 @@ public class AsyncWakeupTask extends AsyncTask { boolean ok = false; try { - // send request - if (prefs.isWakeupHttp()) { - // wakeup by http request - final HttpHelper httpHelper = new HttpHelper(); - httpHelper.performGet(prefs.getWakeupUrl(), prefs.getWakeupUser(), prefs.getWakeupPassword(), null); - // request sent - ok = true; - } else { - // wakeup by SvdrpHelper - final WakeupClient client = new WakeupClient(); - client.run(); - ok = client.getState().equals(WakeupState.OK); - } + // wakeup by http request + final HttpHelper httpHelper = new HttpHelper(); + httpHelper.performGet(prefs.getWakeupUrl(), prefs.getWakeupUser(), prefs.getWakeupPassword(), null); + // request sent + ok = true; } catch (final Exception e) { } -- cgit v1.2.3