mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-02 19:29:27 +00:00
add clear history to call history tab
This commit is contained in:
parent
d4015a2afb
commit
7cef363a17
3 changed files with 19 additions and 3 deletions
|
|
@ -30,6 +30,7 @@ public class LinphoneAddressImpl implements LinphoneAddress {
|
|||
private native String getDomain(long ptr);
|
||||
private native String toUri(long ptr);
|
||||
private native String setDisplayName(long ptr,String name);
|
||||
private native String toString(long ptr);
|
||||
|
||||
|
||||
protected LinphoneAddressImpl(String username,String domain,String displayName) {
|
||||
|
|
@ -53,7 +54,7 @@ public class LinphoneAddressImpl implements LinphoneAddress {
|
|||
}
|
||||
|
||||
public String toString() {
|
||||
return toUri();
|
||||
return toString(nativePtr);
|
||||
}
|
||||
public String toUri() {
|
||||
return toUri(nativePtr);
|
||||
|
|
|
|||
|
|
@ -160,6 +160,13 @@ public interface LinphoneCore {
|
|||
* @throws If no LinphonrAddress can be built from destination
|
||||
*/
|
||||
public LinphoneAddress interpretUrl(String destination) throws LinphoneCoreException;
|
||||
|
||||
|
||||
/**
|
||||
* Initiate a dtmf signal if in call
|
||||
* @param number
|
||||
*/
|
||||
public void sendDtmf(char number);
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public void clearCallLogs();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
private native void muteMic(long nativePtr,boolean isMuted);
|
||||
private native long interpretUrl(long nativePtr,String destination);
|
||||
private native void inviteAddress(long nativePtr,long to);
|
||||
private native void sendDtmf(long nativePtr,char dtmf);
|
||||
private native void clearCallLogs(long nativePtr);
|
||||
|
||||
|
||||
LinphoneCoreImpl(LinphoneCoreListener listener, File userConfig,File factoryConfig,Object userdata) throws IOException {
|
||||
|
|
@ -182,4 +184,10 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
public void invite(LinphoneAddress to) {
|
||||
inviteAddress(nativePtr,((LinphoneAddressImpl)to).nativePtr);
|
||||
}
|
||||
public void sendDtmf(char number) {
|
||||
sendDtmf(nativePtr,number);
|
||||
}
|
||||
public void clearCallLogs() {
|
||||
clearCallLogs(nativePtr);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue