mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
63 lines
2 KiB
Java
63 lines
2 KiB
Java
/*
|
|
LinphoneCoreImpl.java
|
|
Copyright (C) 2010 Belledonne Communications, Grenoble, France
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
package org.linphone.core;
|
|
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
import java.net.URI;
|
|
|
|
public class LinphoneCoreImpl implements LinphoneCore {
|
|
|
|
private final LinphoneCoreListener mListener;
|
|
private final long nativePtr;
|
|
private native long newLinphoneCore(LinphoneCoreListener listener,String userConfig,String factoryConfig,Object userdata);
|
|
private native void iterate(long nativePtr);
|
|
LinphoneCoreImpl(LinphoneCoreListener listener, File userConfig,File factoryConfig,Object userdata) throws IOException {
|
|
mListener=listener;
|
|
nativePtr = newLinphoneCore(listener,userConfig.getCanonicalPath(),factoryConfig.getCanonicalPath(),userdata);
|
|
}
|
|
|
|
public void addAuthInfo(LinphoneAuthInfo info) {
|
|
// TODO Auto-generated method stub
|
|
|
|
}
|
|
|
|
public LinphoneProxyConfig createProxyConfig(URI identity, URI proxy,URI route) {
|
|
return new LinphoneProxyConfigImpl(identity, proxy, route);
|
|
}
|
|
|
|
public LinphoneProxyConfig getDefaultProxyConfig() {
|
|
// TODO Auto-generated method stub
|
|
return null;
|
|
}
|
|
|
|
public void invite(String url) {
|
|
// TODO Auto-generated method stub
|
|
}
|
|
|
|
public void iterate() {
|
|
iterate(nativePtr);
|
|
}
|
|
|
|
public void setDefaultProxyConfig(LinphoneProxyConfig proxyCfg) {
|
|
// TODO Auto-generated method stub
|
|
|
|
}
|
|
|
|
}
|