public class ResolveAddressToDisplayNameContactQueryListener extends java.lang.Object implements ContactQueryListener
Constructor and Description |
---|
ResolveAddressToDisplayNameContactQueryListener(ContactQuery query)
Creates a new ResolvedContactQueryListener.
|
Modifier and Type | Method and Description |
---|---|
void |
contactChanged(ContactChangedEvent event)
Indicates that a contact has been updated after a search.
|
void |
contactReceived(ContactReceivedEvent event)
Indicates that a new contact has been received for a search.
|
void |
contactRemoved(ContactRemovedEvent event)
Indicates that a contact has been removed after a search.
|
byte[] |
getResolvedImage()
Returns the image corresponding to the contact address.
|
java.lang.String |
getResolvedName()
Returns the display name corresponding to the contact address.
|
boolean |
isFoundImage()
Tells if the query has found a match to resolve the contact address.
|
boolean |
isFoundName()
Tells if the query has found a match to resolve the contact address.
|
boolean |
isRunning()
Tells if the query is still running.
|
void |
queryStatusChanged(ContactQueryStatusEvent event)
Indicates that the status of a search has been changed.
|
void |
stop()
Stops this ResolvedContactQueryListener.
|
public ResolveAddressToDisplayNameContactQueryListener(ContactQuery query)
public void contactChanged(ContactChangedEvent event)
contactChanged
in interface ContactQueryListener
event
- the ContactQueryEvent containing information
about the updated SourceContactpublic void contactReceived(ContactReceivedEvent event)
contactReceived
in interface ContactQueryListener
event
- the ContactQueryEvent containing information
about the received SourceContactpublic void contactRemoved(ContactRemovedEvent event)
contactRemoved
in interface ContactQueryListener
event
- the ContactQueryEvent containing information
about the received SourceContactpublic void queryStatusChanged(ContactQueryStatusEvent event)
queryStatusChanged
in interface ContactQueryListener
event
- the ContactQueryStatusEvent containing information
about the status changepublic boolean isRunning()
public void stop()
public boolean isFoundName()
public boolean isFoundImage()
public java.lang.String getResolvedName()
public byte[] getResolvedImage()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.