|
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 | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.gui.main.contactlist.contactsource.MetaContactQuery
public class MetaContactQuery
The MetaContactQuery corresponds to a particular query made through the MetaContactListSource. 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.
| Constructor Summary | |
|---|---|
MetaContactQuery()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaContactQuery()
| Method Detail |
|---|
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. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||