doubango/branches/2.0/doubango/bindings/java/InviteSession.java

72 lines
2.0 KiB
Java

/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.doubango.tinyWRAP;
public class InviteSession extends SipSession {
private long swigCPtr;
public InviteSession(long cPtr, boolean cMemoryOwn) {
super(tinyWRAPJNI.InviteSession_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
public static long getCPtr(InviteSession obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPJNI.delete_InviteSession(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public InviteSession(SipStack Stack) {
this(tinyWRAPJNI.new_InviteSession(SipStack.getCPtr(Stack), Stack), true);
}
public boolean accept(ActionConfig config) {
return tinyWRAPJNI.InviteSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
}
public boolean accept() {
return tinyWRAPJNI.InviteSession_accept__SWIG_1(swigCPtr, this);
}
public boolean hangup(ActionConfig config) {
return tinyWRAPJNI.InviteSession_hangup__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
}
public boolean hangup() {
return tinyWRAPJNI.InviteSession_hangup__SWIG_1(swigCPtr, this);
}
public boolean reject(ActionConfig config) {
return tinyWRAPJNI.InviteSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
}
public boolean reject() {
return tinyWRAPJNI.InviteSession_reject__SWIG_1(swigCPtr, this);
}
public MediaSessionMgr getMediaMgr() {
long cPtr = tinyWRAPJNI.InviteSession_getMediaMgr(swigCPtr, this);
return (cPtr == 0) ? null : new MediaSessionMgr(cPtr, false);
}
}