mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 20:42:06 +01:00
Temp
This commit is contained in:
parent
a11552eb63
commit
92117ec00b
3 changed files with 3 additions and 39 deletions
|
@ -30,7 +30,6 @@ import org.jivesoftware.smackx.jingle.JingleTransportMethodManager;
|
||||||
import org.jivesoftware.smackx.jingle.Role;
|
import org.jivesoftware.smackx.jingle.Role;
|
||||||
import org.jivesoftware.smackx.jingle.element.Jingle;
|
import org.jivesoftware.smackx.jingle.element.Jingle;
|
||||||
import org.jivesoftware.smackx.jingle.element.JingleContent;
|
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.JingleTransportInitiationCallback;
|
||||||
import org.jivesoftware.smackx.jingle.transports.JingleTransportManager;
|
import org.jivesoftware.smackx.jingle.transports.JingleTransportManager;
|
||||||
import org.jivesoftware.smackx.jingle_filetransfer.callback.IncomingFileOfferCallback;
|
import org.jivesoftware.smackx.jingle_filetransfer.callback.IncomingFileOfferCallback;
|
||||||
|
@ -47,41 +46,6 @@ public class IncomingJingleFileOffer extends JingleFileTransferSession implement
|
||||||
private ReceiveTask receivingThread;
|
private ReceiveTask receivingThread;
|
||||||
private File target;
|
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 {
|
public enum State {
|
||||||
fresh,
|
fresh,
|
||||||
pending,
|
pending,
|
||||||
|
|
|
@ -83,7 +83,8 @@ public final class JingleFileTransferManager extends Manager implements JingleHa
|
||||||
OutgoingJingleFileOffer offer = new OutgoingJingleFileOffer(connection(), recipient);
|
OutgoingJingleFileOffer offer = new OutgoingJingleFileOffer(connection(), recipient);
|
||||||
JingleManager.getInstanceFor(connection()).registerJingleSessionHandler(recipient, offer.getSessionId(), offer);
|
JingleManager.getInstanceFor(connection()).registerJingleSessionHandler(recipient, offer.getSessionId(), offer);
|
||||||
offer.send(file);
|
offer.send(file);
|
||||||
return offer;
|
//return offer;
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SmackFuture<?> asyncSendFile(FullJid recipient, File file) {
|
public SmackFuture<?> asyncSendFile(FullJid recipient, File file) {
|
||||||
|
|
|
@ -21,14 +21,13 @@ import org.jivesoftware.smackx.jingle.JingleSession;
|
||||||
import org.jivesoftware.smackx.jingle.JingleUtil;
|
import org.jivesoftware.smackx.jingle.JingleUtil;
|
||||||
import org.jivesoftware.smackx.jingle.Role;
|
import org.jivesoftware.smackx.jingle.Role;
|
||||||
import org.jivesoftware.smackx.jingle_filetransfer.element.JingleFileTransfer;
|
import org.jivesoftware.smackx.jingle_filetransfer.element.JingleFileTransfer;
|
||||||
import org.jivesoftware.smackx.jingle_filetransfer.handler.FileTransferHandler;
|
|
||||||
|
|
||||||
import org.jxmpp.jid.FullJid;
|
import org.jxmpp.jid.FullJid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class representing a Jingle session in the context of Jingle File Transfer (XEP-0234).
|
* 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 {
|
public enum Type {
|
||||||
offer,
|
offer,
|
||||||
|
|
Loading…
Reference in a new issue