|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.OperationSetGeolocationJabberImpl
public class OperationSetGeolocationJabberImpl
The Jabber implementation of an OperationSetGeolocation done with the XEP-0080: User Geolocation. This class broadcast our own geolocation and manage the geolocation status of our buddies. Currently, we send geolocation message in presence. We passively listen to buddies geolocation when their presence are updated.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.OperationSetGeolocation |
|---|
ALT, AREA, BEARING, BUILDING, COUNTRY, DATUM, DESCRIPTION, ERROR, FLOOR, LAT, LOCALITY, LON, POSTALCODE, REGION, ROOM, STREET, TEXT, TIMESTAMP |
| Constructor Summary | |
|---|---|
OperationSetGeolocationJabberImpl(ProtocolProviderServiceJabberImpl provider)
Constuctor |
|
| Method Summary | |
|---|---|
void |
addGeolocationListener(GeolocationListener listener)
Registers a listener that would get notifications any time a contact refreshed its geolocation via Presence. |
void |
publishGeolocation(Map<String,String> geolocation)
Broadcast our current Geolocation trough this provider using a Jabber presence message. |
Map<String,String> |
queryContactGeolocation(String contactIdentifier)
Retrieve the geolocation of the given contact. |
void |
removeGeolocationListener(GeolocationListener listener)
Remove a listener that would get notifications any time a contact refreshed its geolocation via Presence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationSetGeolocationJabberImpl(ProtocolProviderServiceJabberImpl provider)
provider - ProtocolProviderServiceJabberImpl| Method Detail |
|---|
public void publishGeolocation(Map<String,String> geolocation)
publishGeolocation in interface OperationSetGeolocationgeolocation - our current Geolocation ready to be sentpublic Map<String,String> queryContactGeolocation(String contactIdentifier)
Note: Currently not implemented because we can not actively poll the server for the presence of a given contact ?
queryContactGeolocation in interface OperationSetGeolocationcontactIdentifier - the Contact we want to retrieve its
geolocation by its identifier.
public void addGeolocationListener(GeolocationListener listener)
addGeolocationListener in interface OperationSetGeolocationlistener - the ContactGeolocationPresenceListener to
registerpublic void removeGeolocationListener(GeolocationListener listener)
removeGeolocationListener in interface OperationSetGeolocationlistener - the ContactGeolocationPresenceListener to
register
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||