#include <PasswordManagerPage.hpp>
Public Member Functions | |
| PasswordManagerPage () | |
| ~PasswordManagerPage () override | |
Private Member Functions | |
| void | buildUi () |
| void | setVaultState (bool unlocked, const std::string &msg="") |
| void | reload () |
| void | refreshEntries (const std::string &filter="") |
| void | createEntryRow (const PasswordEntry &entry) |
| void | onUnlockClicked () |
| void | onLockClicked () |
| void | onAddClicked () |
| void | onImportClicked () |
| void | onVaultViewClicked () |
| void | onDeleteAllClicked () |
| void | onRefreshClicked () |
| void | onSearchChanged () |
| void | onRevealEntry (const PasswordEntry &entry) |
| void | onEditEntry (const PasswordEntry &entry) |
| void | onDeleteEntry (const PasswordEntry &entry) |
| Gtk::Window * | getParentWindow () |
| void | logSafe (const std::string &msg) |
Private Attributes | |
| PasswordVault | vault_ |
| std::vector< PasswordEntry > | entriesCache_ |
| Gtk::Box | securityBanner_ |
| Gtk::Label | securityIcon_ |
| Gtk::Label | securityLabel_ |
| Gtk::Box | topBar_ |
| Gtk::Button | unlockButton_ |
| Gtk::Button | lockButton_ |
| Gtk::Box | stateBox_ |
| Gtk::Label | stateLabel_ |
| Gtk::Box | actionBar_ |
| Gtk::Button | addButton_ |
| Gtk::Button | importButton_ |
| Gtk::Button | vaultViewButton_ |
| Gtk::Button | refreshButton_ |
| Gtk::Button | deleteAllButton_ |
| Gtk::SearchEntry | searchEntry_ |
| Gtk::ScrolledWindow | listScrolled_ |
| Gtk::Box | entriesBox_ |
| Gtk::ScrolledWindow | logScrolled_ |
| Gtk::TextView | outputView_ |
| Glib::RefPtr< Gtk::TextBuffer > | buffer_ |
| BastionGuard::AliveFlag | alive_ = BastionGuard::make_alive_flag() |
Definition at line 31 of file PasswordManagerPage.hpp.
| PasswordManagerPage::PasswordManagerPage | ( | ) |
Definition at line 32 of file PasswordManagerPage.cpp.
References _, actionBar_, addButton_, buildUi(), deleteAllButton_, entriesBox_, importButton_, PasswordVault::initialize(), lockButton_, onAddClicked(), onDeleteAllClicked(), onImportClicked(), onLockClicked(), onRefreshClicked(), onSearchChanged(), onUnlockClicked(), onVaultViewClicked(), refreshButton_, reload(), searchEntry_, securityBanner_, stateBox_, topBar_, unlockButton_, vault_, and vaultViewButton_.
|
override |
|
private |
Definition at line 73 of file PasswordManagerPage.cpp.
References _, actionBar_, addButton_, buffer_, deleteAllButton_, entriesBox_, importButton_, listScrolled_, lockButton_, logScrolled_, outputView_, refreshButton_, searchEntry_, securityBanner_, securityIcon_, securityLabel_, stateBox_, stateLabel_, topBar_, unlockButton_, and vaultViewButton_.
Referenced by PasswordManagerPage().
|
private |
Definition at line 233 of file PasswordManagerPage.cpp.
References entriesBox_, onDeleteEntry(), onEditEntry(), and onRevealEntry().
Referenced by refreshEntries().
|
private |
Definition at line 581 of file PasswordManagerPage.cpp.
Referenced by onAddClicked(), onDeleteAllClicked(), onDeleteEntry(), onEditEntry(), onImportClicked(), onRevealEntry(), onUnlockClicked(), and onVaultViewClicked().
|
private |
Definition at line 586 of file PasswordManagerPage.cpp.
References alive_, buffer_, and BastionGuard::if_alive().
Referenced by onAddClicked(), onDeleteAllClicked(), onDeleteEntry(), onEditEntry(), onImportClicked(), onLockClicked(), onRefreshClicked(), onRevealEntry(), onUnlockClicked(), and onVaultViewClicked().
|
private |
Definition at line 360 of file PasswordManagerPage.cpp.
References _, PasswordVault::addEntry(), PasswordEntry::created_at, PasswordVault::generateId(), getParentWindow(), PasswordEntry::id, PasswordVault::isUnlocked(), logSafe(), PasswordEntry::name, PasswordVault::nowIso(), PasswordDialog::PasswordDialog(), reload(), PasswordEntry::updated_at, and vault_.
Referenced by PasswordManagerPage().
|
private |
Definition at line 441 of file PasswordManagerPage.cpp.
References _, PasswordVault::deleteAllEntries(), entriesCache_, getParentWindow(), PasswordVault::isUnlocked(), logSafe(), reload(), and vault_.
Referenced by PasswordManagerPage().
|
private |
Definition at line 555 of file PasswordManagerPage.cpp.
References _, PasswordVault::deleteEntry(), getParentWindow(), PasswordEntry::id, PasswordVault::isUnlocked(), logSafe(), PasswordEntry::name, reload(), and vault_.
Referenced by createEntryRow().
|
private |
Definition at line 521 of file PasswordManagerPage.cpp.
References _, alive_, getParentWindow(), PasswordVault::getSecretAsync(), PasswordEntry::id, PasswordVault::isUnlocked(), logSafe(), and vault_.
Referenced by createEntryRow().
|
private |
Definition at line 391 of file PasswordManagerPage.cpp.
References _, PasswordVault::addEntriesBulk(), PasswordVault::generateId(), getParentWindow(), PasswordVault::isUnlocked(), logSafe(), PasswordVault::nowIso(), PasswordImportDialog::PasswordImportDialog(), reload(), and vault_.
Referenced by PasswordManagerPage().
|
private |
Definition at line 352 of file PasswordManagerPage.cpp.
References _, PasswordVault::lock(), logSafe(), setVaultState(), and vault_.
Referenced by PasswordManagerPage().
|
private |
Definition at line 489 of file PasswordManagerPage.cpp.
References _, logSafe(), and reload().
Referenced by PasswordManagerPage().
|
private |
Definition at line 500 of file PasswordManagerPage.cpp.
References _, alive_, getParentWindow(), PasswordVault::getSecretAsync(), PasswordEntry::id, PasswordVault::isUnlocked(), logSafe(), and vault_.
Referenced by createEntryRow().
|
private |
Definition at line 495 of file PasswordManagerPage.cpp.
References refreshEntries(), and searchEntry_.
Referenced by PasswordManagerPage().
|
private |
Definition at line 242 of file PasswordManagerPage.cpp.
References _, PasswordVault::createMasterPassword(), getParentWindow(), PasswordVault::isFirstRun(), PasswordVault::isUnlocked(), logSafe(), setVaultState(), PasswordVault::unlock(), and vault_.
Referenced by PasswordManagerPage().
|
private |
Definition at line 431 of file PasswordManagerPage.cpp.
References _, getParentWindow(), PasswordVault::isUnlocked(), logSafe(), PasswordVaultView::PasswordVaultView(), and vault_.
Referenced by PasswordManagerPage().
|
private |
Definition at line 218 of file PasswordManagerPage.cpp.
References createEntryRow(), entriesBox_, and entriesCache_.
Referenced by onSearchChanged(), and reload().
|
private |
Definition at line 213 of file PasswordManagerPage.cpp.
References entriesCache_, PasswordVault::loadIndex(), refreshEntries(), searchEntry_, and vault_.
Referenced by onAddClicked(), onDeleteAllClicked(), onDeleteEntry(), onImportClicked(), onRefreshClicked(), and PasswordManagerPage().
|
private |
Definition at line 198 of file PasswordManagerPage.cpp.
References _, stateBox_, and stateLabel_.
Referenced by onLockClicked(), and onUnlockClicked().
|
private |
Definition at line 49 of file PasswordManagerPage.hpp.
Referenced by buildUi(), and PasswordManagerPage().
|
private |
Definition at line 50 of file PasswordManagerPage.hpp.
Referenced by buildUi(), and PasswordManagerPage().
|
private |
Definition at line 86 of file PasswordManagerPage.hpp.
Referenced by logSafe(), onEditEntry(), onRevealEntry(), and ~PasswordManagerPage().
|
private |
Definition at line 62 of file PasswordManagerPage.hpp.
|
private |
Definition at line 54 of file PasswordManagerPage.hpp.
Referenced by buildUi(), and PasswordManagerPage().
|
private |
Definition at line 58 of file PasswordManagerPage.hpp.
Referenced by buildUi(), createEntryRow(), PasswordManagerPage(), and refreshEntries().
|
private |
Definition at line 38 of file PasswordManagerPage.hpp.
Referenced by onDeleteAllClicked(), refreshEntries(), and reload().
|
private |
Definition at line 51 of file PasswordManagerPage.hpp.
Referenced by buildUi(), and PasswordManagerPage().
|
private |
Definition at line 57 of file PasswordManagerPage.hpp.
Referenced by buildUi().
|
private |
Definition at line 44 of file PasswordManagerPage.hpp.
Referenced by buildUi(), and PasswordManagerPage().
|
private |
Definition at line 60 of file PasswordManagerPage.hpp.
Referenced by buildUi().
|
private |
Definition at line 61 of file PasswordManagerPage.hpp.
Referenced by buildUi().
|
private |
Definition at line 53 of file PasswordManagerPage.hpp.
Referenced by buildUi(), and PasswordManagerPage().
|
private |
Definition at line 55 of file PasswordManagerPage.hpp.
Referenced by buildUi(), onSearchChanged(), PasswordManagerPage(), and reload().
|
private |
Definition at line 39 of file PasswordManagerPage.hpp.
Referenced by buildUi(), and PasswordManagerPage().
|
private |
Definition at line 40 of file PasswordManagerPage.hpp.
Referenced by buildUi().
|
private |
Definition at line 41 of file PasswordManagerPage.hpp.
Referenced by buildUi().
|
private |
Definition at line 45 of file PasswordManagerPage.hpp.
Referenced by buildUi(), PasswordManagerPage(), and setVaultState().
|
private |
Definition at line 46 of file PasswordManagerPage.hpp.
Referenced by buildUi(), and setVaultState().
|
private |
Definition at line 42 of file PasswordManagerPage.hpp.
Referenced by buildUi(), and PasswordManagerPage().
|
private |
Definition at line 43 of file PasswordManagerPage.hpp.
Referenced by buildUi(), and PasswordManagerPage().
|
private |
Definition at line 37 of file PasswordManagerPage.hpp.
Referenced by onAddClicked(), onDeleteAllClicked(), onDeleteEntry(), onEditEntry(), onImportClicked(), onLockClicked(), onRevealEntry(), onUnlockClicked(), onVaultViewClicked(), PasswordManagerPage(), and reload().
|
private |
Definition at line 52 of file PasswordManagerPage.hpp.
Referenced by buildUi(), and PasswordManagerPage().