Smack/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_filetransfer/controller/JingleFileTransferControlle...

38 lines
1.3 KiB
Java
Raw Normal View History

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 16:43:09 +02:00
2017-08-20 13:46:30 +02:00
import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.XMPPConnection;
2017-08-14 22:15:23 +02:00
import org.jivesoftware.smackx.jingle.JingleDescriptionController;
import org.jivesoftware.smackx.jingle_filetransfer.component.JingleFile;
2017-08-14 13:58:48 +02:00
import org.jivesoftware.smackx.jingle_filetransfer.listener.ProgressListener;
2017-07-27 16:43:09 +02:00
/**
2017-08-13 19:44:02 +02:00
* User interface for Jingle file transfers.
2017-07-27 16:43:09 +02:00
*/
public interface JingleFileTransferController extends JingleDescriptionController {
void addProgressListener(ProgressListener listener);
void removeProgressListener(ProgressListener listener);
2017-07-27 17:35:16 +02:00
JingleFile getMetadata();
2017-08-16 15:36:49 +02:00
2017-08-20 13:46:30 +02:00
void cancel(XMPPConnection connection) throws SmackException.NotConnectedException, InterruptedException;
2017-07-27 16:43:09 +02:00
}