Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
app_updates_settings_view.hpp
Go to the documentation of this file.
1#pragma once
2
3// A drop-in "Updates" Settings group for native Pulp editors:
4//
5// [toggle] Automatically check for updates
6// [Check for Updates…]
7// Version 1.0.7 · Last checked: 2026-10-04 14:03
8// Updates download from Spectr's GitHub releases. Installing an update …
9// [View Releases]
10//
11// It reads and drives the process-wide AppUpdateService
12// (pulp/format/app_updates.hpp). The standalone Settings panel adds it as an
13// "Updates" tab automatically; a native editor can add it to its own
14// settings with
15//
16// if (pulp::format::app_update_status().available)
17// panel.add_child(std::make_unique<pulp::format::AppUpdatesSettingsView>());
18//
19// In a plug-in no service is installed, so the guard keeps it out; the view
20// itself also hides its controls when the service disappears.
21
23#include <pulp/view/view.hpp>
24
25namespace pulp::view {
26class Label;
27class TextButton;
28class Toggle;
29} // namespace pulp::view
30
31namespace pulp::format {
32
34 public:
36
39 void refresh();
40
41 [[nodiscard]] view::Toggle* automatic_checks_toggle() const {
42 return automatic_toggle_;
43 }
44 [[nodiscard]] view::TextButton* check_button() const {
45 return check_button_;
46 }
47
48 [[nodiscard]] view::TextButton* releases_button() const {
49 return releases_button_;
50 }
51 [[nodiscard]] view::Label* status_label() const {
52 return status_label_;
53 }
54 [[nodiscard]] view::Label* note_label() const {
55 return note_label_;
56 }
57
58 private:
59 view::Toggle* automatic_toggle_ = nullptr;
60 view::TextButton* check_button_ = nullptr;
61 view::TextButton* releases_button_ = nullptr;
62 view::Label* status_label_ = nullptr;
63 view::Label* note_label_ = nullptr;
64};
65
66} // namespace pulp::format
view::TextButton * check_button() const
Definition app_updates_settings_view.hpp:44
void refresh()
Re-read the service status into the controls.
view::TextButton * releases_button() const
Opens the declared releases page; hidden when the app declares none.
Definition app_updates_settings_view.hpp:48
view::Label * note_label() const
Definition app_updates_settings_view.hpp:54
view::Label * status_label() const
Definition app_updates_settings_view.hpp:51
view::Toggle * automatic_checks_toggle() const
Definition app_updates_settings_view.hpp:41
Definition widgets.hpp:56
Definition buttons.hpp:17
Definition widgets.hpp:2036
Definition view.hpp:73
What the product grants a device: the quota table indexed by capability tier and live thermal state.
Definition aax_editor.hpp:31
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27