diff options
author | Yana Stamcheva <yana@jitsi.org> | 2009-07-16 11:29:35 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2009-07-16 11:29:35 +0000 |
commit | 41f655c482a6bab557f8dea5ab4c8b40560c8752 (patch) | |
tree | 652ff8f45c0714ea90ebadba85cfb6126ea7bfd1 /src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java | |
parent | fba5784542c884691a52bdc596652776ac34f219 (diff) | |
download | jitsi-41f655c482a6bab557f8dea5ab4c8b40560c8752.zip jitsi-41f655c482a6bab557f8dea5ab4c8b40560c8752.tar.gz jitsi-41f655c482a6bab557f8dea5ab4c8b40560c8752.tar.bz2 |
File transfer related changes as follows:
- show transfer speed and estimated transfer time.
- introduced new event that notifies the gui when a file transfer request has been cancelled by the sender.
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java b/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java index 64a7ea8..d2b6fda 100644 --- a/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java @@ -273,8 +273,10 @@ public class OperationSetFileTransferJabberImpl // Create an event associated to this global request. FileTransferRequestEvent fileTransferRequestEvent - = new FileTransferRequestEvent( incomingFileTransferRequest, - requestDate); + = new FileTransferRequestEvent( + OperationSetFileTransferJabberImpl.this, + incomingFileTransferRequest, + requestDate); // Notify the global listener that a request has arrived. fireFileTransferRequest(fileTransferRequestEvent); @@ -403,7 +405,8 @@ public class OperationSetFileTransferJabberImpl } fileTransfer.fireStatusChangeEvent(status); - fileTransfer.fireProgressChangeEvent((int)progress); + fileTransfer.fireProgressChangeEvent( + System.currentTimeMillis(), (int) progress); } catch (InterruptedException e) { @@ -419,7 +422,8 @@ public class OperationSetFileTransferJabberImpl } fileTransfer.fireStatusChangeEvent(status); - fileTransfer.fireProgressChangeEvent((int)progress); + fileTransfer.fireProgressChangeEvent( + System.currentTimeMillis(), (int) progress); } } |