Refactor LinphonecoreFactory

This commit is contained in:
Jehan Monnier 2010-04-27 14:59:03 +02:00
parent bf88d70ea3
commit a9a5d5d19a
3 changed files with 41 additions and 4 deletions

View file

@ -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");
}
}

View file

@ -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();

View file

@ -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");
}
}