|
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 | |||||||||
public interface FileTransfer
The FileTransfer interface is meant to be used by parties interested in the file transfer process. It contains information about the status and the progress of the transfer as well as the bytes that have been transfered.
| Field Summary | |
|---|---|
static int |
IN
File transfer is incoming. |
static int |
OUT
File transfer is outgoing. |
| Method Summary | |
|---|---|
void |
addProgressListener(FileTransferProgressListener listener)
Adds the given FileTransferProgressListener to listen for status changes on this file transfer. |
void |
addStatusListener(FileTransferStatusListener listener)
Adds the given FileTransferStatusListener to listen for status changes on this file transfer. |
void |
cancel()
Cancels this file transfer. |
Contact |
getContact()
Returns the contact that we are transfering files with. |
int |
getDirection()
The file transfer direction. |
String |
getID()
Uniquie ID that is identifying the FileTransfer if the request has been accepted. |
File |
getLocalFile()
Returns the local file that is being transferred or to which we transfer. |
int |
getStatus()
Returns the current status of the transfer. |
long |
getTransferedBytes()
Returns the number of bytes already transfered through this file transfer. |
void |
removeProgressListener(FileTransferProgressListener listener)
Removes the given FileTransferProgressListener. |
void |
removeStatusListener(FileTransferStatusListener listener)
Removes the given FileTransferStatusListener. |
| Field Detail |
|---|
static final int IN
static final int OUT
| Method Detail |
|---|
String getID()
void cancel()
int getDirection()
File getLocalFile()
Contact getContact()
int getStatus()
long getTransferedBytes()
void addStatusListener(FileTransferStatusListener listener)
listener - the listener to addvoid removeStatusListener(FileTransferStatusListener listener)
listener - the listener to removevoid addProgressListener(FileTransferProgressListener listener)
listener - the listener to addvoid removeProgressListener(FileTransferProgressListener listener)
listener - the listener to remove
|
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 | |||||||||