return to call history on end call
This commit is contained in:
parent
7fe1129ea7
commit
fa259d2a31
4 changed files with 16 additions and 0 deletions
|
|
@ -73,6 +73,8 @@ AppWindow {
|
||||||
|
|
||||||
function endCall(callToFinish) {
|
function endCall(callToFinish) {
|
||||||
if (callToFinish) callToFinish.core.lTerminate()
|
if (callToFinish) callToFinish.core.lTerminate()
|
||||||
|
var mainWin = UtilsCpp.getMainWindow()
|
||||||
|
mainWin.goToCallHistory()
|
||||||
}
|
}
|
||||||
function callEnded(call){
|
function callEnded(call){
|
||||||
if (call.core.state === LinphoneEnums.CallState.Error) {
|
if (call.core.state === LinphoneEnums.CallState.Error) {
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,17 @@ Item {
|
||||||
|
|
||||||
signal addAccountRequest()
|
signal addAccountRequest()
|
||||||
signal openNewCall()
|
signal openNewCall()
|
||||||
|
signal openCallHistory()
|
||||||
signal createContactRequested(string name, string address)
|
signal createContactRequested(string name, string address)
|
||||||
|
|
||||||
function goToNewCall() {
|
function goToNewCall() {
|
||||||
tabbar.currentIndex = 0
|
tabbar.currentIndex = 0
|
||||||
mainItem.openNewCall()
|
mainItem.openNewCall()
|
||||||
}
|
}
|
||||||
|
function goToCallHistory() {
|
||||||
|
tabbar.currentIndex = 0
|
||||||
|
mainItem.openCallHistory()
|
||||||
|
}
|
||||||
|
|
||||||
function createContact(name, address) {
|
function createContact(name, address) {
|
||||||
tabbar.currentIndex = 1
|
tabbar.currentIndex = 1
|
||||||
|
|
@ -370,6 +375,7 @@ Item {
|
||||||
Connections {
|
Connections {
|
||||||
target: mainItem
|
target: mainItem
|
||||||
onOpenNewCall: callPage.goToNewCall()
|
onOpenNewCall: callPage.goToNewCall()
|
||||||
|
onOpenCallHistory: callPage.goToCallHistory()
|
||||||
}
|
}
|
||||||
onCreateContactRequested: (name, address) => {
|
onCreateContactRequested: (name, address) => {
|
||||||
mainItem.createContact(name, address)
|
mainItem.createContact(name, address)
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,11 @@ AppWindow {
|
||||||
// color: DefaultStyle.grey_100
|
// color: DefaultStyle.grey_100
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
function goToCallHistory() {
|
||||||
|
console.log("go to call history")
|
||||||
|
mainWindowStackView.replace(mainPage, StackView.Immediate)
|
||||||
|
mainWindowStackView.currentItem.goToCallHistory()
|
||||||
|
}
|
||||||
function goToNewCall() {
|
function goToNewCall() {
|
||||||
mainWindowStackView.replace(mainPage, StackView.Immediate)
|
mainWindowStackView.replace(mainPage, StackView.Immediate)
|
||||||
mainWindowStackView.currentItem.goToNewCall()
|
mainWindowStackView.currentItem.goToNewCall()
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,9 @@ AbstractMainPage {
|
||||||
function goToNewCall() {
|
function goToNewCall() {
|
||||||
listStackView.push(newCallItem)
|
listStackView.push(newCallItem)
|
||||||
}
|
}
|
||||||
|
function goToCallHistory() {
|
||||||
|
listStackView.pop()
|
||||||
|
}
|
||||||
|
|
||||||
Dialog {
|
Dialog {
|
||||||
id: deleteHistoryPopup
|
id: deleteHistoryPopup
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue