Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.contactlist.contactsource
Class MetaContactQueryStatusEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.impl.gui.main.contactlist.contactsource.MetaContactQueryStatusEvent
All Implemented Interfaces:
Serializable

public class MetaContactQueryStatusEvent
extends EventObject

The MetaContactQueryStatusEvent is triggered each time a MetaContactQuery 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
MetaContactQueryStatusEvent(MetaContactQuery source, int eventType)
          Creates a MetaContactQueryStatusEvent by specifying the source MetaContactQuery and the eventType indicating why initially this event occurred.
 
Method Summary
 int getEventType()
          Returns the type of this event.
 MetaContactQuery 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

MetaContactQueryStatusEvent

public MetaContactQueryStatusEvent(MetaContactQuery source,
                                   int eventType)
Creates a MetaContactQueryStatusEvent by specifying the source MetaContactQuery 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 MetaContactQuery 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.