b7fea83ed6
Deliver the initial local bridge, Noctalia v4/v5 adapters, desktop client, service unit, tests, and implementation documentation for persistent Pi status and control.
26 lines
711 B
QML
26 lines
711 B
QML
import QtQuick
|
|
import Quickshell.Io
|
|
|
|
Item {
|
|
id: root
|
|
property var pluginApi: null
|
|
|
|
function setBridgeState(state, projectLabel, attentionCount, detail) {
|
|
if (!pluginApi)
|
|
return
|
|
pluginApi.pluginSettings.bridgeState = state
|
|
pluginApi.pluginSettings.projectLabel = projectLabel
|
|
pluginApi.pluginSettings.attentionCount = attentionCount
|
|
pluginApi.pluginSettings.detail = detail
|
|
pluginApi.saveSettings()
|
|
}
|
|
|
|
IpcHandler {
|
|
target: "plugin:pi-status-bridge"
|
|
|
|
function setBridgeState(state, projectLabel, attentionCount, detail) {
|
|
root.setBridgeState(state, projectLabel, attentionCount, detail)
|
|
}
|
|
}
|
|
}
|