]> sjero.net Git - linphone/commitdiff
implement enablePublish
authorJehan Monnier <jehan.monnier@linphone.org>
Mon, 6 Dec 2010 10:40:28 +0000 (11:40 +0100)
committerJehan Monnier <jehan.monnier@linphone.org>
Mon, 6 Dec 2010 10:40:28 +0000 (11:40 +0100)
LinphoneCoreImpl.java
LinphoneProxyConfigImpl.java

index 01b98bda4ce06f2d003218c13bee61825b8faec7..5aa6a1ce0091f48f134a2c0df245d048f75784ad 100644 (file)
@@ -179,7 +179,7 @@ class LinphoneCoreImpl implements LinphoneCore {
                        throw new RuntimeException("object already destroyed");
                }
        }
-       public void setNetworkStateReachable(boolean isReachable) {
+       public void setNetworkReachable(boolean isReachable) {
                setNetworkStateReachable(nativePtr,isReachable);
        }
        public void setPlaybackGain(float gain) {
@@ -344,6 +344,21 @@ class LinphoneCoreImpl implements LinphoneCore {
        public LinphoneCallParams createDefaultCallParameters() {
                throw new RuntimeException("Not Implemenetd yet");
        }
+       public boolean isNetworkReachable() {
+               throw new RuntimeException("Not Implemenetd yet");
+       }
+       public void setUploadBandwidth(int bw) {
+               throw new RuntimeException("Not Implemenetd yet");
+       }
+       public void setDownloadBandwidth(int bw) {
+               throw new RuntimeException("Not Implemenetd yet");
+       }
+       public void setPreferredVideoSize(VideoSize vSize) {
+               throw new RuntimeException("Not Implemenetd yet");
+       }
+       public VideoSize getPreferredVideoSize() {
+               throw new RuntimeException("Not Implemenetd yet");
+       }
        
 
 }
index f1dcb70a477711e12a7289b77114ba5c30c588c9..1b718d5a7d7367b96504428bd21c20ce2900960e 100644 (file)
@@ -67,6 +67,9 @@ class LinphoneProxyConfigImpl implements LinphoneProxyConfig {
        
        private native String getRoute(long ptr);
        private native int setRoute(long ptr,String uri);
+       private native void enablePublish(long ptr,boolean enable);
+       private native boolean publishEnabled(long ptr);
+       
        
        public void enableRegister(boolean value) {
                enableRegister(nativePtr,value);
@@ -121,4 +124,11 @@ class LinphoneProxyConfigImpl implements LinphoneProxyConfig {
                        throw new LinphoneCoreException("cannot set route ["+routeUri+"]");
                }
        }
+       public void enablePublish(boolean enable) {
+               enablePublish(nativePtr,enable);
+               
+       }
+       public boolean publishEnabled() {
+               return publishEnabled(nativePtr); 
+       }
 }