diff options
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.. |