net.java.sip.communicator.service.protocol.event
Class FileTransferProgressEvent
java.lang.Object
java.util.EventObject
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
|
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. |
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
eventtimestamp - when this event occuredprogress - the new progress value
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.
Distributable under LGPL license.