public interface ContactQuery
Modifier and Type | Field and Description |
---|---|
static int |
QUERY_CANCELED
Indicates that this query has been canceled.
|
static int |
QUERY_COMPLETED
Indicates that this query has been completed.
|
static int |
QUERY_ERROR
Indicates that this query has been stopped because of an error.
|
static int |
QUERY_IN_PROGRESS
Indicates that this query is in progress.
|
Modifier and Type | Method and Description |
---|---|
void |
addContactQueryListener(ContactQueryListener l)
Adds the given ContactQueryListener to the list of registered
listeners.
|
void |
cancel()
Cancels this query.
|
ContactSourceService |
getContactSource()
Returns the ContactSourceService, where this query was first
initiated.
|
java.util.List<SourceContact> |
getQueryResults()
Returns the list of SourceContacts returned by this query.
|
java.lang.String |
getQueryString()
Returns the query string, this query was created for.
|
int |
getStatus()
Returns the status of this query.
|
void |
removeContactQueryListener(ContactQueryListener l)
Removes the given ContactQueryListener to the list of
registered listeners.
|
void |
start()
Starts the query.
|
static final int QUERY_COMPLETED
static final int QUERY_CANCELED
static final int QUERY_ERROR
static final int QUERY_IN_PROGRESS
ContactSourceService getContactSource()
java.lang.String getQueryString()
java.util.List<SourceContact> getQueryResults()
void start()
void cancel()
int getStatus()
void addContactQueryListener(ContactQueryListener l)
l
- the ContactQueryListener to addvoid removeContactQueryListener(ContactQueryListener l)
l
- the ContactQueryListener to remove
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.