Emeric Vigier | 9701e03 | 2012-09-12 12:38:01 -0400 | [diff] [blame^] | 1 | /* ---------------------------------------------------------------------------- |
| 2 | * This file was automatically generated by SWIG (http://www.swig.org). |
| 3 | * Version 2.0.4 |
| 4 | * |
| 5 | * Do not make changes to this file unless you know what you are doing--modify |
| 6 | * the SWIG interface file instead. |
| 7 | * ----------------------------------------------------------------------------- */ |
| 8 | |
Emeric Vigier | 05e894e | 2012-08-20 13:53:02 -0400 | [diff] [blame] | 9 | package com.savoirfairelinux.sflphone.client; |
| 10 | |
Emeric Vigier | 05e894e | 2012-08-20 13:53:02 -0400 | [diff] [blame] | 11 | public class ManagerImpl { |
Emeric Vigier | 9701e03 | 2012-09-12 12:38:01 -0400 | [diff] [blame^] | 12 | private long swigCPtr; |
| 13 | protected boolean swigCMemOwn; |
Emeric Vigier | a6bdb70 | 2012-08-31 15:34:53 -0400 | [diff] [blame] | 14 | |
Emeric Vigier | 9701e03 | 2012-09-12 12:38:01 -0400 | [diff] [blame^] | 15 | public ManagerImpl(long cPtr, boolean cMemoryOwn) { |
| 16 | swigCMemOwn = cMemoryOwn; |
| 17 | swigCPtr = cPtr; |
| 18 | } |
Emeric Vigier | 05e894e | 2012-08-20 13:53:02 -0400 | [diff] [blame] | 19 | |
Emeric Vigier | 9701e03 | 2012-09-12 12:38:01 -0400 | [diff] [blame^] | 20 | public static long getCPtr(ManagerImpl obj) { |
| 21 | return (obj == null) ? 0 : obj.swigCPtr; |
| 22 | } |
Emeric Vigier | 7a255aa | 2012-08-29 09:49:18 -0400 | [diff] [blame] | 23 | |
Emeric Vigier | 9701e03 | 2012-09-12 12:38:01 -0400 | [diff] [blame^] | 24 | protected void finalize() { |
| 25 | delete(); |
| 26 | } |
Emeric Vigier | 05e894e | 2012-08-20 13:53:02 -0400 | [diff] [blame] | 27 | |
Emeric Vigier | 9701e03 | 2012-09-12 12:38:01 -0400 | [diff] [blame^] | 28 | public synchronized void delete() { |
| 29 | if (swigCPtr != 0) { |
| 30 | if (swigCMemOwn) { |
| 31 | swigCMemOwn = false; |
| 32 | sflphoneserviceJNI.delete_ManagerImpl(swigCPtr); |
| 33 | } |
| 34 | swigCPtr = 0; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | public void init(String config_file) { |
| 39 | sflphoneserviceJNI.ManagerImpl_init(swigCPtr, this, config_file); |
| 40 | } |
| 41 | |
| 42 | public void setPath(String path) { |
| 43 | sflphoneserviceJNI.ManagerImpl_setPath(swigCPtr, this, path); |
| 44 | } |
| 45 | |
| 46 | public boolean outgoingCall(String arg0, String arg1, String arg2, String arg3) { |
| 47 | return sflphoneserviceJNI.ManagerImpl_outgoingCall__SWIG_0(swigCPtr, this, arg0, arg1, arg2, arg3); |
| 48 | } |
| 49 | |
| 50 | public boolean outgoingCall(String arg0, String arg1, String arg2) { |
| 51 | return sflphoneserviceJNI.ManagerImpl_outgoingCall__SWIG_1(swigCPtr, this, arg0, arg1, arg2); |
| 52 | } |
| 53 | |
| 54 | public void refuseCall(String id) { |
| 55 | sflphoneserviceJNI.ManagerImpl_refuseCall(swigCPtr, this, id); |
| 56 | } |
| 57 | |
| 58 | public boolean answerCall(String id) { |
| 59 | return sflphoneserviceJNI.ManagerImpl_answerCall(swigCPtr, this, id); |
| 60 | } |
| 61 | |
| 62 | public void hangupCall(String id) { |
| 63 | sflphoneserviceJNI.ManagerImpl_hangupCall(swigCPtr, this, id); |
| 64 | } |
| 65 | |
| 66 | public ManagerImpl() { |
| 67 | this(sflphoneserviceJNI.new_ManagerImpl(), true); |
| 68 | } |
| 69 | |
Emeric Vigier | 05e894e | 2012-08-20 13:53:02 -0400 | [diff] [blame] | 70 | } |