public interface FileTransfer
Modifier and Type | Field and Description |
---|---|
static int |
IN
File transfer is incoming.
|
static int |
OUT
File transfer is outgoing.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
getID()
Uniquie ID that is identifying the FileTransfer
if the request has been accepted.
|
java.io.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.
|
static final int IN
static final int OUT
java.lang.String getID()
void cancel()
int getDirection()
java.io.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.
Distributable under Apache license.