Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class AvatarEvent
extends EventObject

Instances of this class represent a change avatar of a protocol

Author:
Damien Roth
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AvatarEvent(OperationSetAvatar sourceOp, ProtocolProviderService sourceProvider, byte[] newAvatar)
          Creates an event instance indicating that the specified protocol has changed its avatar to newAvatar.
 
Method Summary
 byte[] getNewAvatar()
          Returns the new avatar
 OperationSetAvatar getSourceAvatarOperationSet()
          Returns the OperationSetAvatar instance that is the source of this event.
 ProtocolProviderService getSourceProvider()
          Returns the provider that the source belongs to.
 String toString()
          Returns a String representation of this AvatarEvent
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AvatarEvent

public AvatarEvent(OperationSetAvatar sourceOp,
                   ProtocolProviderService sourceProvider,
                   byte[] newAvatar)
Creates an event instance indicating that the specified protocol has changed its avatar to newAvatar.

Parameters:
sourceOp - the operation set that generated this event
sourceProvider - the protocol provider that the contact belongs to
newAvatar - the new avatar
Method Detail

getSourceProvider

public ProtocolProviderService getSourceProvider()
Returns the provider that the source belongs to.

Returns:
the provider that the source belongs to.

getNewAvatar

public byte[] getNewAvatar()
Returns the new avatar

Returns:
the new avatar

getSourceAvatarOperationSet

public OperationSetAvatar getSourceAvatarOperationSet()
Returns the OperationSetAvatar instance that is the source of this event.

Returns:
the OperationSetAvatar instance that is the source of this event.

toString

public String toString()
Returns a String representation of this AvatarEvent

Overrides:
toString in class EventObject
Returns:
a String representation of this AvatarEvent.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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