|
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.impl.protocol.icq.OperationSetFileTransferIcqImpl
public class OperationSetFileTransferIcqImpl
The ICQ protocol filetransfer OperationSet.
| Constructor Summary | |
|---|---|
OperationSetFileTransferIcqImpl(ProtocolProviderServiceIcqImpl icqProvider)
Create a new FileTransfer OperationSet over the specified Icq provider |
|
| Method Summary | |
|---|---|
void |
addFileTransferListener(FileTransferListener listener)
Adds the given FileTransferListener that would listen for file transfer requests and created file transfers. |
(package private) void |
fireFileTransferCreated(FileTransferCreatedEvent event)
Delivers the file transfer to all registered listeners. |
(package private) void |
fireFileTransferRequestCanceled(FileTransferRequestEvent event)
Delivers the specified event to all registered file transfer listeners. |
(package private) void |
fireFileTransferRequestRejected(FileTransferRequestEvent event)
Delivers the specified event to all registered file transfer listeners. |
long |
getMaximumFileLength()
Returns the maximum file length supported by the protocol in bytes. |
void |
handleNewIncomingConnection(net.kano.joustsim.oscar.oscar.service.icbm.ft.RvConnectionManager manager,
net.kano.joustsim.oscar.oscar.service.icbm.ft.IncomingRvConnection transfer)
Function called when a icq file transfer request arrive |
void |
removeFileTransferListener(FileTransferListener listener)
Removes the given FileTransferListener that listens for file transfer requests and created file transfers. |
FileTransfer |
sendFile(Contact toContact,
Contact fromContact,
String remotePath,
String localPath)
Sends a file transfer request to the given toContact by specifying the local and remote file path and the fromContact, sending the file. |
FileTransfer |
sendFile(Contact toContact,
File file)
Sends a file transfer request to the given toContact by specifying the local and remote file path and the fromContact, sending the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationSetFileTransferIcqImpl(ProtocolProviderServiceIcqImpl icqProvider)
icqProvider - ICQ protocol provider service| Method Detail |
|---|
public FileTransfer sendFile(Contact toContact,
File file)
throws IllegalStateException,
IllegalArgumentException
sendFile in interface OperationSetFileTransfertoContact - the contact that should receive the filefile - the file to send
IllegalStateException - if the protocol provider is not registered
or connected
IllegalArgumentException - if some of the arguments doesn't fit the
protocol requirements
public FileTransfer sendFile(Contact toContact,
Contact fromContact,
String remotePath,
String localPath)
throws IllegalStateException,
IllegalArgumentException
sendFile in interface OperationSetFileTransfertoContact - the contact that should receive the filefromContact - the contact sending the fileremotePath - the remote file pathlocalPath - the local file path
IllegalStateException - if the protocol provider is not registered
or connected
IllegalArgumentException - if some of the arguments doesn't fit the
protocol requirementspublic void addFileTransferListener(FileTransferListener listener)
addFileTransferListener in interface OperationSetFileTransferlistener - the FileTransferListener to addpublic void removeFileTransferListener(FileTransferListener listener)
removeFileTransferListener in interface OperationSetFileTransferlistener - the FileTransferListener to remove
public void handleNewIncomingConnection(net.kano.joustsim.oscar.oscar.service.icbm.ft.RvConnectionManager manager,
net.kano.joustsim.oscar.oscar.service.icbm.ft.IncomingRvConnection transfer)
handleNewIncomingConnection in interface net.kano.joustsim.oscar.oscar.service.icbm.ft.RvConnectionManagerListenermanager - the joustsim managertransfer - the incoming transfervoid fireFileTransferRequestRejected(FileTransferRequestEvent event)
event - the EventObject that we'd like delivered to all
registered file transfer listeners.void fireFileTransferRequestCanceled(FileTransferRequestEvent event)
event - the EventObject that we'd like delivered to all
registered file transfer listeners.void fireFileTransferCreated(FileTransferCreatedEvent event)
event - the FileTransferEvent that we'd like delivered to
all registered file transfer listeners.public long getMaximumFileLength()
getMaximumFileLength in interface OperationSetFileTransfer
|
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 | |||||||||