aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2011-12-22 15:34:28 +0000
committerDamian Minkov <damencho@jitsi.org>2011-12-22 15:34:28 +0000
commit9e9e357c9b462facbf44e3807021b68b6c6e0330 (patch)
tree908cdbbd5a42161b8671eddd2cb68f9aec8895fc /src/net/java/sip/communicator/service
parentfcb4f90800eb1da8c1cf5fbf3bbc4f4e5addceca (diff)
downloadjitsi-9e9e357c9b462facbf44e3807021b68b6c6e0330.zip
jitsi-9e9e357c9b462facbf44e3807021b68b6c6e0330.tar.gz
jitsi-9e9e357c9b462facbf44e3807021b68b6c6e0330.tar.bz2
Adds dns change detection on macosx.
Diffstat (limited to 'src/net/java/sip/communicator/service')
-rw-r--r--src/net/java/sip/communicator/service/netaddr/event/ChangeEvent.java9
-rw-r--r--src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java5
2 files changed, 13 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/service/netaddr/event/ChangeEvent.java b/src/net/java/sip/communicator/service/netaddr/event/ChangeEvent.java
index ca3d3eb..262cf03 100644
--- a/src/net/java/sip/communicator/service/netaddr/event/ChangeEvent.java
+++ b/src/net/java/sip/communicator/service/netaddr/event/ChangeEvent.java
@@ -42,6 +42,11 @@ public class ChangeEvent
public static final int ADDRESS_UP = 3;
/**
+ * Event type for dns change.
+ */
+ public static final int DNS_CHANGE = 4;
+
+ /**
* The type of the current event.
*/
private int type = -1;
@@ -161,11 +166,13 @@ public class ChangeEvent
case IFACE_UP: buff.append("Interface up"); break;
case ADDRESS_DOWN : buff.append("Address down"); break;
case ADDRESS_UP : buff.append("Address up"); break;
+ case DNS_CHANGE : buff.append("Dns has changed"); break;
}
buff.append(", standby=" + standby)
.append(", source=" + source)
- .append(", address=" + address);
+ .append(", address=" + address)
+ .append(", isInitial=" + initial);
return buff.toString();
}
diff --git a/src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java b/src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java
index ad8709b..a9fbcb4 100644
--- a/src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java
+++ b/src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java
@@ -77,6 +77,11 @@ public class SystemActivityEvent
public static final int EVENT_SYSTEM_IDLE_END = 11;
/**
+ * A change in dns configuration has occurred.
+ */
+ public static final int EVENT_DNS_CHANGE = 12;
+
+ /**
* The type of the event.
*/
private final int eventID;