|
SIP Communicator: 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.jabber.OutgoingFileTransferJabberImpl
public class OutgoingFileTransferJabberImpl
The Jabber protocol extension of the AbstractFileTransfer.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.FileTransfer |
|---|
IN, OUT |
| Constructor Summary | |
|---|---|
OutgoingFileTransferJabberImpl(Contact receiver,
File file,
org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer jabberTransfer,
ProtocolProviderServiceJabberImpl protocolProvider)
Creates an OutgoingFileTransferJabberImpl by specifying the receiver contact, the file, the jabberTransfer, that would be used to send the file through Jabber and the protocolProvider. |
|
| Method Summary | |
|---|---|
void |
cancel()
Cancels the file transfer. |
Contact |
getContact()
The contact we are sending the file. |
int |
getDirection()
The direction is outgoing. |
String |
getID()
The unique id. |
File |
getLocalFile()
Returns the local file that is being transferred or to which we transfer. |
long |
getTransferedBytes()
Returns the number of bytes already sent to the recipient. |
void |
interceptPacket(org.jivesoftware.smack.packet.Packet packet)
Listens for all StreamInitiation packets and adds a thumbnail to them if a thumbnailed file is supported. |
void |
removeThumbnailRequestListener()
Removes previously added thumbnail request listener. |
| Methods inherited from class net.java.sip.communicator.service.protocol.AbstractFileTransfer |
|---|
addProgressListener, addStatusListener, fireProgressChangeEvent, fireStatusChangeEvent, 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 OutgoingFileTransferJabberImpl(Contact receiver,
File file,
org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer jabberTransfer,
ProtocolProviderServiceJabberImpl protocolProvider)
receiver - the destination contactfile - the file to sendjabberTransfer - the Jabber transfer object, containing all transfer
informationprotocolProvider - the parent protocol provider| Method Detail |
|---|
public void cancel()
cancel in interface FileTransfercancel in class AbstractFileTransferpublic long getTransferedBytes()
getTransferedBytes in interface FileTransfergetTransferedBytes in class AbstractFileTransferpublic int getDirection()
getDirection in interface FileTransferpublic File getLocalFile()
getLocalFile in interface FileTransferpublic Contact getContact()
getContact in interface FileTransferpublic String getID()
getID in interface FileTransferpublic void removeThumbnailRequestListener()
public void interceptPacket(org.jivesoftware.smack.packet.Packet packet)
interceptPacket in interface org.jivesoftware.smack.PacketInterceptorPacketInterceptor.interceptPacket(Packet)
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||