From 3553f9ad0eacdb4e3d7befaaff49cdd8f0cdb35b Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Mon, 17 May 2010 07:21:11 +0000 Subject: [PATCH] Adds and activates reconnect plugin. Some fixes to protocols in order to work with the plungin (removing all tries to reconnect as they are now controlled from outside). --- build.xml | 12 +- lib/felix.client.run.properties | 1 + resources/install/build.xml | 2 +- .../impl/gui/main/login/LoginManager.java | 45 +- .../NetworkAddressManagerServiceImpl.java | 33 + .../netaddr/NetworkConfigurationWatcher.java | 313 ++++++++++ .../impl/netaddr/netaddr.manifest.mf | 1 + .../icq/ProtocolProviderServiceIcqImpl.java | 8 - .../impl/protocol/msn/EventManager.java | 28 +- ...perationSetTypingNotificationsMsnImpl.java | 19 +- .../msn/ProtocolProviderServiceMsnImpl.java | 47 +- .../msn/ServerStoredContactListMsnImpl.java | 22 +- .../ProtocolProviderServiceYahooImpl.java | 38 +- .../ReconnectPluginActivator.java | 581 ++++++++++++++++++ .../reconnectplugin.manifest.mf | 17 + .../netaddr/NetworkAddressManagerService.java | 17 + .../service/netaddr/event/ChangeEvent.java | 100 +++ .../NetworkConfigurationChangeListener.java | 22 + 18 files changed, 1261 insertions(+), 45 deletions(-) create mode 100644 src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java create mode 100644 src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java create mode 100644 src/net/java/sip/communicator/plugin/reconnectplugin/reconnectplugin.manifest.mf create mode 100644 src/net/java/sip/communicator/service/netaddr/event/ChangeEvent.java create mode 100644 src/net/java/sip/communicator/service/netaddr/event/NetworkConfigurationChangeListener.java diff --git a/build.xml b/build.xml index 2b2cc7fe1..fde9b4eba 100644 --- a/build.xml +++ b/build.xml @@ -909,7 +909,7 @@ bundle-filehistory,bundle-metahistory,bundle-metahistory-slick, bundle-plugin-facebookaccregwizz, bundle-bouncycastle,bundle-plugin-otr,bundle-plugin-iptelaccregwizz, - bundle-contactsource"/> + bundle-contactsource,bundle-plugin-reconnect"/> @@ -2325,4 +2325,14 @@ org.apache.http.util"/> prefix="net/java/sip/communicator/service/contactsource"/> + + + + + + + + diff --git a/lib/felix.client.run.properties b/lib/felix.client.run.properties index d7232adc8..442d3184b 100644 --- a/lib/felix.client.run.properties +++ b/lib/felix.client.run.properties @@ -76,6 +76,7 @@ felix.auto.start.52= \ reference:file:sc-bundles/protocol-gibberish.jar \ reference:file:sc-bundles/protocol-ssh.jar \ reference:file:sc-bundles/netaddr.jar \ + reference:file:sc-bundles/reconnectplugin.jar \ reference:file:sc-bundles/protocol-zeroconf.jar \ reference:file:sc-bundles/protocol-irc.jar \ reference:file:sc-bundles/protocol-dict.jar diff --git a/resources/install/build.xml b/resources/install/build.xml index 0378232b7..f587091a2 100644 --- a/resources/install/build.xml +++ b/resources/install/build.xml @@ -401,7 +401,7 @@ - +