status-desktop/ui/app/AppLayouts/Profile/stores/AdvancedStore.qml

54 lines
1.5 KiB
QML
Raw Normal View History

import QtQuick 2.13
import utils 1.0
QtObject {
id: root
property var advancedModule
// Advanced Module Properties
property string currentNetworkName: advancedModule.currentNetworkName
property string currentNetworkId: advancedModule.currentNetworkId
property string fleet: advancedModule.fleet
property string bloomLevel: advancedModule.bloomLevel
property bool wakuV2LightClientEnabled: advancedModule.wakuV2LightClientEnabled
property bool isTelemetryEnabled: advancedModule.isTelemetryEnabled
property bool isAutoMessageEnabled: advancedModule.isAutoMessageEnabled
property bool isDebugEnabled: advancedModule.isDebugEnabled
property bool isWakuV2: root.fleet === Constants.waku_prod ||
root.fleet === Constants.waku_test
function logDir() {
return root.advancedModule.logDir()
}
function setNetworkName(networkName) {
root.advancedModule.setNetworkName(networkName)
}
function setFleet(fleetName) {
root.advancedModule.setFleet(fleetName)
}
function setBloomLevel(mode) {
root.advancedModule.setBloomLevel(mode)
}
function setWakuV2LightClientEnabled(mode) {
root.advancedModule.setWakuV2LightClientEnabled(mode)
}
function toggleTelemetry() {
root.advancedModule.toggleTelemetry()
}
function toggleAutoMessage() {
root.advancedModule.toggleAutoMessage()
}
function toggleDebug() {
root.advancedModule.toggleDebug()
}
}