Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class ContactCapabilitiesEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.protocol.event.ContactCapabilitiesEvent
All Implemented Interfaces:
Serializable

public class ContactCapabilitiesEvent
extends EventObject

Represents an event/EventObject fired by OperationSetClientCapabilities in order to notify about changes in the list of the OperationSet capabilities of a Contact.

Author:
Lubomir Marinov, Yana Stamcheva
See Also:
Serialized Form

Field Summary
static int SUPPORTED_OPERATION_SETS_CHANGED
          The ID of the ContactCapabilitiesEvent which notifies about changes in the list of the OperationSet capabilities of a Contact.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContactCapabilitiesEvent(Contact sourceContact, int eventID, Map<String,? extends OperationSet> opSets)
          Initializes a new ContactCapabilitiesEvent instance which is to notify about a specific change in the list of OperationSet capabilities of a specific Contact.
 
Method Summary
 int getEventID()
          Gets the ID of this event which indicates the specifics of the change in the list of OperationSet capabilities of the associated sourceContact and the details it carries.
 Map<String,? extends OperationSet> getOperationSets()
          Returns the new set of OperationSet-s this event is about
 Contact getSourceContact()
          Gets the Contact which is the source/cause of this event i.e.
 
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

SUPPORTED_OPERATION_SETS_CHANGED

public static final int SUPPORTED_OPERATION_SETS_CHANGED
The ID of the ContactCapabilitiesEvent which notifies about changes in the list of the OperationSet capabilities of a Contact.

See Also:
Constant Field Values
Constructor Detail

ContactCapabilitiesEvent

public ContactCapabilitiesEvent(Contact sourceContact,
                                int eventID,
                                Map<String,? extends OperationSet> opSets)
Initializes a new ContactCapabilitiesEvent instance which is to notify about a specific change in the list of OperationSet capabilities of a specific Contact.

Parameters:
sourceContact - the Contact which is to be considered the source/cause of the new event
eventID - the ID of the new event which indicates the specifics of the change in the list of OperationSet capabilities of the specified sourceContact and the details to be carried by the new event
opSets - the new set of operation sets this event is about
Method Detail

getEventID

public int getEventID()
Gets the ID of this event which indicates the specifics of the change in the list of OperationSet capabilities of the associated sourceContact and the details it carries.

Returns:
the ID of this event which indicates the specifics of the change in the list of OperationSet capabilities of the associated sourceContact and the details it carries

getSourceContact

public Contact getSourceContact()
Gets the Contact which is the source/cause of this event i.e. which has changed its list of OperationSet capabilities.

Returns:
the Contact which is the source/cause of this event

getOperationSets

public Map<String,? extends OperationSet> getOperationSets()
Returns the new set of OperationSet-s this event is about

Returns:
the new set of OperationSet-s

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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