diff options
author | Damian Minkov <damencho@jitsi.org> | 2014-09-03 10:52:38 +0300 |
---|---|---|
committer | paweldomas <pawel.domas@jitsi.org> | 2014-09-08 17:17:08 +0200 |
commit | 8f03b8181b6716d1f2477bc54eff1c176daad521 (patch) | |
tree | a5e69cb840aaaf892db9ccce8a59e7b506f7c3f0 /src/net/java/sip/communicator/service | |
parent | ca4c320de9ccb3dce96601bb620d21b62a23bab1 (diff) | |
download | jitsi-8f03b8181b6716d1f2477bc54eff1c176daad521.zip jitsi-8f03b8181b6716d1f2477bc54eff1c176daad521.tar.gz jitsi-8f03b8181b6716d1f2477bc54eff1c176daad521.tar.bz2 |
Adds file transfer for multimedia msgs to operation set sms.
Diffstat (limited to 'src/net/java/sip/communicator/service')
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/OperationSetSmsMessaging.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/OperationSetSmsMessaging.java b/src/net/java/sip/communicator/service/protocol/OperationSetSmsMessaging.java index 25a025f..c102b39 100644 --- a/src/net/java/sip/communicator/service/protocol/OperationSetSmsMessaging.java +++ b/src/net/java/sip/communicator/service/protocol/OperationSetSmsMessaging.java @@ -8,6 +8,8 @@ package net.java.sip.communicator.service.protocol; import net.java.sip.communicator.service.protocol.event.*; +import java.io.*; + /** * Provides basic functionality for sending and receiving SMS Messages. * @@ -73,6 +75,23 @@ public interface OperationSetSmsMessaging throws IllegalStateException, IllegalArgumentException; /** + * Sends the <tt>file</tt> to the destination indicated by the + * <tt>to</tt> parameter. + * @param to the destination to send <tt>message</tt> to + * @param file the <tt>file</tt> to send. + * @throws java.lang.IllegalStateException if the underlying stack is + * not registered and initialized. + * @throws java.lang.IllegalArgumentException if <tt>to</tt> is not an + * instance belonging to the underlying implementation. + * @throws OperationNotSupportedException if the given contact client or + * server does not support file transfers + */ + public FileTransfer sendMultimediaFile(Contact to, File file) + throws IllegalStateException, + IllegalArgumentException, + OperationNotSupportedException; + + /** * Registers a MessageListener with this operation set so that it gets * notifications of successful message delivery, failure or reception of * incoming messages.. |