blob: 063a0ee1526d9b97f2e61fe9c87ce4442a17c1f6 [file] [log] [blame]
Emeric Vigier9701e032012-09-12 12:38:01 -04001/* ----------------------------------------------------------------------------
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 Vigier05e894e2012-08-20 13:53:02 -04009package com.savoirfairelinux.sflphone.client;
10
Emeric Vigier05e894e2012-08-20 13:53:02 -040011public class ManagerImpl {
Emeric Vigier9701e032012-09-12 12:38:01 -040012 private long swigCPtr;
13 protected boolean swigCMemOwn;
Emeric Vigiera6bdb702012-08-31 15:34:53 -040014
Emeric Vigier9701e032012-09-12 12:38:01 -040015 public ManagerImpl(long cPtr, boolean cMemoryOwn) {
16 swigCMemOwn = cMemoryOwn;
17 swigCPtr = cPtr;
18 }
Emeric Vigier05e894e2012-08-20 13:53:02 -040019
Emeric Vigier9701e032012-09-12 12:38:01 -040020 public static long getCPtr(ManagerImpl obj) {
21 return (obj == null) ? 0 : obj.swigCPtr;
22 }
Emeric Vigier7a255aa2012-08-29 09:49:18 -040023
Emeric Vigier9701e032012-09-12 12:38:01 -040024 protected void finalize() {
25 delete();
26 }
Emeric Vigier05e894e2012-08-20 13:53:02 -040027
Emeric Vigier9701e032012-09-12 12:38:01 -040028 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 Vigier05e894e2012-08-20 13:53:02 -040070}