mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 11:38:08 +00:00
Merge branch 'master' of belledonne-communications.com:linphone-private
This commit is contained in:
commit
7870158309
3 changed files with 15 additions and 10 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue