|
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.service.contactsource.AbstractContactQuery<T>
T - the very type of ContactSourceService which performs the
ContactQuerypublic abstract class AbstractContactQuery<T extends ContactSourceService>
Provides an abstract implementation of the basic functionality of ContactQuery and allows extenders to focus on the specifics of their implementation.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.contactsource.ContactQuery |
|---|
QUERY_CANCELED, QUERY_COMPLETED, QUERY_ERROR, QUERY_IN_PROGRESS |
| Constructor Summary | |
|---|---|
protected |
AbstractContactQuery(T contactSource)
Initializes a new AbstractContactQuery which is to be performed by a specific ContactSourceService. |
| Method Summary | |
|---|---|
void |
addContactQueryListener(ContactQueryListener l)
Adds a ContactQueryListener to the list of listeners interested in notifications about this ContactQuery changing its status, the receipt of new SourceContacts via this ContactQuery, etc. |
void |
cancel()
Cancels this ContactQuery. |
protected void |
fireContactReceived(SourceContact contact)
Notifies the ContactQueryListeners registered with this ContactQuery that a new SourceContact has been received. |
protected void |
fireQueryStatusChanged(int eventType)
Notifies the ContactQueryListeners registered with this ContactQuery that its state has changed. |
T |
getContactSource()
Gets the ContactSourceService which is performing this ContactQuery. |
int |
getStatus()
Gets the status of this ContactQuery which can be one of the QUERY_XXX constants defined by ContactQuery. |
void |
removeContactQueryListener(ContactQueryListener l)
Removes a ContactQueryListener from the list of listeners interested in notifications about this ContactQuery changing its status, the receipt of new SourceContacts via this ContactQuery, etc. |
void |
setStatus(int status)
Sets the status of this ContactQuery. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.contactsource.ContactQuery |
|---|
getQueryResults, getQueryString |
| Constructor Detail |
|---|
protected AbstractContactQuery(T contactSource)
ContactQuery.QUERY_IN_PROGRESS.
contactSource - the ContactSourceService which is to
perform the new AbstractContactQuery| Method Detail |
|---|
public void addContactQueryListener(ContactQueryListener l)
addContactQueryListener in interface ContactQueryl - the ContactQueryListener to be added to the list of
listeners interested in the notifications raised by this
ContactQueryContactQuery.addContactQueryListener(ContactQueryListener)public void cancel()
cancel in interface ContactQueryContactQuery.cancel()protected void fireContactReceived(SourceContact contact)
contact - the SourceContact which has been received and
which the registered ContactQueryListeners are to be notified
aboutprotected void fireQueryStatusChanged(int eventType)
eventType - the type of the ContactQueryStatusEvent to be
fired which can be one of the QUERY_XXX constants defined by
ContactQueryStatusEventpublic T getContactSource()
getContactSource in interface ContactQueryContactQuery.getContactSource()public int getStatus()
getStatus in interface ContactQueryContactQuery.getStatus()public void removeContactQueryListener(ContactQueryListener l)
removeContactQueryListener in interface ContactQueryl - the ContactQueryListener to be removed from the list of
listeners interested in notifications raised by this ContactQueryContactQuery.removeContactQueryListener(ContactQueryListener)public void setStatus(int status)
status - ContactQuery.QUERY_CANCELED,
ContactQuery.QUERY_COMPLETED, or
ContactQuery.QUERY_ERROR
|
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 | |||||||||