2017-07-27 17:35:16 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Copyright 2017 Paul Schaub
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
2017-08-14 13:58:48 +02:00
|
|
|
package org.jivesoftware.smackx.jingle_filetransfer.controller;
|
2017-07-27 15:18:18 +02:00
|
|
|
|
2017-07-28 14:02:32 +02:00
|
|
|
import java.io.File;
|
2017-08-15 17:43:06 +02:00
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.OutputStream;
|
2017-07-28 14:02:32 +02:00
|
|
|
|
2017-07-29 19:31:16 +02:00
|
|
|
import org.jivesoftware.smack.SmackException;
|
|
|
|
import org.jivesoftware.smack.XMPPConnection;
|
|
|
|
import org.jivesoftware.smack.XMPPException;
|
|
|
|
|
2017-07-27 15:18:18 +02:00
|
|
|
/**
|
2017-08-13 14:38:53 +02:00
|
|
|
* User interface for an incoming Jingle file offer.
|
2017-07-27 15:18:18 +02:00
|
|
|
*/
|
2017-07-27 16:43:09 +02:00
|
|
|
public interface IncomingFileOfferController extends JingleFileTransferController {
|
2017-08-16 15:36:49 +02:00
|
|
|
|
2017-08-15 17:43:06 +02:00
|
|
|
void accept(XMPPConnection connection, File target) throws InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException, IOException;
|
2017-08-16 15:36:49 +02:00
|
|
|
|
2017-08-15 17:43:06 +02:00
|
|
|
void accept(XMPPConnection connection, OutputStream outputStream) throws InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException, IOException;
|
2017-07-27 15:18:18 +02:00
|
|
|
}
|