public class MetaContactQuery
extends java.lang.Object
Constructor and Description |
---|
MetaContactQuery() |
Modifier and Type | Method and Description |
---|---|
void |
addContactQueryListener(MetaContactQueryListener l)
Adds the given MetaContactQueryListener to the list of
registered listeners.
|
void |
cancel()
Cancels this query.
|
void |
fireQueryEvent(int queryStatus)
Notifies the MetaContactQueryListener that this query has
changed its status.
|
void |
fireQueryEvent(MetaContact metaContact)
Notifies the MetaContactQueryListener that a new
MetaContact has been received as a result of a search.
|
void |
fireQueryEvent(MetaContactGroup metaGroup)
Notifies the MetaContactQueryListener that a new
MetaGroup has been received as a result of a search.
|
int |
getResultCount()
Returns the current number of results received for this query.
|
boolean |
isCanceled()
Returns true if this query has been canceled, otherwise returns
false.
|
void |
removeContactQueryListener(MetaContactQueryListener l)
Removes the given MetaContactQueryListener to the list of
registered listeners.
|
void |
setInitialResultCount(int resultCount)
Sets the result count of this query.
|
public void cancel()
public boolean isCanceled()
public int getResultCount()
public void setInitialResultCount(int resultCount)
resultCount
- the initial result count to setpublic void addContactQueryListener(MetaContactQueryListener l)
l
- the MetaContactQueryListener to addpublic void removeContactQueryListener(MetaContactQueryListener l)
l
- the MetaContactQueryListener to removepublic void fireQueryEvent(MetaContact metaContact)
metaContact
- the received MetaContactpublic void fireQueryEvent(MetaContactGroup metaGroup)
metaGroup
- the received MetaGrouppublic void fireQueryEvent(int queryStatus)
queryStatus
- the new query status
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.