Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class FileTransferProgressEvent
extends EventObject

The FileTransferProgressEvent indicates the progress of a file transfer.

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FileTransferProgressEvent(FileTransfer fileTransfer, long timestamp, long progress)
          Creates a FileTransferProgressEvent by specifying the source file transfer object, that triggered the event and the new progress value.
 
Method Summary
 FileTransfer getFileTransfer()
          Returns the source FileTransfer that triggered this event.
 long getProgress()
          Returns the progress of the file transfer in transferred bytes.
 long getTimestamp()
          Returns the timestamp when this event initially occured.
 
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
 

Constructor Detail

FileTransferProgressEvent

public FileTransferProgressEvent(FileTransfer fileTransfer,
                                 long timestamp,
                                 long progress)
Creates a FileTransferProgressEvent by specifying the source file transfer object, that triggered the event and the new progress value.

Parameters:
fileTransfer - the source file transfer object, that triggered the event
timestamp - when this event occured
progress - the new progress value
Method Detail

getFileTransfer

public FileTransfer getFileTransfer()
Returns the source FileTransfer that triggered this event.

Returns:
the source FileTransfer that triggered this event

getProgress

public long getProgress()
Returns the progress of the file transfer in transferred bytes.

Returns:
the progress of the file transfer

getTimestamp

public long getTimestamp()
Returns the timestamp when this event initially occured.

Returns:
the timestamp when this event initially occured

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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