#include <UpdatePage.hpp>
Public Member Functions | |
| UpdatePage () | |
| ~UpdatePage () | |
| void | updateSaneSecurity () |
Private Member Functions | |
| bool | checkSaneTimer () |
| void | onSaneAutoToggled () |
| void | onUpdateClicked () |
| void | onServiceToggled () |
| void | onAddSourceClicked () |
| void | onSaveSourcesClicked () |
| void | updateFromExtraSources () |
| bool | checkServiceStatus () |
| void | loadSources () |
| void | saveSources () |
| void | createSourceRow (const SourceItem &src={}) |
| void | testConnection (const std::string &name, const std::string &url, bool auth, const std::string &user) |
| void | logSafe (const std::string &msg) |
| std::string | generateSecretKey () |
| std::string | lookupPassword (const std::string &key) |
| bool | storePassword (const std::string &key, const std::string &password) |
Private Attributes | |
| Gtk::Button | updateButton |
| Gtk::Switch | serviceSwitch |
| Gtk::Label | sourcesLabel |
| Gtk::Button | addSourceButton |
| Gtk::Button | saveSourcesButton |
| Gtk::TextView | outputView |
| Glib::RefPtr< Gtk::TextBuffer > | buffer |
| Gtk::Notebook * | sourcesNotebook = nullptr |
| Gtk::Box * | sourcesBox = nullptr |
| Gtk::Switch | saneAutoSwitch |
| BastionGuard::AliveFlag | alive_ = BastionGuard::make_alive_flag() |
Definition at line 36 of file UpdatePage.hpp.
| UpdatePage::UpdatePage | ( | ) |
Definition at line 52 of file UpdatePage.cpp.
References _, addSourceButton, buffer, checkSaneTimer(), checkServiceStatus(), loadSources(), onAddSourceClicked(), onSaneAutoToggled(), onSaveSourcesClicked(), onServiceToggled(), onUpdateClicked(), outputView, saneAutoSwitch, saveSourcesButton, serviceSwitch, sourcesBox, sourcesLabel, and updateButton.
| UpdatePage::~UpdatePage | ( | ) |
Definition at line 602 of file UpdatePage.cpp.
References alive_, and sourcesNotebook.
|
private |
Definition at line 679 of file UpdatePage.cpp.
Referenced by UpdatePage().
|
private |
Definition at line 111 of file UpdatePage.cpp.
References bg_process::run().
Referenced by UpdatePage().
|
private |
Definition at line 309 of file UpdatePage.cpp.
References _, buffer, lookupPassword(), SourceItem::name, SourceItem::requires_auth, sourcesBox, storePassword(), testConnection(), SourceItem::url, and SourceItem::username.
Referenced by loadSources(), and onAddSourceClicked().
|
private |
Definition at line 593 of file UpdatePage.cpp.
|
private |
Definition at line 508 of file UpdatePage.cpp.
References createSourceRow(), SourceItem::name, SourceItem::requires_auth, SourceItem::url, and SourceItem::username.
Referenced by UpdatePage().
|
private |
Definition at line 670 of file UpdatePage.cpp.
References alive_, buffer, and BastionGuard::if_alive().
Referenced by onUpdateClicked().
|
private |
Definition at line 577 of file UpdatePage.cpp.
References BastionGuard_SCHEMA.
Referenced by createSourceRow(), testConnection(), and updateFromExtraSources().
|
private |
Definition at line 305 of file UpdatePage.cpp.
References createSourceRow().
Referenced by UpdatePage().
|
private |
Definition at line 695 of file UpdatePage.cpp.
References _, buffer, bg_process::run(), and saneAutoSwitch.
Referenced by UpdatePage().
|
private |
Definition at line 472 of file UpdatePage.cpp.
References _, buffer, and saveSources().
Referenced by UpdatePage().
|
private |
Definition at line 116 of file UpdatePage.cpp.
References _, buffer, bg_process::run(), and serviceSwitch.
Referenced by UpdatePage().
|
private |
Definition at line 142 of file UpdatePage.cpp.
References _, alive_, buffer, BastionGuard::if_alive(), logSafe(), bg_process::run(), updateButton, updateFromExtraSources(), and updateSaneSecurity().
Referenced by UpdatePage().
|
private |
Definition at line 477 of file UpdatePage.cpp.
References sourcesBox.
Referenced by onSaveSourcesClicked().
|
private |
Definition at line 563 of file UpdatePage.cpp.
References BastionGuard_SCHEMA.
Referenced by createSourceRow().
|
private |
Definition at line 524 of file UpdatePage.cpp.
References _, buffer, and lookupPassword().
Referenced by createSourceRow().
|
private |
Definition at line 201 of file UpdatePage.cpp.
References _, alive_, buffer, BastionGuard::if_alive(), lookupPassword(), SourceItem::name, SourceItem::requires_auth, sourcesBox, SourceItem::url, and SourceItem::username.
Referenced by onUpdateClicked().
| void UpdatePage::updateSaneSecurity | ( | ) |
Definition at line 612 of file UpdatePage.cpp.
References _, alive_, buffer, BastionGuard::if_alive(), and bg_process::run().
Referenced by onUpdateClicked().
|
private |
Definition at line 45 of file UpdatePage.hpp.
Referenced by UpdatePage().
|
private |
Definition at line 69 of file UpdatePage.hpp.
Referenced by logSafe(), onUpdateClicked(), updateFromExtraSources(), updateSaneSecurity(), and ~UpdatePage().
|
private |
Definition at line 47 of file UpdatePage.hpp.
Referenced by createSourceRow(), logSafe(), onSaneAutoToggled(), onSaveSourcesClicked(), onServiceToggled(), onUpdateClicked(), testConnection(), updateFromExtraSources(), UpdatePage(), and updateSaneSecurity().
|
private |
Definition at line 46 of file UpdatePage.hpp.
Referenced by UpdatePage().
|
private |
Definition at line 50 of file UpdatePage.hpp.
Referenced by onSaneAutoToggled(), and UpdatePage().
|
private |
Definition at line 45 of file UpdatePage.hpp.
Referenced by UpdatePage().
|
private |
Definition at line 43 of file UpdatePage.hpp.
Referenced by onServiceToggled(), and UpdatePage().
|
private |
Definition at line 49 of file UpdatePage.hpp.
Referenced by createSourceRow(), saveSources(), updateFromExtraSources(), and UpdatePage().
|
private |
Definition at line 44 of file UpdatePage.hpp.
Referenced by UpdatePage().
|
private |
Definition at line 48 of file UpdatePage.hpp.
Referenced by ~UpdatePage().
|
private |
Definition at line 42 of file UpdatePage.hpp.
Referenced by onUpdateClicked(), and UpdatePage().