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
21
#include <
pulp/view/editor_bridge.hpp
>
22
23
namespace
pulp::format
{
24
25
inline
constexpr
const
char
*
kAppUpdatesGetMessage
=
"pulp_updates_get"
;
26
inline
constexpr
const
char
*
kAppUpdatesCheckMessage
=
"pulp_updates_check"
;
27
inline
constexpr
const
char
*
kAppUpdatesSetAutomaticMessage
=
"pulp_updates_set_automatic"
;
28
inline
constexpr
const
char
*
kAppUpdatesOpenReleasesMessage
=
"pulp_updates_open_releases"
;
29
30
void
add_app_update_handlers
(
view::EditorBridge
& bridge);
31
32
}
// namespace pulp::format
pulp::view::EditorBridge
Renderer-agnostic dispatcher for editor↔processor JSON messages.
Definition
editor_bridge.hpp:83
editor_bridge.hpp
pulp::format
What the product grants a device: the quota table indexed by capability tier and live thermal state.
Definition
aax_editor.hpp:31
pulp::format::kAppUpdatesSetAutomaticMessage
constexpr const char * kAppUpdatesSetAutomaticMessage
Definition
app_updates_bridge.hpp:27
pulp::format::add_app_update_handlers
void add_app_update_handlers(view::EditorBridge &bridge)
pulp::format::kAppUpdatesGetMessage
constexpr const char * kAppUpdatesGetMessage
Definition
app_updates_bridge.hpp:25
pulp::format::kAppUpdatesOpenReleasesMessage
constexpr const char * kAppUpdatesOpenReleasesMessage
Definition
app_updates_bridge.hpp:28
pulp::format::kAppUpdatesCheckMessage
constexpr const char * kAppUpdatesCheckMessage
Definition
app_updates_bridge.hpp:26
core
format
include
pulp
format
app_updates_bridge.hpp
Generated by
1.15.0