public class IncomingFileTransferRequestIcqImpl extends java.lang.Object implements IncomingFileTransferRequest
Constructor and Description |
---|
IncomingFileTransferRequestIcqImpl(ProtocolProviderServiceIcqImpl icqProvider,
OperationSetFileTransferIcqImpl fileTransferOpSet,
net.kano.joustsim.oscar.oscar.service.icbm.ft.IncomingFileTransfer fileTransfer,
Contact sender,
java.util.Date date)
Constructor
|
Modifier and Type | Method and Description |
---|---|
FileTransfer |
acceptFile(java.io.File file)
Function called to accept and receive the file.
|
java.lang.String |
getFileDescription()
Returns a String that represents the description of the file that is
being received.
|
java.lang.String |
getFileName()
Returns a String that represents the name of the file that is being
received.
|
long |
getFileSize()
Returns a long that represents the size of the file that is being
received.
|
java.lang.String |
getID()
Unique ID that is identifying the request and then the FileTransfer
if the request has been accepted.
|
Contact |
getSender()
Returns a String that represents the name of the sender of the file
being received.
|
byte[] |
getThumbnail()
Returns the thumbnail contained in this request.
|
void |
rejectFile()
Function called to refuse the file.
|
public IncomingFileTransferRequestIcqImpl(ProtocolProviderServiceIcqImpl icqProvider, OperationSetFileTransferIcqImpl fileTransferOpSet, net.kano.joustsim.oscar.oscar.service.icbm.ft.IncomingFileTransfer fileTransfer, Contact sender, java.util.Date date)
fileTransfer
- icq file transfer request that was receivedpublic java.lang.String getID()
getID
in interface IncomingFileTransferRequest
public java.lang.String getFileName()
getFileName
in interface IncomingFileTransferRequest
public java.lang.String getFileDescription()
getFileDescription
in interface IncomingFileTransferRequest
public long getFileSize()
getFileSize
in interface IncomingFileTransferRequest
public Contact getSender()
getSender
in interface IncomingFileTransferRequest
public FileTransfer acceptFile(java.io.File file)
acceptFile
in interface IncomingFileTransferRequest
file
- the file to acceptpublic void rejectFile()
rejectFile
in interface IncomingFileTransferRequest
public byte[] getThumbnail()
getThumbnail
in interface IncomingFileTransferRequest
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.