public class MessageSourceContactQuery extends AsyncContactQuery<MessageSourceService>
query
QUERY_CANCELED, QUERY_COMPLETED, QUERY_ERROR, QUERY_IN_PROGRESS
Constructor and Description |
---|
MessageSourceContactQuery(MessageSourceService messageSourceService)
Constructs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addQueryResult(SourceContact sourceContact)
Adds a specific SourceContact to the list of
SourceContacts to be returned by this ContactQuery in
response to
AsyncContactQuery.getQueryResults() . |
void |
fireContactChanged(java.lang.Object srcObj)
Notifies the ContactQueryListeners registered with this
ContactQuery that a SourceContact has been
changed.
|
void |
fireContactRemoved(java.lang.Object srcObj)
Notifies the ContactQueryListeners registered with this
ContactQuery that a SourceContact has been
removed.
|
void |
run()
Creates MessageSourceContact for all currently cached
recent messages in the MessageSourceService.
|
void |
updateCapabilities(java.lang.Object srcObj,
Contact contact)
Updates capabilities from Contact for the found
MessageSourceContact equals to the Object supplied.
|
void |
updateCapabilities(java.lang.Object srcObj,
java.util.EventObject eventObj)
Updates capabilities from EventObject for the found
MessageSourceContact equals to the Object supplied.
|
void |
updateContact(java.lang.Object srcObj,
java.util.EventObject eventObject)
Notifies the ContactQueryListeners registered with this
ContactQuery that a SourceContact has been
changed.
|
void |
updateContactDisplayName(java.lang.Object srcObj,
java.lang.String newName)
Notifies the ContactQueryListeners registered with this
ContactQuery that a SourceContact has been
changed.
|
void |
updateContactStatus(java.lang.Object srcObj,
PresenceStatus status)
Notifies the ContactQueryListeners registered with this
ContactQuery that a SourceContact has been
changed.
|
addQueryResult, addQueryResults, getPhoneNumberQuery, getQueryResultCount, getQueryResults, getQueryString, phoneNumberMatches, removeQueryResult, start, stopped
addContactQueryListener, cancel, fireContactChanged, fireContactReceived, fireContactReceived, fireContactRemoved, fireQueryStatusChanged, getContactSource, getStatus, removeContactQueryListener, setStatus
MessageSourceContactQuery(MessageSourceService messageSourceService)
messageSourceService
- public void run()
run
in class AsyncContactQuery<MessageSourceService>
public void updateCapabilities(java.lang.Object srcObj, java.util.EventObject eventObj)
srcObj
- used to search for MessageSourceContacteventObj
- the values used for the updatepublic void updateCapabilities(java.lang.Object srcObj, Contact contact)
srcObj
- used to search for MessageSourceContactcontact
- the values used for the updatepublic void updateContact(java.lang.Object srcObj, java.util.EventObject eventObject)
srcObj
- the Object representing a recent message
which has been changed and corresponding SourceContact
which the registered ContactQueryListeners are to be
notified aboutpublic void fireContactChanged(java.lang.Object srcObj)
srcObj
- the Object representing a recent message
which has been changed and corresponding SourceContact
which the registered ContactQueryListeners are to be
notified aboutpublic void updateContactStatus(java.lang.Object srcObj, PresenceStatus status)
srcObj
- the Object representing a recent message
which has been changed and corresponding SourceContact
which the registered ContactQueryListeners are to be
notified aboutpublic void updateContactDisplayName(java.lang.Object srcObj, java.lang.String newName)
srcObj
- the Object representing a recent message
which has been changed and corresponding SourceContact
which the registered ContactQueryListeners are to be
notified aboutpublic void fireContactRemoved(java.lang.Object srcObj)
srcObj
- representing the message and its corresponding
SourceContact which has been removed and which the registered
ContactQueryListeners are to be notified aboutpublic boolean addQueryResult(SourceContact sourceContact)
AsyncContactQuery.getQueryResults()
.addQueryResult
in class AsyncContactQuery<MessageSourceService>
sourceContact
- the SourceContact to be added to the
queryResults of this ContactQuery
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.