5#ifndef MOLYBDEN_APP_UPDATE_HPP
6#define MOLYBDEN_APP_UPDATE_HPP
11#include "molybden/app/app_update_events.hpp"
24 std::shared_ptr<App>
app;
38using CheckForUpdateCallback =
49 virtual std::shared_ptr<App>
app() = 0;
A class that contains all application update events.
Definition app_update_events.hpp:59
An application update available for download and installation.
Definition app_update.hpp:44
virtual void dismiss()=0
Dismisses the application update if it is not needed.
virtual void install()=0
Downloads and installs the application update.
virtual std::shared_ptr< App > app()=0
The current application.
virtual std::string version()=0
The application version in this update.
The check for update result.
Definition app_update.hpp:20
std::string error_message
The error message text if the update check has been failed or an empty string if there's no error.
Definition app_update.hpp:35
std::shared_ptr< App > app
The current application.
Definition app_update.hpp:24
std::shared_ptr< AppUpdate > app_update
The available application update or an empty object if there's no update.
Definition app_update.hpp:29