2010-05-26 00:48:33 +00:00
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
|
|
* Version 1.3.39
|
|
|
|
*
|
|
|
|
* 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 SipCallback {
|
|
|
|
private long swigCPtr;
|
|
|
|
protected boolean swigCMemOwn;
|
|
|
|
|
|
|
|
protected SipCallback(long cPtr, boolean cMemoryOwn) {
|
|
|
|
swigCMemOwn = cMemoryOwn;
|
|
|
|
swigCPtr = cPtr;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected static long getCPtr(SipCallback obj) {
|
|
|
|
return (obj == null) ? 0 : obj.swigCPtr;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected void finalize() {
|
|
|
|
delete();
|
|
|
|
}
|
|
|
|
|
|
|
|
public synchronized void delete() {
|
|
|
|
if(swigCPtr != 0 && swigCMemOwn) {
|
|
|
|
swigCMemOwn = false;
|
|
|
|
tinyWRAPJNI.delete_SipCallback(swigCPtr);
|
|
|
|
}
|
|
|
|
swigCPtr = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected void swigDirectorDisconnect() {
|
|
|
|
swigCMemOwn = false;
|
|
|
|
delete();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void swigReleaseOwnership() {
|
|
|
|
swigCMemOwn = false;
|
|
|
|
tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, false);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void swigTakeOwnership() {
|
|
|
|
swigCMemOwn = true;
|
|
|
|
tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
public SipCallback() {
|
|
|
|
this(tinyWRAPJNI.new_SipCallback(), true);
|
|
|
|
tinyWRAPJNI.SipCallback_director_connect(this, swigCPtr, swigCMemOwn, false);
|
|
|
|
}
|
|
|
|
|
|
|
|
public int OnRegistrationChanged(RegistrationEvent e) {
|
|
|
|
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnRegistrationChanged(swigCPtr, this, RegistrationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnRegistrationChangedSwigExplicitSipCallback(swigCPtr, this, RegistrationEvent.getCPtr(e), e);
|
|
|
|
}
|
|
|
|
|
|
|
|
public int OnSubscriptionChanged(SubscriptionEvent e) {
|
|
|
|
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionChanged(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|