Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.contactsource
Class ContactQueryStatusEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.contactsource.ContactQueryStatusEvent
All Implemented Interfaces:
Serializable

public class ContactQueryStatusEvent
extends EventObject

The ContactQueryStatusEvent is triggered each time a ContactQuery changes its status. Possible statuses are: QUERY_COMPLETED, QUERY_CANCELED and QUERY_ERROR.

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
static int QUERY_CANCELED
          Indicates that a query has been canceled.
static int QUERY_COMPLETED
          Indicates that a query has been completed.
static int QUERY_ERROR
          Indicates that a query has been stopped because of an error.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContactQueryStatusEvent(ContactQuery source, int eventType)
          Creates a ContactQueryStatusEvent by specifying the source ContactQuery and the eventType indicating why initially this event occurred.
 
Method Summary
 int getEventType()
          Returns the type of this event.
 ContactQuery getQuerySource()
          Returns the ContactQuery that triggered this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_COMPLETED

public static final int QUERY_COMPLETED
Indicates that a query has been completed.

See Also:
Constant Field Values

QUERY_CANCELED

public static final int QUERY_CANCELED
Indicates that a query has been canceled.

See Also:
Constant Field Values

QUERY_ERROR

public static final int QUERY_ERROR
Indicates that a query has been stopped because of an error.

See Also:
Constant Field Values
Constructor Detail

ContactQueryStatusEvent

public ContactQueryStatusEvent(ContactQuery source,
                               int eventType)
Creates a ContactQueryStatusEvent by specifying the source ContactQuery and the eventType indicating why initially this event occurred.

Parameters:
source - the initiator of the event
eventType - the type of the event. One of the QUERY_XXX constants defined in this class
Method Detail

getQuerySource

public ContactQuery getQuerySource()
Returns the ContactQuery that triggered this event.

Returns:
the ContactQuery that triggered this event

getEventType

public int getEventType()
Returns the type of this event.

Returns:
the type of this event

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.