|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContactQuery
The ContactQuery corresponds to a particular query made through the ContactSourceService. Each query once started could be canceled. One could also register a listener in order to be notified for changes in query status and query contact results.
| Field Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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. |
List<SourceContact> |
getQueryResults()
Returns the list of SourceContacts returned by this query. |
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. |
| Field Detail |
|---|
static final int QUERY_COMPLETED
static final int QUERY_CANCELED
static final int QUERY_ERROR
static final int QUERY_IN_PROGRESS
| Method Detail |
|---|
ContactSourceService getContactSource()
String getQueryString()
List<SourceContact> getQueryResults()
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. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||