public class GoogleContactsQuery extends AsyncContactQuery<GoogleContactsSourceService>
Modifier and Type | Field and Description |
---|---|
static int |
GOOGLECONTACTS_MAX_RESULTS
Maximum results for Google Contacts query.
|
query
QUERY_CANCELED, QUERY_COMPLETED, QUERY_ERROR, QUERY_IN_PROGRESS
Modifier | Constructor and Description |
---|---|
protected |
GoogleContactsQuery(GoogleContactsSourceService contactSource,
java.util.regex.Pattern query,
int count)
Initializes a new GoogleContactsQuery instance which is to
perform a specific query on behalf of a specific
contactSource.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels this ContactQuery.
|
protected void |
run()
Performs this AsyncContactQuery in a background Thread.
|
void |
start()
Starts this AsyncContactQuery.
|
protected void |
stopped(boolean completed)
Notifies this GoogleContactsQuery that it has stopped performing
in the associated background Thread.
|
addQueryResult, addQueryResult, addQueryResults, getPhoneNumberQuery, getQueryResultCount, getQueryResults, getQueryString, phoneNumberMatches, removeQueryResult
addContactQueryListener, fireContactChanged, fireContactReceived, fireContactReceived, fireContactRemoved, fireQueryStatusChanged, getContactSource, getStatus, removeContactQueryListener, setStatus
public static final int GOOGLECONTACTS_MAX_RESULTS
protected GoogleContactsQuery(GoogleContactsSourceService contactSource, java.util.regex.Pattern query, int count)
contactSource
- the ContactSourceService which is to
perform the new ContactQuery instancequery
- the Pattern for which contactSource is
being queriedcount
- maximum number of resultsprotected void run()
run
in class AsyncContactQuery<GoogleContactsSourceService>
AsyncContactQuery.run()
public void start()
AsyncContactQuery
start
in interface ContactQuery
start
in class AsyncContactQuery<GoogleContactsSourceService>
protected void stopped(boolean completed)
stopped
in class AsyncContactQuery<GoogleContactsSourceService>
completed
- true if this ContactQuery has
successfully completed, false if an error has been encountered
during its executionAsyncContactQuery.stopped(boolean)
public void cancel()
cancel
in interface ContactQuery
cancel
in class AbstractContactQuery<GoogleContactsSourceService>
ContactQuery.cancel()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.