From d98f6c6ba51ae8810bd2d035fa89f6ca24eba8fd Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 16 Mar 2015 12:55:41 +0100 Subject: Update/cleanup of external API, allow adding of non user editable profiles --HG-- rename : remoteExample/src/main/assets/hd.conf => remoteExample/src/main/assets/test.conf --- .idea/copyright/ics_openvpn_gpl.xml | 2 +- .../de/blinkt/openvpn/api/IOpenVPNAPIService.aidl | 13 +++- .../main/java/de/blinkt/openvpn/VpnProfile.java | 2 +- .../blinkt/openvpn/activities/VPNPreferences.java | 19 +++-- .../java/de/blinkt/openvpn/api/APIVpnProfile.java | 84 +++++++++++---------- .../blinkt/openvpn/api/ExternalOpenVPNService.java | 50 +++++++------ .../de/blinkt/openvpn/core/ProfileManager.java | 8 +- .../de/blinkt/openvpn/fragments/FaqFragment.java | 13 +++- .../blinkt/openvpn/fragments/Settings_Basic.java | 20 ++--- .../openvpn/fragments/Settings_Connections.java | 12 +-- .../openvpn/fragments/Settings_Fragment.java | 35 +++++++++ .../openvpn/fragments/Settings_UserEditable.java | 49 ++++++++++++ main/src/main/res/layout/settings_usereditable.xml | 21 ++++++ main/src/main/res/values/strings.xml | 1 + .../de/blinkt/openvpn/api/IOpenVPNAPIService.aidl | 13 +++- remoteExample/src/main/assets/hd.conf | 61 --------------- remoteExample/src/main/assets/test.conf | 61 +++++++++++++++ .../java/de/blinkt/openvpn/api/APIVpnProfile.java | 87 ++++++++++++---------- .../de/blinkt/openvpn/remote/MainFragment.java | 30 +++++--- .../src/main/res/layout/fragment_main.xml | 10 +++ remoteExample/src/main/res/values/strings.xml | 1 + 21 files changed, 370 insertions(+), 222 deletions(-) create mode 100644 main/src/main/java/de/blinkt/openvpn/fragments/Settings_Fragment.java create mode 100644 main/src/main/java/de/blinkt/openvpn/fragments/Settings_UserEditable.java create mode 100644 main/src/main/res/layout/settings_usereditable.xml delete mode 100644 remoteExample/src/main/assets/hd.conf create mode 100644 remoteExample/src/main/assets/test.conf diff --git a/.idea/copyright/ics_openvpn_gpl.xml b/.idea/copyright/ics_openvpn_gpl.xml index fb4d0809..2980b0c4 100644 --- a/.idea/copyright/ics_openvpn_gpl.xml +++ b/.idea/copyright/ics_openvpn_gpl.xml @@ -1,6 +1,6 @@ -