#include <BackupPage.hpp>
Public Member Functions | |
| BackupPage () | |
| ~BackupPage () override | |
Private Member Functions | |
| Gtk::Widget * | buildBackupTab () |
| Gtk::Widget * | buildGrubTab () |
| Gtk::Widget * | buildLogSection () |
| void | onBuildRecovery () |
| void | onInstallGrub () |
| void | onRemoveGrub () |
| void | logSafe (const std::string &msg) |
| void | runAsyncStreaming (const std::string &cmd, bool show_success=false) |
| void | updateRecoveryStatus () |
| void | setResult (bool success, const std::string &msg) |
Private Attributes | |
| Gtk::Notebook | notebook |
| Gtk::Button | buildRecoveryButton |
| Gtk::Button | installGrubButton |
| Gtk::Button | removeGrubButton |
| Gtk::Label | recoveryStatusLabel |
| Gtk::Label | recoverySpaceLabel |
| Gtk::Label | recoveryResultLabel |
| Gtk::ProgressBar | recoveryProgress |
| Gtk::TextView | logView |
| Glib::RefPtr< Gtk::TextBuffer > | logBuffer |
| sigc::connection | pulseTimer |
| bool | buildRunning = false |
| BastionGuard::AliveFlag | alive_ = BastionGuard::make_alive_flag() |
Definition at line 12 of file BackupPage.hpp.
| BackupPage::BackupPage | ( | ) |
Definition at line 61 of file BackupPage.cpp.
References _, buildBackupTab(), buildGrubTab(), buildLogSection(), logBuffer, notebook, and updateRecoveryStatus().
|
override |
|
private |
Definition at line 102 of file BackupPage.cpp.
References _, BG_BACKUP_LAUNCHER, and logSafe().
Referenced by BackupPage().
|
private |
Definition at line 139 of file BackupPage.cpp.
References _, buildRecoveryButton, installGrubButton, onBuildRecovery(), onInstallGrub(), onRemoveGrub(), recoveryProgress, recoveryResultLabel, recoverySpaceLabel, recoveryStatusLabel, and removeGrubButton.
Referenced by BackupPage().
|
private |
Definition at line 217 of file BackupPage.cpp.
References _, logBuffer, and logView.
Referenced by BackupPage().
|
private |
Definition at line 574 of file BackupPage.cpp.
References alive_, BastionGuard::if_alive(), logBuffer, and logView.
Referenced by buildBackupTab(), onBuildRecovery(), onInstallGrub(), onRemoveGrub(), and runAsyncStreaming().
|
private |
Definition at line 343 of file BackupPage.cpp.
References _, BUILD_SCRIPT, logSafe(), and runAsyncStreaming().
Referenced by buildGrubTab().
|
private |
Definition at line 352 of file BackupPage.cpp.
References _, INSTALL_GRUB_SCRIPT, logSafe(), and runAsyncStreaming().
Referenced by buildGrubTab().
|
private |
Definition at line 360 of file BackupPage.cpp.
References _, logSafe(), and runAsyncStreaming().
Referenced by buildGrubTab().
|
private |
Definition at line 373 of file BackupPage.cpp.
References _, alive_, buildRecoveryButton, buildRunning, BastionGuard::if_alive(), installGrubButton, logSafe(), pulseTimer, recoveryProgress, recoveryResultLabel, removeGrubButton, and setResult().
Referenced by onBuildRecovery(), onInstallGrub(), and onRemoveGrub().
|
private |
Definition at line 311 of file BackupPage.cpp.
References recoveryResultLabel, and updateRecoveryStatus().
Referenced by runAsyncStreaming().
|
private |
Definition at line 247 of file BackupPage.cpp.
References _, fmtSize(), GRUB_ENTRY, MIN_SPACE_BYTES, RECOVERY_DIR, RECOVERY_KERNEL, RECOVERY_SQUASHFS, recoverySpaceLabel, and recoveryStatusLabel.
Referenced by BackupPage(), and setResult().
|
private |
Definition at line 58 of file BackupPage.hpp.
Referenced by logSafe(), runAsyncStreaming(), and ~BackupPage().
|
private |
Definition at line 25 of file BackupPage.hpp.
Referenced by buildGrubTab(), and runAsyncStreaming().
|
private |
Definition at line 56 of file BackupPage.hpp.
Referenced by runAsyncStreaming().
|
private |
Definition at line 26 of file BackupPage.hpp.
Referenced by buildGrubTab(), and runAsyncStreaming().
|
private |
Definition at line 36 of file BackupPage.hpp.
Referenced by BackupPage(), buildLogSection(), and logSafe().
|
private |
Definition at line 35 of file BackupPage.hpp.
Referenced by buildLogSection(), and logSafe().
|
private |
Definition at line 22 of file BackupPage.hpp.
Referenced by BackupPage().
|
private |
Definition at line 55 of file BackupPage.hpp.
Referenced by runAsyncStreaming(), and ~BackupPage().
|
private |
Definition at line 32 of file BackupPage.hpp.
Referenced by buildGrubTab(), and runAsyncStreaming().
|
private |
Definition at line 31 of file BackupPage.hpp.
Referenced by buildGrubTab(), runAsyncStreaming(), and setResult().
|
private |
Definition at line 30 of file BackupPage.hpp.
Referenced by buildGrubTab(), and updateRecoveryStatus().
|
private |
Definition at line 29 of file BackupPage.hpp.
Referenced by buildGrubTab(), and updateRecoveryStatus().
|
private |
Definition at line 27 of file BackupPage.hpp.
Referenced by buildGrubTab(), and runAsyncStreaming().