diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-05-09 15:48:45 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-05-09 15:48:45 +0000 |
commit | 40def246c4738ab515229bf4e81ce441293c9cf3 (patch) | |
tree | 526db39fa8adfae23868f676c159ff39ca776ff9 /src/net/java/sip/communicator/impl/protocol/zeroconf/OperationSetPersistentPresenceZeroconfImpl.java | |
parent | 872661ae0607cd6ab1303f82800e729416a89cf6 (diff) | |
download | jitsi-40def246c4738ab515229bf4e81ce441293c9cf3.zip jitsi-40def246c4738ab515229bf4e81ce441293c9cf3.tar.gz jitsi-40def246c4738ab515229bf4e81ce441293c9cf3.tar.bz2 |
Eliminates duplication, fixes raw-type warnings.
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/zeroconf/OperationSetPersistentPresenceZeroconfImpl.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/zeroconf/OperationSetPersistentPresenceZeroconfImpl.java | 70 |
1 files changed, 1 insertions, 69 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/zeroconf/OperationSetPersistentPresenceZeroconfImpl.java b/src/net/java/sip/communicator/impl/protocol/zeroconf/OperationSetPersistentPresenceZeroconfImpl.java index 2ea36a6..53645cf 100644 --- a/src/net/java/sip/communicator/impl/protocol/zeroconf/OperationSetPersistentPresenceZeroconfImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/zeroconf/OperationSetPersistentPresenceZeroconfImpl.java @@ -12,6 +12,7 @@ import java.util.*; import net.java.sip.communicator.service.protocol.*; import net.java.sip.communicator.service.protocol.event.*; import net.java.sip.communicator.util.*; + import org.osgi.framework.*; /** @@ -43,12 +44,6 @@ public class OperationSetPersistentPresenceZeroconfImpl private Vector providerPresenceStatusListeners = new Vector(); /** - * A list of listeneres registered for - * <tt>ContactPresenceStatusChangeEvent</tt>s. - */ - private Vector contactPresenceStatusListeners = new Vector(); - - /** * The root of the zeroconf contact list. */ private ContactGroupZeroconfImpl contactListRoot = null; @@ -88,53 +83,6 @@ public class OperationSetPersistentPresenceZeroconfImpl } /** - * Zeroconf implementation of the corresponding ProtocolProviderService - * method. - * - * @param listener a dummy param. - */ - public void addContactPresenceStatusListener( - ContactPresenceStatusListener listener) - { - synchronized(contactPresenceStatusListeners) - { - if (!contactPresenceStatusListeners.contains(listener)) - contactPresenceStatusListeners.add(listener); - } - } - - /** - * Notifies all registered listeners of the new event. - * - * @param source the contact that has caused the event. - * @param parentGroup the group that contains the source contact. - * @param oldValue the status that the source contact detained before - * changing it. - */ - public void fireContactPresenceStatusChangeEvent(ContactZeroconfImpl source, - ContactGroup parentGroup, - PresenceStatus oldValue) - { - ContactPresenceStatusChangeEvent evt - = new ContactPresenceStatusChangeEvent(source, parentProvider - , parentGroup, oldValue, source.getPresenceStatus()); - - Iterator listeners = null; - synchronized(contactPresenceStatusListeners) - { - listeners = new ArrayList(contactPresenceStatusListeners).iterator(); - } - - while(listeners.hasNext()) - { - ContactPresenceStatusListener listener - = (ContactPresenceStatusListener)listeners.next(); - - listener.contactPresenceStatusChanged(evt); - } - } - - /** * Notifies all registered listeners of the new event. * * @param source the contact that has caused the event. @@ -522,22 +470,6 @@ public class OperationSetPersistentPresenceZeroconfImpl } } - - /** - * Removes the specified listener so that it won't receive any further - * updates on contact presence status changes - * - * @param listener the listener to remove. - */ - public void removeContactPresenceStatusListener( - ContactPresenceStatusListener listener) - { - synchronized(contactPresenceStatusListeners) - { - contactPresenceStatusListeners.remove(listener); - } - } - /** * Unregisters the specified listener so that it does not receive further * events upon changes in local presence status. |