diff options
author | Yana Stamcheva <yana@jitsi.org> | 2009-07-28 16:07:46 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2009-07-28 16:07:46 +0000 |
commit | c98f98655f7dd2a7eb21868a08032554fe0c97b9 (patch) | |
tree | b77d9fee0637f4cfc18fb83143c3f5f7538dbabf /src/net/java/sip/communicator/service/protocol/event/FileTransferStatusChangeEvent.java | |
parent | 425a1abaf81dbb9c496296ae51749a2754cd9f30 (diff) | |
download | jitsi-c98f98655f7dd2a7eb21868a08032554fe0c97b9.zip jitsi-c98f98655f7dd2a7eb21868a08032554fe0c97b9.tar.gz jitsi-c98f98655f7dd2a7eb21868a08032554fe0c97b9.tar.bz2 |
- Some improvements in "feature" introducing in Jabber.
- Support for thumbnails in Jabber file transfer.
- Fixed some issues with the calculated file transfer speed and estimated transfer time.
- Shows open and open folder links also on the sender side when the transfer is completed.
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol/event/FileTransferStatusChangeEvent.java')
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/event/FileTransferStatusChangeEvent.java | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/event/FileTransferStatusChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/FileTransferStatusChangeEvent.java index 36b9a97..ee5daf3 100644 --- a/src/net/java/sip/communicator/service/protocol/event/FileTransferStatusChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/FileTransferStatusChangeEvent.java @@ -66,6 +66,11 @@ public class FileTransferStatusChangeEvent private final int newStatus; /** + * The reason of this status change. + */ + private String reason; + + /** * Creates a <tt>FileTransferStatusChangeEvent</tt> by specifying the * source <tt>fileTransfer</tt>, the old transfer status and the new status. * @@ -73,15 +78,18 @@ public class FileTransferStatusChangeEvent * change occured * @param oldStatus the old status * @param newStatus the new status + * @param reason the reason of this status change */ public FileTransferStatusChangeEvent( FileTransfer fileTransfer, int oldStatus, - int newStatus) + int newStatus, + String reason) { super(fileTransfer); this.oldStatus = oldStatus; this.newStatus = newStatus; + this.reason = reason; } /** @@ -113,4 +121,13 @@ public class FileTransferStatusChangeEvent { return newStatus; } + + /** + * Returns the reason of the status change. + * @return the reason of the status change + */ + public String getReason() + { + return reason; + } } |