diff options
author | Damian Minkov <damencho@jitsi.org> | 2012-01-18 12:14:04 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2012-01-18 12:14:04 +0000 |
commit | 22cb35dd3d39404ab31a24744b35237963307602 (patch) | |
tree | efed1c404121feb7781c7d2d2db31d16c79bbea7 /src/net/java/sip/communicator/service | |
parent | bfe6da5fbd7a47c0b04e710005f2041458e15b18 (diff) | |
download | jitsi-22cb35dd3d39404ab31a24744b35237963307602.zip jitsi-22cb35dd3d39404ab31a24744b35237963307602.tar.gz jitsi-22cb35dd3d39404ab31a24744b35237963307602.tar.bz2 |
Fixes ui blocking displaying contact in contactlist or in the tooltip, when checking for contact server stored details like phones etc.
Diffstat (limited to 'src/net/java/sip/communicator/service')
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/OperationSetServerStoredContactInfo.java | 24 |
1 files changed, 24 insertions, 0 deletions
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<GenericDetail> 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 <tt>listener</tt> will be used to inform that retrieve has finished. + */ + public Iterator<GenericDetail> 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<GenericDetail> detailIterator); + } } |