From a9a5d5d19a65d49fa07819a9434a44dc67d0d775 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Tue, 27 Apr 2010 14:59:03 +0200 Subject: [PATCH] Refactor LinphonecoreFactory --- LinphoneAuthInfoImpl.java | 25 +++++++++++++++++++++++++ LinphoneCoreImpl.java | 5 +---- LinphoneProxyConfigImpl.java | 15 +++++++++++++++ 3 files changed, 41 insertions(+), 4 deletions(-) diff --git a/LinphoneAuthInfoImpl.java b/LinphoneAuthInfoImpl.java index 719101883..fcea4900c 100644 --- a/LinphoneAuthInfoImpl.java +++ b/LinphoneAuthInfoImpl.java @@ -28,4 +28,29 @@ class LinphoneAuthInfoImpl implements LinphoneAuthInfo { protected void finalize() throws Throwable { delete(nativePtr); } + public String getPassword() { + // TODO Auto-generated method stub + throw new RuntimeException("not implemeneted yet"); + } + public String getRealm() { + // TODO Auto-generated method stub + throw new RuntimeException("not implemeneted yet"); + } + public String getUsername() { + // TODO Auto-generated method stub + throw new RuntimeException("not implemeneted yet"); + } + public void setPassword(String password) { + // TODO Auto-generated method stub + throw new RuntimeException("not implemeneted yet"); + + } + public void setRealm(String realm) { + // TODO Auto-generated method stub + throw new RuntimeException("not implemeneted yet"); + } + public void setUsername(String username) { + // TODO Auto-generated method stub + throw new RuntimeException("not implemeneted yet"); + } } diff --git a/LinphoneCoreImpl.java b/LinphoneCoreImpl.java index 9768066cc..d752cfdc0 100644 --- a/LinphoneCoreImpl.java +++ b/LinphoneCoreImpl.java @@ -72,10 +72,7 @@ class LinphoneCoreImpl implements LinphoneCore { addAuthInfo(nativePtr,((LinphoneAuthInfoImpl)info).nativePtr); } - public synchronized LinphoneProxyConfig createProxyConfig(String identity, String proxy,String route,boolean enableRegister) throws LinphoneCoreException { - isValid(); - return new LinphoneProxyConfigImpl(identity, proxy, route,enableRegister); - } + public synchronized LinphoneProxyConfig getDefaultProxyConfig() { isValid(); diff --git a/LinphoneProxyConfigImpl.java b/LinphoneProxyConfigImpl.java index 11e746946..90cc16bfb 100644 --- a/LinphoneProxyConfigImpl.java +++ b/LinphoneProxyConfigImpl.java @@ -97,4 +97,19 @@ class LinphoneProxyConfigImpl implements LinphoneProxyConfig { public void setDialEscapePlus(boolean value) { setDialEscapePlus(nativePtr,value); } + public String getIdentity() { + throw new RuntimeException("not implemeneted yet"); + } + public String getProxy() { + // TODO Auto-generated method stub + throw new RuntimeException("not implemeneted yet"); + } + public boolean isRegistered() { + // TODO Auto-generated method stub + throw new RuntimeException("not implemeneted yet"); + } + public boolean registerEnabled() { + // TODO Auto-generated method stub + throw new RuntimeException("not implemeneted yet"); + } }