2022-03-07 20:34:59 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property var privacyModule
|
|
|
|
property var syncModule
|
2022-08-02 18:37:27 +00:00
|
|
|
property var wakuModule
|
2022-03-07 20:34:59 +00:00
|
|
|
|
|
|
|
property var mailservers: syncModule.model
|
2022-08-02 18:37:27 +00:00
|
|
|
property var wakunodes: wakuModule.model
|
2022-03-07 20:34:59 +00:00
|
|
|
|
2022-03-29 12:04:56 +00:00
|
|
|
property bool useMailservers: syncModule.useMailservers
|
|
|
|
|
|
|
|
function toggleUseMailservers(value) {
|
|
|
|
root.syncModule.useMailservers = value
|
|
|
|
}
|
|
|
|
|
2022-03-07 20:34:59 +00:00
|
|
|
// Module Properties
|
|
|
|
property bool automaticMailserverSelection: syncModule.automaticSelection
|
2024-06-04 12:55:08 +00:00
|
|
|
property string activeMailserverId: syncModule.activeMailserverId
|
|
|
|
property string pinnedMailserverId: syncModule.pinnedMailserverId
|
2022-03-07 20:34:59 +00:00
|
|
|
|
|
|
|
|
2024-06-04 12:55:08 +00:00
|
|
|
function setPinnedMailserverId(mailserverID) {
|
|
|
|
root.syncModule.setPinnedMailserverId(mailserverID)
|
2022-03-07 20:34:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function saveNewMailserver(name, nodeAddress) {
|
|
|
|
root.syncModule.saveNewMailserver(name, nodeAddress)
|
|
|
|
}
|
|
|
|
|
2022-08-02 18:37:27 +00:00
|
|
|
function saveNewWakuNode(nodeAddress) {
|
|
|
|
root.wakuModule.saveNewWakuNode(nodeAddress)
|
|
|
|
}
|
|
|
|
|
2022-03-07 20:34:59 +00:00
|
|
|
function enableAutomaticMailserverSelection(checked) {
|
|
|
|
if (automaticMailserverSelection === checked) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
root.syncModule.enableAutomaticSelection(checked)
|
|
|
|
}
|
|
|
|
}
|