From 22cb35dd3d39404ab31a24744b35237963307602 Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Wed, 18 Jan 2012 12:14:04 +0000 Subject: Fixes ui blocking displaying contact in contactlist or in the tooltip, when checking for contact server stored details like phones etc. --- .../OperationSetServerStoredContactInfo.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/net/java/sip/communicator/service') diff --git a/src/net/java/sip/communicator/service/protocol/OperationSetServerStoredContactInfo.java b/src/net/java/sip/communicator/service/protocol/OperationSetServerStoredContactInfo.java index 48056cc..d81d33c 100644 --- a/src/net/java/sip/communicator/service/protocol/OperationSetServerStoredContactInfo.java +++ b/src/net/java/sip/communicator/service/protocol/OperationSetServerStoredContactInfo.java @@ -80,4 +80,28 @@ public interface OperationSetServerStoredContactInfo * contact. */ public Iterator getAllDetailsForContact(Contact contact); + + /** + * Requests all details existing for the specified contact. + * @param contact the specified contact + * @return a java.util.Iterator over all details existing for the specified + * contact. If there are missing in the local cache null value will + * be returned and they will be scheduled for retrieve. + * The listener will be used to inform that retrieve has finished. + */ + public Iterator requestAllDetailsForContact( + Contact contact, DetailsResponseListener listener); + + /** + * Retrieving details can take some time, this listener will inform + * when retrieving has ended and will return the details if any. + */ + public interface DetailsResponseListener + { + /** + * Informs for details retrieved. + * @param detailIterator the details retrieved if any. + */ + public void detailsRetrieved(Iterator detailIterator); + } } -- cgit v1.1