mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
callActionBar: add sip only actions
Change-Id: I1d2af36e958bfc2e8783fb8657387f9d6c00276b
This commit is contained in:
parent
e1fbb3a7d4
commit
66a479f7b6
2 changed files with 32 additions and 1 deletions
|
@ -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() }
|
||||
|
|
Loading…
Add table
Reference in a new issue