public class FileTransferStatusChangeEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
CANCELED
Indicates that the file transfer has been canceled.
|
static int |
COMPLETED
Indicates that the file transfer has been completed.
|
static int |
FAILED
Indicates that the file transfer has failed.
|
static int |
IN_PROGRESS
Indicates that the file transfer is in progress.
|
static int |
PREPARING
Indicates that the file transfer is in negotiation.
|
static int |
REFUSED
Indicates that the file transfer has been refused.
|
static int |
WAITING
Indicates that the file transfer waits for the recipient to accept the
file.
|
Constructor and Description |
---|
FileTransferStatusChangeEvent(FileTransfer fileTransfer,
int oldStatus,
int newStatus,
java.lang.String reason)
Creates a FileTransferStatusChangeEvent by specifying the
source fileTransfer, the old transfer status and the new status.
|
Modifier and Type | Method and Description |
---|---|
FileTransfer |
getFileTransfer()
Returns the source FileTransfer that triggered this event.
|
int |
getNewStatus()
The new state of the file transfer.
|
int |
getOldStatus()
Returns the state of the file transfer before this event occured.
|
java.lang.String |
getReason()
Returns the reason of the status change.
|
public static final int COMPLETED
public static final int CANCELED
public static final int FAILED
public static final int REFUSED
public static final int IN_PROGRESS
public static final int WAITING
public static final int PREPARING
public FileTransferStatusChangeEvent(FileTransfer fileTransfer, int oldStatus, int newStatus, java.lang.String reason)
fileTransfer
- the source file transfer, for which this status
change occuredoldStatus
- the old statusnewStatus
- the new statusreason
- the reason of this status changepublic FileTransfer getFileTransfer()
public int getOldStatus()
public int getNewStatus()
public java.lang.String getReason()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.