Skip to content
Snippets Groups Projects
Commit 66a479f7 authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Andreas Traczyk
Browse files

callActionBar: add sip only actions

Change-Id: I1d2af36e958bfc2e8783fb8657387f9d6c00276b
parent e1fbb3a7
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,9 @@ Control {
signal chatClicked
signal addToConferenceClicked
signal transferClicked // TODO: bind this
signal transferClicked
signal resumePauseCallClicked
signal showInputPanelClicked
signal shareScreenClicked
signal stopSharingClicked
signal shareScreenAreaClicked // TODO: bind this
......@@ -186,6 +188,28 @@ Control {
icon.color: "white"
text: JamiStrings.chat
},
Action {
id: resumePauseCallAction
onTriggered: root.resumePauseCallClicked()
icon.source: isPaused ? "qrc:/images/icons/play_circle_outline-24px.svg" :
"qrc:/images/icons/pause_circle_outline-24px.svg"
icon.color: "white"
text: isPaused ? JamiStrings.resumeCall : JamiStrings.pauseCall
},
Action {
id: inputPanelSIPAction
onTriggered: root.showInputPanelClicked()
icon.source: "qrc:/images/icons/ic_keypad.svg"
icon.color: "white"
text: JamiStrings.sipInputPanel
},
Action {
id: callTransferAction
onTriggered: root.transferClicked()
icon.source: "qrc:/images/icons/phone_forwarded-24px.svg"
icon.color: "white"
text: JamiStrings.transferCall
},
Action {
id: shareAction
onTriggered: AvAdapter.currentRenderingDeviceType === Video.DeviceType.DISPLAY ?
......@@ -247,6 +271,11 @@ Control {
CallOverlayModel.addSecondaryControl(audioOutputAction)
if (isModerator && !isSIP)
CallOverlayModel.addSecondaryControl(addPersonAction)
if (isSIP) {
CallOverlayModel.addSecondaryControl(resumePauseCallAction)
CallOverlayModel.addSecondaryControl(inputPanelSIPAction)
CallOverlayModel.addSecondaryControl(callTransferAction)
}
CallOverlayModel.addSecondaryControl(chatAction)
if (!isAudioOnly && !isSIP)
CallOverlayModel.addSecondaryControl(shareAction)
......
......@@ -189,6 +189,8 @@ Item {
function onChatClicked() { root.chatButtonClicked() }
function onAddToConferenceClicked() { openContactPicker(ContactList.CONFERENCE) }
function onTransferClicked() { openContactPicker(ContactList.TRANSFER) }
function onResumePauseCallClicked() { CallAdapter.holdThisCallToggle() }
function onShowInputPanelClicked() { sipInputPanel.open() }
function onShareScreenClicked() { openShareScreen() }
function onStopSharingClicked() { AvAdapter.stopSharing() }
function onShareScreenAreaClicked() { openShareScreenArea() }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment