|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
net.java.sip.communicator.service.protocol.event.FileTransferStatusChangeEvent
public class FileTransferStatusChangeEvent
The FileTransferStatusChangeEvent is the event indicating of a change in the state of a file transfer.
| Field Summary | |
|---|---|
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. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
FileTransferStatusChangeEvent(FileTransfer fileTransfer,
int oldStatus,
int newStatus,
String reason)
Creates a FileTransferStatusChangeEvent by specifying the source fileTransfer, the old transfer status and the new status. |
|
| Method Summary | |
|---|---|
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. |
String |
getReason()
Returns the reason of the status change. |
| 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 |
|---|
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
| Constructor Detail |
|---|
public FileTransferStatusChangeEvent(FileTransfer fileTransfer,
int oldStatus,
int newStatus,
String reason)
fileTransfer - the source file transfer, for which this status
change occuredoldStatus - the old statusnewStatus - the new statusreason - the reason of this status change| Method Detail |
|---|
public FileTransfer getFileTransfer()
public int getOldStatus()
public int getNewStatus()
public String getReason()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||