Commit 78701583 authored by Simon Morlat's avatar Simon Morlat
Browse files

Merge branch 'master' of belledonne-communications.com:linphone-private

parents 34f02389 2c1ed582
......@@ -99,7 +99,7 @@ public interface LinphoneCore {
*/
public void invite(String destination)throws LinphoneCoreException;
public void invite(LinphoneAddress to);
public void invite(LinphoneAddress to)throws LinphoneCoreException;
public void terminateCall();
/**
......
......@@ -22,14 +22,19 @@ package org.linphone.core;
public class LinphoneCoreException extends Exception {
public LinphoneCoreException() {
// TODO Auto-generated constructor stub
}
public LinphoneCoreException(String detailMessage) {
super(detailMessage);
// TODO Auto-generated constructor stub
}
public LinphoneCoreException(Throwable e) {
super(e.getMessage());
}
public LinphoneCoreException(String detailMessage,Throwable e) {
super(detailMessage +" reason ["+e.getMessage()+"]");
}
}
......@@ -19,36 +19,36 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
package org.linphone.core;
import java.io.IOException;
abstract public class LinphoneCoreFactory {
private static String defaulfFactory = "org.linphone.core.LinphoneCoreFactoryImpl";
private static String factoryName = "org.linphone.core.LinphoneCoreFactoryImpl";
static LinphoneCoreFactory theLinphoneCoreFactory;
/**
* Indicate the name of the class used by this factory
* @param pathName
*/
static void setFactoryClassName (String className) {
defaulfFactory = className;
public static void setFactoryClassName (String className) {
factoryName = className;
}
public static LinphoneCoreFactory instance() {
try {
if (theLinphoneCoreFactory == null) {
Class lFactoryClass = Class.forName(defaulfFactory);
Class lFactoryClass = Class.forName(factoryName);
theLinphoneCoreFactory = (LinphoneCoreFactory) lFactoryClass.newInstance();
}
} catch (Exception e) {
System.err.println("cannot instanciate factory ["+defaulfFactory+"]");
System.err.println("cannot instanciate factory ["+factoryName+"]");
}
return theLinphoneCoreFactory;
}
abstract public LinphoneAuthInfo createAuthInfo(String username,String password);
abstract public LinphoneCore createLinphoneCore(LinphoneCoreListener listener, String userConfig,String factoryConfig,Object userdata) throws IOException;
abstract public LinphoneCore createLinphoneCore(LinphoneCoreListener listener, String userConfig,String factoryConfig,Object userdata) throws LinphoneCoreException;
abstract public LinphoneAddress createLinphoneAddress(String username,String domain,String displayName);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment