public abstract class AbstractAddrBookContactQuery<T extends ContactSourceService> extends AsyncContactQuery<T>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<SourceContact> |
sourceContacts
A list of all source contact results.
|
query
QUERY_CANCELED, QUERY_COMPLETED, QUERY_ERROR, QUERY_IN_PROGRESS
Constructor and Description |
---|
AbstractAddrBookContactQuery(T contactSource,
java.util.regex.Pattern query)
Initializes a new AbstractAddrBookContactQuery which is to perform
a specific query in the Address Book on behalf of a
specific ContactSourceService.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear.
|
protected SourceContact |
findSourceContactByID(java.lang.String id)
Searches for source contact with the specified id.
|
protected void |
fireContactReceived(SourceContact contact)
Notifies the ContactQueryListeners registered with this
ContactQuery that a new SourceContact has been
received.
|
protected void |
fireContactRemoved(SourceContact contact)
Notifies the ContactQueryListeners registered with this
ContactQuery that a SourceContact has been
removed.
|
addQueryResult, addQueryResult, addQueryResults, getPhoneNumberQuery, getQueryResultCount, getQueryResults, getQueryString, phoneNumberMatches, removeQueryResult, run, start, stopped
addContactQueryListener, cancel, fireContactChanged, fireContactReceived, fireQueryStatusChanged, getContactSource, getStatus, removeContactQueryListener, setStatus
protected final java.util.List<SourceContact> sourceContacts
public AbstractAddrBookContactQuery(T contactSource, java.util.regex.Pattern query)
contactSource
- the ContactSourceService which is to
perform the new ContactQuery instancequery
- the Pattern for which contactSource is
being queriedprotected void fireContactReceived(SourceContact contact)
fireContactReceived
in class AbstractContactQuery<T extends ContactSourceService>
contact
- the SourceContact which has been received and
which the registered ContactQueryListeners are to be notified
aboutprotected void fireContactRemoved(SourceContact contact)
fireContactRemoved
in class AbstractContactQuery<T extends ContactSourceService>
contact
- the SourceContact which has been removed and
which the registered ContactQueryListeners are to be notified
aboutpublic void clear()
protected SourceContact findSourceContactByID(java.lang.String id)
id
- the id to search for
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.