From a3f414b429f528cfbc2fee0e27f7b652c4139c97 Mon Sep 17 00:00:00 2001 From: Emil Ivov Date: Mon, 14 May 2007 14:10:52 +0000 Subject: [PATCH] Committing geolocation for Jabber from Guillaume Schreiner - Louis Pasteur University, France a listener that allows collecting GeolocationEvent-s --- .../protocol/event/GeolocationListener.java | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/net/java/sip/communicator/service/protocol/event/GeolocationListener.java diff --git a/src/net/java/sip/communicator/service/protocol/event/GeolocationListener.java b/src/net/java/sip/communicator/service/protocol/event/GeolocationListener.java new file mode 100644 index 000000000..3fe514dd5 --- /dev/null +++ b/src/net/java/sip/communicator/service/protocol/event/GeolocationListener.java @@ -0,0 +1,35 @@ +/* + * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. + * + * Distributable under LGPL license. + * See terms of license at gnu.org. + */ +package net.java.sip.communicator.service.protocol.event; + +import java.util.*; + +/** + * The listener interface for receiving geolocation events. + * The class that is interested in processing a geolocation event + * implements this interface, and the object created with that + * class is registered with the geolocation operation set, using its + * addGeolocationListener method. When a geolocation event + * occurs, that object's contactGeolocationChanged method is + * invoked. + * + * @see GeolocationEvent + * + * @author Guillaume Schreiner + */ +public interface GeolocationListener + extends EventListener +{ + /** + * Called whenever a change occurs in the GeolocationPresence of one of the + * contacts that we have subscribed for. + * + * @param evt the ContactGeolocationPresenceChangeEvent describing the + * status change. + */ + public void contactGeolocationChanged(GeolocationEvent evt); +}