1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-23 20:42:06 +01:00
This commit is contained in:
vanitasvitae 2017-07-06 16:53:45 +02:00
parent a11552eb63
commit 92117ec00b
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
3 changed files with 3 additions and 39 deletions

View file

@ -30,7 +30,6 @@ import org.jivesoftware.smackx.jingle.JingleTransportMethodManager;
import org.jivesoftware.smackx.jingle.Role;
import org.jivesoftware.smackx.jingle.element.Jingle;
import org.jivesoftware.smackx.jingle.element.JingleContent;
import org.jivesoftware.smackx.jingle.element.JingleReason;
import org.jivesoftware.smackx.jingle.transports.JingleTransportInitiationCallback;
import org.jivesoftware.smackx.jingle.transports.JingleTransportManager;
import org.jivesoftware.smackx.jingle_filetransfer.callback.IncomingFileOfferCallback;
@ -47,41 +46,6 @@ public class IncomingJingleFileOffer extends JingleFileTransferSession implement
private ReceiveTask receivingThread;
private File target;
@Override
public void cancel() {
}
@Override
public boolean isFinished() {
return false;
}
@Override
public boolean isStarted() {
return false;
}
@Override
public void addEndedListener(EndedListener listener) {
}
@Override
public void addStartedListener(StartedListener listener) {
}
@Override
public void notifyEndedListeners(JingleReason.Reason reason) {
}
@Override
public void notifyStartedListeners() {
}
public enum State {
fresh,
pending,

View file

@ -83,7 +83,8 @@ public final class JingleFileTransferManager extends Manager implements JingleHa
OutgoingJingleFileOffer offer = new OutgoingJingleFileOffer(connection(), recipient);
JingleManager.getInstanceFor(connection()).registerJingleSessionHandler(recipient, offer.getSessionId(), offer);
offer.send(file);
return offer;
//return offer;
return null;
}
public SmackFuture<?> asyncSendFile(FullJid recipient, File file) {

View file

@ -21,14 +21,13 @@ import org.jivesoftware.smackx.jingle.JingleSession;
import org.jivesoftware.smackx.jingle.JingleUtil;
import org.jivesoftware.smackx.jingle.Role;
import org.jivesoftware.smackx.jingle_filetransfer.element.JingleFileTransfer;
import org.jivesoftware.smackx.jingle_filetransfer.handler.FileTransferHandler;
import org.jxmpp.jid.FullJid;
/**
* Class representing a Jingle session in the context of Jingle File Transfer (XEP-0234).
*/
public abstract class JingleFileTransferSession extends JingleSession implements FileTransferHandler {
public abstract class JingleFileTransferSession extends JingleSession {
public enum Type {
offer,