Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
app_updates_bridge.hpp
Go to the documentation of this file.
1#pragma once
2
3// EditorBridge messages that let a JS editor show and drive app updates.
4//
5// Register them once on the editor's bridge, in code every format shares:
6//
7// pulp::format::add_app_update_handlers(editor_bridge_);
8//
9// A plug-in answers `available: false` (no service is installed there), so
10// the editor hides its update controls; the standalone app answers with the
11// live status. Messages (payload -> response, all `ok: true` plus the status
12// object from app_update_status_json()):
13//
14// pulp_updates_get {} -> status
15// pulp_updates_check {} -> status + started: bool
16// pulp_updates_set_automatic {on: bool} -> status + applied: bool
17// pulp_updates_open_releases {} -> status + opened: bool
18//
19// The JS side is `appUpdatesClient(dispatch)` in @pulp/react.
20
22
23namespace pulp::format {
24
25inline constexpr const char* kAppUpdatesGetMessage = "pulp_updates_get";
26inline constexpr const char* kAppUpdatesCheckMessage = "pulp_updates_check";
27inline constexpr const char* kAppUpdatesSetAutomaticMessage = "pulp_updates_set_automatic";
28inline constexpr const char* kAppUpdatesOpenReleasesMessage = "pulp_updates_open_releases";
29
31
32} // namespace pulp::format
Renderer-agnostic dispatcher for editor↔processor JSON messages.
Definition editor_bridge.hpp:83
What the product grants a device: the quota table indexed by capability tier and live thermal state.
Definition aax_editor.hpp:31
constexpr const char * kAppUpdatesSetAutomaticMessage
Definition app_updates_bridge.hpp:27
void add_app_update_handlers(view::EditorBridge &bridge)
constexpr const char * kAppUpdatesGetMessage
Definition app_updates_bridge.hpp:25
constexpr const char * kAppUpdatesOpenReleasesMessage
Definition app_updates_bridge.hpp:28
constexpr const char * kAppUpdatesCheckMessage
Definition app_updates_bridge.hpp:26