|
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.Objectnet.java.sip.communicator.service.protocol.AbstractFileTransfer
net.java.sip.communicator.impl.protocol.mock.MockFileTransferImpl
public class MockFileTransferImpl
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.FileTransfer |
|---|
IN, OUT |
| Constructor Summary | |
|---|---|
MockFileTransferImpl(Contact c,
File file,
String id,
int direction)
|
|
| Method Summary | |
|---|---|
void |
cancel()
Cancels this file transfer. |
void |
fireStatusChangeEvent(int newStatus)
Notifies all status listeners that a new FileTransferStatusChangeEvent occured. |
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. |
long |
getTransferedBytes()
Returns the number of bytes already transfered through this file transfer. |
| Methods inherited from class net.java.sip.communicator.service.protocol.AbstractFileTransfer |
|---|
addProgressListener, addStatusListener, fireProgressChangeEvent, fireStatusChangeEvent, getStatus, removeProgressListener, removeStatusListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockFileTransferImpl(Contact c,
File file,
String id,
int direction)
| Method Detail |
|---|
public void fireStatusChangeEvent(int newStatus)
fireStatusChangeEvent in class AbstractFileTransfernewStatus - the new statuspublic void cancel()
AbstractFileTransfer
cancel in interface FileTransfercancel in class AbstractFileTransferpublic long getTransferedBytes()
AbstractFileTransfer
getTransferedBytes in interface FileTransfergetTransferedBytes in class AbstractFileTransferpublic String getID()
FileTransfer
public int getDirection()
FileTransfer
public File getLocalFile()
FileTransfer
public Contact getContact()
FileTransfer
|
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 | |||||||||