Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
app_updates.hpp File Reference
#include <cstdint>
#include <memory>
#include <string>

Go to the source code of this file.

Classes

struct  pulp::format::AppUpdateStatus
class  pulp::format::AppUpdateService

Namespaces

namespace  pulp
namespace  pulp::format
 What the product grants a device: the quota table indexed by capability tier and live thermal state.

Enumerations

enum class  pulp::format::AppUpdateInstaller : std::uint8_t { pulp::format::unknown , pulp::format::package , pulp::format::app_bundle }
 How an update is installed, as the app declares it (pulp_add_sparkle INSTALLER). More...

Functions

void pulp::format::set_app_update_service (std::shared_ptr< AppUpdateService > service)
 Install (or, with nullptr, remove) the process-wide service.
std::shared_ptr< AppUpdateService > pulp::format::app_update_service ()
AppUpdateStatus pulp::format::app_update_status ()
 Convenience wrappers over the installed service.
bool pulp::format::check_for_app_updates ()
bool pulp::format::set_app_update_automatic_checks (bool on)
bool pulp::format::open_app_releases_page ()
std::string pulp::format::app_update_note (const AppUpdateStatus &status)
 The explanatory note shown under the Settings controls, built only from facts in status, so it stays true for each app.
std::string pulp::format::app_update_version_text (const AppUpdateStatus &status)
 "Version 1.0.7 (1.0.7.2)" – the build is shown only when it differs.
std::string pulp::format::app_update_last_check_text (const AppUpdateStatus &status)
 "Last checked: never" or "Last checked: 2026-10-04 14:03" (local time).
std::string pulp::format::app_update_status_json (const AppUpdateStatus &status)
 The status as a JSON object, the shape the JS bridge returns: {available, canCheckNow, automaticChecks, automaticInstall, stub, appName, version, build, lastCheckUnixSeconds, releasesUrl, feedHost, installer: "package"|"app"|"unknown", note, versionText, lastCheckText}.