#include <updates-model.h>
Classes | |
| struct | position_params |
| struct | update_profile_model |
Public Member Functions | |
| void | add_profile (const update_profile_model &update) |
| void | draw (std::shared_ptr< notifications_model > not_model, ux_window &window, std::string &error_message) |
| bool | has_updates () const |
| void | remove_profile (const sw_update::dev_updates_profile::update_profile &update) |
| void | set_device_status (const sw_update::dev_updates_profile::update_profile &update, bool active) |
| void | update_profile (const update_profile_model &update) |
Private Types | |
| enum | fw_update_fail_reason { fw_update_fail_reason::none = 0, fw_update_fail_reason::downloading_error = 1, fw_update_fail_reason::updating_error = 2 } |
| enum | fw_update_states { fw_update_states::ready = 0, fw_update_states::downloading = 1, fw_update_states::started = 2, fw_update_states::completed = 3, fw_update_states::failed_downloading = 4, fw_update_states::failed_updating = 5 } |
Private Member Functions | |
| bool | draw_firmware_section (std::shared_ptr< notifications_model > not_model, const char *window_name, update_profile_model &selected_profile, position_params &pos_params, ux_window &window, std::string &error_message) |
| bool | draw_software_section (const char *window_name, update_profile_model &selected_profile, position_params &pos_params, ux_window &window, std::string &error_message) |
Private Attributes | |
| std::atomic< int > | _fw_download_progress { 0 } |
| std::vector< uint8_t > | _fw_image |
| std::shared_ptr< firmware_update_manager > | _fw_update = nullptr |
| fw_update_states | _fw_update_state = fw_update_states::ready |
| std::shared_ptr< texture_buffer > | _icon = nullptr |
| std::mutex | _lock |
| progress_bar | _progress |
| bool | _retry = false |
| std::shared_ptr< firmware_update_manager > | _update_manager = nullptr |
| std::vector< update_profile_model > | _updates |
| bool | emphasize_dismiss_text = false |
| bool | ignore = false |
| int | selected_firmware_update_index = 0 |
| int | selected_index = 0 |
| int | selected_software_update_index = 0 |
Definition at line 19 of file updates-model.h.
|
strongprivate |
| Enumerator | |
|---|---|
| none | |
| downloading_error | |
| updating_error | |
Definition at line 122 of file updates-model.h.
|
strongprivate |
| Enumerator | |
|---|---|
| ready | |
| downloading | |
| started | |
| completed | |
| failed_downloading | |
| failed_updating | |
Definition at line 112 of file updates-model.h.
|
inline |
Definition at line 30 of file updates-model.h.
| void updates_model::draw | ( | std::shared_ptr< notifications_model > | not_model, |
| ux_window & | window, | ||
| std::string & | error_message | ||
| ) |
Definition at line 16 of file updates-model.cpp.
|
private |
Definition at line 496 of file updates-model.cpp.
|
private |
Definition at line 237 of file updates-model.cpp.
|
inline |
Definition at line 78 of file updates-model.h.
|
inline |
Definition at line 55 of file updates-model.h.
|
inline |
Definition at line 68 of file updates-model.h.
|
inline |
Definition at line 44 of file updates-model.h.
|
private |
Definition at line 132 of file updates-model.h.
|
private |
Definition at line 135 of file updates-model.h.
|
private |
Definition at line 110 of file updates-model.h.
|
private |
Definition at line 129 of file updates-model.h.
|
private |
Definition at line 106 of file updates-model.h.
|
mutableprivate |
Definition at line 107 of file updates-model.h.
|
private |
Definition at line 131 of file updates-model.h.
|
private |
Definition at line 133 of file updates-model.h.
|
private |
Definition at line 134 of file updates-model.h.
|
private |
Definition at line 105 of file updates-model.h.
|
private |
Definition at line 108 of file updates-model.h.
|
private |
Definition at line 104 of file updates-model.h.
|
private |
Definition at line 103 of file updates-model.h.
|
private |
Definition at line 101 of file updates-model.h.
|
private |
Definition at line 102 of file updates-model.h.