feat(bridge): establish local pi status bridge
Deliver the initial local bridge, Noctalia v4/v5 adapters, desktop client, service unit, tests, and implementation documentation for persistent Pi status and control.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user