This commit is contained in:
Gaelle Braud 2024-07-09 14:24:22 +02:00
parent 4927a02c93
commit f97ca67a56
21 changed files with 64 additions and 70 deletions

View file

@ -76,10 +76,10 @@ bool ConferenceInfoProxy::filterAcceptsRow(int sourceRow, const QModelIndex &sou
if (ciCore) { if (ciCore) {
bool searchTextInSubject = false; bool searchTextInSubject = false;
bool searchTextInParticipant = false; bool searchTextInParticipant = false;
if (ciCore->getSubject().toLower().contains(mSearchText.toLower())) searchTextInSubject = true; if (ciCore->getSubject().contains(mSearchText, Qt::CaseInsensitive)) searchTextInSubject = true;
for (auto &contact : ciCore->getParticipants()) { for (auto &contact : ciCore->getParticipants()) {
auto infos = contact.toMap(); auto infos = contact.toMap();
if (infos["displayName"].toString().toLower().contains(mSearchText.toLower())) { if (infos["displayName"].toString().contains(mSearchText, Qt::CaseInsensitive)) {
searchTextInParticipant = true; searchTextInParticipant = true;
break; break;
} }

View file

@ -176,15 +176,15 @@ QVariant MagicSearchList::data(const QModelIndex &index, int role) const {
int MagicSearchList::findFriendIndexByAddress(const QString &address) { int MagicSearchList::findFriendIndexByAddress(const QString &address) {
int i = 0; int i = 0;
qDebug() << "LOOKING FOR ADDRESS" << address; qDebug() << "[MagicSearchList] LOOKING FOR ADDRESS" << address;
for (auto &item : mList) { for (auto &item : mList) {
qDebug() << "item" << item; qDebug() << "item" << item;
auto isFriendCore = item.objectCast<FriendCore>(); auto isFriendCore = item.objectCast<FriendCore>();
if (!isFriendCore) continue; if (!isFriendCore) continue;
qDebug() << "SEARCH IN FRIEND" << isFriendCore->getDisplayName(); qDebug() << "[MagicSearchList] SEARCH IN FRIEND" << isFriendCore->getDisplayName();
for (auto &friendAddress : isFriendCore->getAllAddresses()) { for (auto &friendAddress : isFriendCore->getAllAddresses()) {
auto map = friendAddress.toMap(); auto map = friendAddress.toMap();
qDebug() << "COMPARE" << map["address"].toString(); // qDebug() << "COMPARE" << map["address"].toString();
if (map["address"].toString() == address) { if (map["address"].toString() == address) {
return i; return i;
} }

View file

@ -130,7 +130,7 @@ bool ToolModel::createCall(const QString &sipAddress,
} }
for (auto &account : core->getAccountList()) { for (auto &account : core->getAccountList()) {
if (account->getContactAddress() && account->getContactAddress()->weakEqual(address)) { if (account->getContactAddress() && account->getContactAddress()->weakEqual(address)) {
if (errorMessage) *errorMessage = "The calling address is a connected account."; if (errorMessage) *errorMessage = tr("The calling address is a connected account.");
lDebug() << "[" + QString(gClassName) + "]" + *errorMessage; lDebug() << "[" + QString(gClassName) + "]" + *errorMessage;
return false; return false;
} }

View file

@ -115,8 +115,8 @@ AppWindow {
Connections { Connections {
enabled: !!call enabled: !!call
target: call && call.core target: call && call.core
onRemoteVideoEnabledChanged: console.log("remote video enabled", call.core.remoteVideoEnabled) function onRemoteVideoEnabledChanged() { console.log("remote video enabled", call.core.remoteVideoEnabled)}
onSecurityUpdated: { function onSecurityUpdated() {
if (call.core.encryption != LinphoneEnums.MediaEncryption.Zrtp || call.core.tokenVerified) { if (call.core.encryption != LinphoneEnums.MediaEncryption.Zrtp || call.core.tokenVerified) {
zrtpValidation.close() zrtpValidation.close()
} }
@ -693,9 +693,6 @@ AppWindow {
? modelData.core.conference.core.subject ? modelData.core.conference.core.subject
: remoteAddress ? remoteAddress.value : "" : remoteAddress ? remoteAddress.value : ""
Layout.leftMargin: 8 * DefaultStyle.dp Layout.leftMargin: 8 * DefaultStyle.dp
Connections {
target: modelData.core
}
} }
Item { Item {
Layout.fillHeight: true Layout.fillHeight: true
@ -823,7 +820,7 @@ AppWindow {
Connections { Connections {
target: rightPanel target: rightPanel
onReturnRequested: participantsStack.pop() function onReturnRequested(){ participantsStack.pop()}
} }
Component { Component {
@ -866,13 +863,13 @@ AppWindow {
} }
Connections { Connections {
target: participantsStack target: participantsStack
onCurrentItemChanged: { function onCurrentItemChanged() {
if (participantsStack.currentItem == participantList) rightPanel.headerTitleText = qsTr("Participants (%1)").arg(participantList.count) if (participantsStack.currentItem == participantList) rightPanel.headerTitleText = qsTr("Participants (%1)").arg(participantList.count)
} }
} }
Connections { Connections {
target: rightPanel target: rightPanel
onValidateRequested: { function onValidateRequested() {
participantList.model.addAddresses(participantsStack.selectedParticipants) participantList.model.addAddresses(participantsStack.selectedParticipants)
participantsStack.pop() participantsStack.pop()
participantsStack.participantAdded() participantsStack.participantAdded()
@ -892,7 +889,7 @@ AppWindow {
} }
Connections { Connections {
target: participantsStack target: participantsStack
onCurrentItemChanged: { function onCurrentItemChanged() {
if (participantsStack.currentItem == addParticipantLayout) { if (participantsStack.currentItem == addParticipantLayout) {
rightPanel.headerTitleText = qsTr("Ajouter des participants") rightPanel.headerTitleText = qsTr("Ajouter des participants")
rightPanel.headerSubtitleText = qsTr("%1 participant%2 sélectionné%2").arg(addParticipantLayout.selectedParticipants.length).arg(addParticipantLayout.selectedParticipants.length > 1 ? "s" : "") rightPanel.headerSubtitleText = qsTr("%1 participant%2 sélectionné%2").arg(addParticipantLayout.selectedParticipants.length).arg(addParticipantLayout.selectedParticipants.length > 1 ? "s" : "")
@ -1155,11 +1152,11 @@ AppWindow {
} }
Connections { Connections {
target: rightPanel target: rightPanel
onVisibleChanged: if (!visible) waitingRoomIn.settingsButtonChecked = false function onVisibleChanged(){ if (!visible) waitingRoomIn.settingsButtonChecked = false}
} }
Connections { Connections {
target:mainWindow target:mainWindow
onSetUpConferenceRequested: (conferenceInfo) => { function onSetUpConferenceRequested(conferenceInfo) {
waitingRoomIn.conferenceInfo = conferenceInfo waitingRoomIn.conferenceInfo = conferenceInfo
} }
} }
@ -1204,8 +1201,8 @@ AppWindow {
Connections { Connections {
target: mainWindow target: mainWindow
onCallStateChanged: bottomButtonsLayout.refreshLayout() function onCallStateChanged(){ bottomButtonsLayout.refreshLayout()}
onCallChanged: bottomButtonsLayout.refreshLayout() function onCallChanged(){ bottomButtonsLayout.refreshLayout()}
} }
function setButtonsEnabled(enabled) { function setButtonsEnabled(enabled) {
for(var i=0; i < children.length; ++i) { for(var i=0; i < children.length; ++i) {
@ -1285,7 +1282,7 @@ AppWindow {
} }
Connections { Connections {
target: rightPanel target: rightPanel
onVisibleChanged: if(!rightPanel.visible) transferCallButton.checked = false function onVisibleChanged(){ if(!rightPanel.visible) transferCallButton.checked = false}
} }
} }
CheckableButton { CheckableButton {
@ -1404,7 +1401,7 @@ AppWindow {
popup.x: width/2 popup.x: width/2
Connections { Connections {
target: moreOptionsButton.popup target: moreOptionsButton.popup
onOpened: { function onOpened() {
moreOptionsButton.popup.y = - moreOptionsButton.popup.height - moreOptionsButton.popup.padding moreOptionsButton.popup.y = - moreOptionsButton.popup.height - moreOptionsButton.popup.padding
} }
} }

View file

@ -379,8 +379,8 @@ Item {
id: callPage id: callPage
Connections { Connections {
target: mainItem target: mainItem
onOpenNewCall: callPage.goToNewCall() function onOpenNewCall(){ callPage.goToNewCall()}
onOpenCallHistory: callPage.goToCallHistory() function onOpenCallHistory(){ callPage.goToCallHistory()}
} }
onCreateContactRequested: (name, address) => { onCreateContactRequested: (name, address) => {
mainItem.createContact(name, address) mainItem.createContact(name, address)
@ -390,10 +390,10 @@ Item {
id: contactPage id: contactPage
Connections { Connections {
target: mainItem target: mainItem
onCreateContactRequested: (name, address) => { function onCreateContactRequested (name, address) {
contactPage.createContact(name, address) contactPage.createContact(name, address)
} }
onDisplayContact: (contactAddress) => { function onDisplayContact (contactAddress) {
contactPage.displayContact(contactAddress) contactPage.displayContact(contactAddress)
} }
} }

View file

@ -233,7 +233,7 @@ GenericSettingsLayout {
} }
Connections { Connections {
target: SettingsCpp target: SettingsCpp
onMicVolumeChanged: volume => audioTestSlider.value = volume function onMicVolumeChanged(volume) { audioTestSlider.value = volume}
} }
Component.onCompleted: { Component.onCompleted: {
SettingsCpp.accessCallSettings() SettingsCpp.accessCallSettings()

View file

@ -73,7 +73,7 @@ GenericSettingsLayout {
} }
Connections { Connections {
target: SettingsCpp target: SettingsCpp
onLogsUploadTerminated: { function onLogsUploadTerminated() {
UtilsCpp.getMainWindow().closeLoadingPopup() UtilsCpp.getMainWindow().closeLoadingPopup()
if (status) { if (status) {
mainItem.logsUrl = url mainItem.logsUrl = url

View file

@ -104,14 +104,14 @@ AppWindow {
onBrowserValidationRequested: mainWindow.showLoadingPopup(qsTr("Veuillez valider le captcha sur la page web"), true) onBrowserValidationRequested: mainWindow.showLoadingPopup(qsTr("Veuillez valider le captcha sur la page web"), true)
Connections { Connections {
target: RegisterPageCpp target: RegisterPageCpp
onNewAccountCreationSucceed: (withEmail, address, sipIdentityAddress) => { function onNewAccountCreationSucceed(withEmail, address, sipIdentityAddress) {
mainWindowStackView.push(checkingPage, {"registerWithEmail": withEmail, "address": address, "sipIdentityAddress": sipIdentityAddress}) mainWindowStackView.push(checkingPage, {"registerWithEmail": withEmail, "address": address, "sipIdentityAddress": sipIdentityAddress})
} }
onRegisterNewAccountFailed: (errorMessage) => { function onRegisterNewAccountFailed(errorMessage) {
mainWindow.showInformationPopup(qsTr("Erreur lors de la création"), errorMessage, false) mainWindow.showInformationPopup(qsTr("Erreur lors de la création"), errorMessage, false)
mainWindow.closeLoadingPopup() mainWindow.closeLoadingPopup()
} }
onTokenConversionSucceed: mainWindow.closeLoadingPopup() function onTokenConversionSucceed(){ mainWindow.closeLoadingPopup()}
} }
} }
} }
@ -124,11 +124,11 @@ AppWindow {
} }
Connections { Connections {
target: RegisterPageCpp target: RegisterPageCpp
onLinkingNewAccountWithCodeSucceed: { function onLinkingNewAccountWithCodeSucceed() {
mainWindowStackView.replace(loginPage) mainWindowStackView.replace(loginPage)
mainWindow.showInformationPopup(qsTr("Compte créé"), qsTr("Le compte a été créé avec succès. Vous pouvez maintenant vous connecter"), true) mainWindow.showInformationPopup(qsTr("Compte créé"), qsTr("Le compte a été créé avec succès. Vous pouvez maintenant vous connecter"), true)
} }
onLinkingNewAccountWithCodeFailed: (errorMessage) => { function onLinkingNewAccountWithCodeFailed(errorMessage) {
if (errorMessage.length === 0) errorMessage = qsTr("Erreur dans le code de validation") if (errorMessage.length === 0) errorMessage = qsTr("Erreur dans le code de validation")
mainWindow.showInformationPopup(qsTr("Erreur"), errorMessage, false) mainWindow.showInformationPopup(qsTr("Erreur"), errorMessage, false)
} }

View file

@ -14,7 +14,7 @@ RightPanelLayout {
property FriendGui contact property FriendGui contact
Connections { Connections {
target: contact.core target: contact.core
onIsSavedChanged: { function onIsSavedChanged() {
if (contact.core.isSaved) { if (contact.core.isSaved) {
var mainWin = UtilsCpp.getMainWindow() var mainWin = UtilsCpp.getMainWindow()
UtilsCpp.smartShowWindow(mainWin) UtilsCpp.smartShowWindow(mainWin)
@ -305,12 +305,9 @@ RightPanelLayout {
topPadding: 11 * DefaultStyle.dp topPadding: 11 * DefaultStyle.dp
bottomPadding: 11 * DefaultStyle.dp bottomPadding: 11 * DefaultStyle.dp
onClicked: { onClicked: {
if (givenNameEdit.text.length === 0) { if (givenNameEdit.text.length === 0 || addressesList.count === 0) {
givenName.errorMessage = qsTr("Veuillez saisir un prénom") if (givenNameEdit.text.length === 0) givenName.errorMessage = qsTr("Veuillez saisir un prénom")
return if (addressesList.count === 0) addressesErrorText.text = qsTr("Veuillez saisir une adresse ou un numéro de téléphone")
}
if (addressesList.count === 0) {
addressesErrorText.text = qsTr("Veuillez saisir une adresse ou un numéro de téléphone")
return return
} }
mainItem.contact.core.save() mainItem.contact.core.save()

View file

@ -51,7 +51,7 @@ ListView {
console.log("select", address) console.log("select", address)
var index = magicSearchProxy.findFriendIndexByAddress(address) var index = magicSearchProxy.findFriendIndexByAddress(address)
console.log("index in selection", index) console.log("index in selection", index)
if (index == -1) { if (index != -1) {
mainItem.currentIndex = index mainItem.currentIndex = index
} }
} }
@ -102,7 +102,7 @@ ListView {
Connections { Connections {
enabled: modelData.core enabled: modelData.core
target: modelData.core target: modelData.core
onStarredChanged: mainItem.contactStarredChanged() function onStarredChanged() { mainItem.contactStarredChanged()}
} }
Text { Text {
id: initial id: initial
@ -151,7 +151,7 @@ ListView {
Connections { Connections {
target: mainItem target: mainItem
// onParticipantsChanged: isSelectedCheck.visible = mainItem.confInfoGui.core.getParticipantIndex(modelData.core.defaultAddress) != -1 // onParticipantsChanged: isSelectedCheck.visible = mainItem.confInfoGui.core.getParticipantIndex(modelData.core.defaultAddress) != -1
onSelectedContactCountChanged: isSelectedCheck.visible = (mainItem.selectedContacts.indexOf(modelData.core.defaultAddress) != -1) function onSelectedContactCountChanged(){ isSelectedCheck.visible = (mainItem.selectedContacts.indexOf(modelData.core.defaultAddress) != -1)}
} }
} }
} }

View file

@ -42,7 +42,7 @@ Text {
Connections { Connections {
target: mainItem target: mainItem
onTextChanged: { function onTextChanged() {
if (mainItem.text.length > 0) { if (mainItem.text.length > 0) {
mainItem.state = "Visible" mainItem.state = "Visible"
} else { } else {

View file

@ -64,10 +64,10 @@ ColumnLayout {
anchors.top: password.bottom anchors.top: password.bottom
Connections { Connections {
target: LoginPageCpp target: LoginPageCpp
onErrorMessageChanged: { function onErrorMessageChanged() {
errorText.text = LoginPageCpp.errorMessage errorText.text = LoginPageCpp.errorMessage
} }
onRegistrationStateChanged: { function onRegistrationStateChanged() {
if (LoginPageCpp.registrationState === LinphoneEnums.RegistrationState.Ok) { if (LoginPageCpp.registrationState === LinphoneEnums.RegistrationState.Ok) {
mainItem.connectionSucceed() mainItem.connectionSucceed()
} }
@ -107,13 +107,13 @@ ColumnLayout {
} }
Connections { Connections {
target: LoginPageCpp target: LoginPageCpp
onRegistrationStateChanged: { function onRegistrationStateChanged() {
if (LoginPageCpp.registrationState != LinphoneEnums.RegistrationState.Progress) { if (LoginPageCpp.registrationState != LinphoneEnums.RegistrationState.Progress) {
connectionButton.enabled = true connectionButton.enabled = true
connectionButtonContent.currentIndex = 0 connectionButtonContent.currentIndex = 0
} }
} }
onErrorMessageChanged: { function onErrorMessageChanged() {
connectionButton.enabled = true connectionButton.enabled = true
connectionButtonContent.currentIndex = 0 connectionButtonContent.currentIndex = 0
} }

View file

@ -17,7 +17,7 @@ ColumnLayout {
Connections { Connections {
target: mainItem.conferenceInfoGui.core target: mainItem.conferenceInfoGui.core
onSchedulerStateChanged: { function onSchedulerStateChanged() {
if (mainItem.conferenceInfoGui.core.schedulerState == LinphoneEnums.ConferenceSchedulerState.Ready) { if (mainItem.conferenceInfoGui.core.schedulerState == LinphoneEnums.ConferenceSchedulerState.Ready) {
mainItem.saveSucceed(isCreation) mainItem.saveSucceed(isCreation)
} }

View file

@ -27,12 +27,12 @@ Rectangle {
Connections { Connections {
enabled: numericPad != undefined enabled: numericPad != undefined
target: numericPad ? numericPad : null target: numericPad ? numericPad : null
onAboutToHide: { mainItem.numericPadButton.checked = false } function onAboutToHide() { mainItem.numericPadButton.checked = false }
onAboutToShow: { mainItem.numericPadButton.checked = true } function onAboutToShow() { mainItem.numericPadButton.checked = true }
onButtonPressed: (text) => { function onButtonPressed(text) {
textField.text += text textField.text += text
} }
onWipe: textField.text = textField.text.slice(0, -1) function onWipe(){ textField.text = textField.text.slice(0, -1)}
} }

View file

@ -27,14 +27,14 @@ Dialog {
enabled: call != undefined && call != null enabled: call != undefined && call != null
target: call && call.core target: call && call.core
onStatusChanged: if (status === CallModel.CallStatusEnded) close() onStatusChanged: if (status === CallModel.CallStatusEnded) close()
onSecurityUpdated: { function onSecurityUpdated() {
if (mainItem.isTokenVerified) { if (mainItem.isTokenVerified) {
close() close()
// mainItem.securityError = true // mainItem.securityError = true
// } else close() // } else close()
} }
} }
onTokenVerified: { function onTokenVerified() {
if (!mainItem.isTokenVerified) { if (!mainItem.isTokenVerified) {
mainItem.securityError = true mainItem.securityError = true
} else close() } else close()

View file

@ -15,7 +15,7 @@ LoginLayout {
Connections { Connections {
target: RegisterPageCpp target: RegisterPageCpp
onErrorInField: (field, errorMessage) => { function onErrorInField(field, errorMessage) {
if (field == "username") usernameItem.errorMessage = errorMessage if (field == "username") usernameItem.errorMessage = errorMessage
else if (field == "password") pwdItem.errorMessage = errorMessage else if (field == "password") pwdItem.errorMessage = errorMessage
else if (field == "phone") phoneNumberInput.errorMessage = errorMessage else if (field == "phone") phoneNumberInput.errorMessage = errorMessage

View file

@ -190,7 +190,7 @@ LoginLayout {
id: errorText id: errorText
Connections { Connections {
target: LoginPageCpp target: LoginPageCpp
onRegistrationStateChanged: { function onRegistrationStateChanged() {
if (LoginPageCpp.registrationState === LinphoneEnums.RegistrationState.Failed) { if (LoginPageCpp.registrationState === LinphoneEnums.RegistrationState.Failed) {
errorText.text = qsTr("Connection has failed. Please verify your credentials") errorText.text = qsTr("Connection has failed. Please verify your credentials")
} else if (LoginPageCpp.registrationState === LinphoneEnums.RegistrationState.Ok) { } else if (LoginPageCpp.registrationState === LinphoneEnums.RegistrationState.Ok) {

View file

@ -29,7 +29,7 @@ AbstractMainPage {
Connections { Connections {
enabled: confInfoGui enabled: confInfoGui
target: confInfoGui ? confInfoGui.core : null target: confInfoGui ? confInfoGui.core : null
onConferenceSchedulerStateChanged: { function onConferenceSchedulerStateChanged() {
if (confInfoGui.core.schedulerState === LinphoneEnums.ConferenceSchedulerState.Ready) { if (confInfoGui.core.schedulerState === LinphoneEnums.ConferenceSchedulerState.Ready) {
listStackView.pop() listStackView.pop()
} }
@ -215,7 +215,7 @@ AbstractMainPage {
Connections { Connections {
target: deleteHistoryPopup target: deleteHistoryPopup
onAccepted: { function onAccepted() {
historyListView.model.removeAllEntries() historyListView.model.removeAllEntries()
} }
} }
@ -358,7 +358,7 @@ AbstractMainPage {
Connections { Connections {
target: mainItem target: mainItem
onListViewUpdated: { function onListViewUpdated() {
historyListView.model.updateView() historyListView.model.updateView()
} }
} }
@ -426,7 +426,7 @@ AbstractMainPage {
} }
Connections { Connections {
target: mainItem target: mainItem
onCreateCallFromSearchBarRequested: UtilsCpp.createCall(callContactsList.searchBar.text) function onCreateCallFromSearchBarRequested(){ UtilsCpp.createCall(callContactsList.searchBar.text)}
} }
} }
} }
@ -497,7 +497,7 @@ AbstractMainPage {
nameGroupCall: true nameGroupCall: true
Connections { Connections {
target: mainItem target: mainItem
onStartGroupCallRequested: { function onStartGroupCallRequested() {
if (groupName.length === 0) { if (groupName.length === 0) {
UtilsCpp.showInformationPopup(qsTr("Erreur"), qsTr("Un nom doit être donné à l'appel de groupe"), false) UtilsCpp.showInformationPopup(qsTr("Erreur"), qsTr("Un nom doit être donné à l'appel de groupe"), false)
} else if(!mainItem.isRegistered) { } else if(!mainItem.isRegistered) {
@ -591,7 +591,7 @@ AbstractMainPage {
} }
Connections { Connections {
target: deleteForUserPopup target: deleteForUserPopup
onAccepted: { function onAccepted() {
detailListView.model.removeEntriesWithFilter() detailListView.model.removeEntriesWithFilter()
mainItem.listViewUpdated() mainItem.listViewUpdated()
} }

View file

@ -320,7 +320,7 @@ AbstractMainPage {
model: allFriends model: allFriends
Connections { Connections {
target: allFriends target: allFriends
onFriendCreated: (index) => { function onFriendCreated(index) {
contactList.currentIndex = index contactList.currentIndex = index
} }
} }

View file

@ -283,7 +283,7 @@ AbstractMainPage {
Layout.rightMargin: 35 * DefaultStyle.dp Layout.rightMargin: 35 * DefaultStyle.dp
Connections { Connections {
target: meetingSetup.conferenceInfoGui ? meetingSetup.conferenceInfoGui.core : null target: meetingSetup.conferenceInfoGui ? meetingSetup.conferenceInfoGui.core : null
onConferenceSchedulerStateChanged: { function onConferenceSchedulerStateChanged() {
var mainWin = UtilsCpp.getMainWindow() var mainWin = UtilsCpp.getMainWindow()
if (meetingSetup.conferenceInfoGui.core.schedulerState == LinphoneEnums.ConferenceSchedulerState.AllocationPending if (meetingSetup.conferenceInfoGui.core.schedulerState == LinphoneEnums.ConferenceSchedulerState.AllocationPending
|| meetingSetup.conferenceInfoGui.core.schedulerState == LinphoneEnums.ConferenceSchedulerState.Updating) { || meetingSetup.conferenceInfoGui.core.schedulerState == LinphoneEnums.ConferenceSchedulerState.Updating) {
@ -307,7 +307,7 @@ AbstractMainPage {
} }
Connections { Connections {
target: mainItem target: mainItem
onAddParticipantsValidated: (selectedParticipants) => { function onAddParticipantsValidated(selectedParticipants) {
meetingSetup.conferenceInfoGui.core.resetParticipants(selectedParticipants) meetingSetup.conferenceInfoGui.core.resetParticipants(selectedParticipants)
leftPanelStackView.pop() leftPanelStackView.pop()
} }
@ -384,14 +384,14 @@ AbstractMainPage {
} }
Connections { Connections {
target: mainItem target: mainItem
onAddParticipantsValidated: (selectedParticipants) => { function onAddParticipantsValidated(selectedParticipants) {
conferenceEdit.conferenceInfoGui.core.resetParticipants(selectedParticipants) conferenceEdit.conferenceInfoGui.core.resetParticipants(selectedParticipants)
overridenRightPanelStackView.pop() overridenRightPanelStackView.pop()
} }
} }
Connections { Connections {
target: conferenceEdit.conferenceInfoGui ? conferenceEdit.conferenceInfoGui.core : null target: conferenceEdit.conferenceInfoGui ? conferenceEdit.conferenceInfoGui.core : null
onConferenceSchedulerStateChanged: { function onConferenceSchedulerStateChanged() {
var mainWin = UtilsCpp.getMainWindow() var mainWin = UtilsCpp.getMainWindow()
if (conferenceEdit.conferenceInfoGui.core.schedulerState == LinphoneEnums.ConferenceSchedulerState.Error) { if (conferenceEdit.conferenceInfoGui.core.schedulerState == LinphoneEnums.ConferenceSchedulerState.Error) {
UtilsCpp.showInformationPopup(qsTr("Erreur"), qsTr("L'édition de la conférence a échoué"), false) UtilsCpp.showInformationPopup(qsTr("Erreur"), qsTr("L'édition de la conférence a échoué"), false)
@ -535,10 +535,10 @@ AbstractMainPage {
} }
Connections { Connections {
target: cancelAndDeleteConfDialog target: cancelAndDeleteConfDialog
onCancelRequested: { function onCancelRequested() {
mainItem.selectedConference.core.lCancelConferenceInfo() mainItem.selectedConference.core.lCancelConferenceInfo()
} }
onAccepted: { function onAccepted() {
mainItem.selectedConference.core.lDeleteConferenceInfo() mainItem.selectedConference.core.lDeleteConferenceInfo()
} }
} }

View file

@ -27,7 +27,7 @@ Window {
Component.onDestruction: gc() Component.onDestruction: gc()
Connections{ Connections{
target: call && call.core || null target: call && call.core || null
onLastErrorMessageChanged: if(mainItem.call) errorMessageText.text=mainItem.call.core.lastErrorMessage function onLastErrorMessageChanged() { if(mainItem.call) errorMessageText.text=mainItem.call.core.lastErrorMessage}
} }
RowLayout{ RowLayout{
anchors.fill: parent anchors.fill: parent