summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/OpenVPN.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-05-18 19:12:38 +0200
committerArne Schwabe <arne@rfc2549.org>2012-05-18 19:12:38 +0200
commit42423ebf890bc51a9d8d24539fb05a200d878885 (patch)
tree956218cce68e85c85b940b4378ce7630bf8e99cb /src/de/blinkt/openvpn/OpenVPN.java
parent40eb17c3c472bf088568abe7082427f1ab891399 (diff)
Version 0.5.5
- Add state to speed display
Diffstat (limited to 'src/de/blinkt/openvpn/OpenVPN.java')
-rw-r--r--src/de/blinkt/openvpn/OpenVPN.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/de/blinkt/openvpn/OpenVPN.java b/src/de/blinkt/openvpn/OpenVPN.java
index 1d9eb6e0..40fe3afd 100644
--- a/src/de/blinkt/openvpn/OpenVPN.java
+++ b/src/de/blinkt/openvpn/OpenVPN.java
@@ -10,15 +10,15 @@ public class OpenVPN {
public static LinkedList<String> logbuffer = new LinkedList<String>();
private static Vector<LogListener> logListener=new Vector<OpenVPN.LogListener>();
- private static Vector<SpeedListener> speedListener=new Vector<OpenVPN.SpeedListener>();
+ private static Vector<StateListener> stateListener=new Vector<OpenVPN.StateListener>();
private static String[] mBconfig;
public interface LogListener {
void newLog(String logmessage);
}
- public interface SpeedListener {
- void updateSpeed(String logmessage);
+ public interface StateListener {
+ void updateState(String logmessage);
}
synchronized static void logMessage(int level,String prefix, String message)
@@ -46,12 +46,12 @@ public class OpenVPN {
}
- synchronized static void addSpeedListener(SpeedListener sl){
- speedListener.add(sl);
+ synchronized static void addSpeedListener(StateListener sl){
+ stateListener.add(sl);
}
- synchronized static void removeSpeedListener(SpeedListener sl) {
- speedListener.remove(sl);
+ synchronized static void removeSpeedListener(StateListener sl) {
+ stateListener.remove(sl);
}
@@ -77,9 +77,9 @@ public class OpenVPN {
}
- public static void updateSpeedString(String msg) {
- for (SpeedListener sl : speedListener) {
- sl.updateSpeed(msg);
+ public static void updateStateString(String msg) {
+ for (StateListener sl : stateListener) {
+ sl.updateState(msg);
}
}
}