#include <IdentityLeakPage.hpp>
Public Member Functions | |
| IdentityLeakPage (Gtk::Window &parent) | |
| ~IdentityLeakPage () override | |
Private Member Functions | |
| void | appendLog (const Glib::ustring &text) |
| void | startMonitor (const std::string &email) |
| void | stopMonitor () |
| void | onCheckClicked () |
| void | onCheckPasswordClicked () |
| void | showPrivacyPopup () |
| void | showLeakCheckDisclaimer () |
| void | onToggleApiVisibility () |
| void | onToggleLeakCheckApiVisibility () |
| void | onSaveHibpApi () |
| void | onSaveLeakCheckApi () |
| void | onMonitorToggled () |
Private Attributes | |
| Gtk::Window & | parentWindow |
| Gtk::Label | titleLabel |
| Gtk::Entry | emailEntry |
| Gtk::Entry | apiKeyEntry |
| Gtk::Button | apiToggleButton |
| Gtk::Button | saveHibpButton |
| Gtk::Entry | passwordEntry |
| Gtk::Button | checkPasswordButton |
| Gtk::Entry | leakCheckApiEntry |
| Gtk::Button | leakCheckToggleButton |
| Gtk::Button | saveLeakCheckButton |
| Gtk::CheckButton | monitorToggle |
| Gtk::Button | checkButton |
| Gtk::ScrolledWindow | logScroller |
| Gtk::TextView | logView |
| Glib::RefPtr< Gtk::TextBuffer > | logBuffer |
| std::thread | workerThread |
| std::atomic< bool > | running { false } |
| std::unique_ptr< LeakMonitor > | monitor |
| std::atomic< bool > | monitorActive { false } |
| BastionGuard::AliveFlag | alive_ = BastionGuard::make_alive_flag() |
Definition at line 33 of file IdentityLeakPage.hpp.
|
explicit |
Definition at line 31 of file IdentityLeakPage.cpp.
References _, apiKeyEntry, apiToggleButton, checkButton, checkPasswordButton, emailEntry, IdentityLeakConfig::hibpApiKey(), leakCheckApiEntry, IdentityLeakConfig::leakCheckApiKey(), leakCheckToggleButton, logBuffer, logScroller, logView, IdentityLeakConfig::monitorEnabled(), monitorToggle, onCheckClicked(), onCheckPasswordClicked(), onMonitorToggled(), onSaveHibpApi(), onSaveLeakCheckApi(), onToggleApiVisibility(), onToggleLeakCheckApiVisibility(), parentWindow, passwordEntry, saveHibpButton, saveLeakCheckButton, showLeakCheckDisclaimer(), and showPrivacyPopup().
|
override |
Definition at line 186 of file IdentityLeakPage.cpp.
References alive_, running, stopMonitor(), and workerThread.
|
private |
Definition at line 199 of file IdentityLeakPage.cpp.
References alive_, BastionGuard::if_alive(), and logBuffer.
Referenced by onCheckClicked(), onCheckPasswordClicked(), onMonitorToggled(), onSaveHibpApi(), onSaveLeakCheckApi(), and startMonitor().
|
private |
Definition at line 298 of file IdentityLeakPage.cpp.
References _, appendLog(), emailEntry, logBuffer, IdentityLeakConfig::monitorEnabled(), LeakCheckWorker::run(), running, startMonitor(), stopMonitor(), and workerThread.
Referenced by IdentityLeakPage().
|
private |
Definition at line 357 of file IdentityLeakPage.cpp.
References _, appendLog(), HibpPasswordProvider::checkPassword(), and passwordEntry.
Referenced by IdentityLeakPage().
|
private |
Definition at line 283 of file IdentityLeakPage.cpp.
References _, appendLog(), monitorToggle, IdentityLeakConfig::setMonitorEnabled(), and stopMonitor().
Referenced by IdentityLeakPage().
|
private |
Definition at line 231 of file IdentityLeakPage.cpp.
References _, apiKeyEntry, appendLog(), and IdentityLeakConfig::setHibpApiKey().
Referenced by IdentityLeakPage().
|
private |
Definition at line 242 of file IdentityLeakPage.cpp.
References _, appendLog(), leakCheckApiEntry, and IdentityLeakConfig::setLeakCheckApiKey().
Referenced by IdentityLeakPage().
|
private |
Definition at line 214 of file IdentityLeakPage.cpp.
References _, apiKeyEntry, and apiToggleButton.
Referenced by IdentityLeakPage().
|
private |
Definition at line 222 of file IdentityLeakPage.cpp.
References _, leakCheckApiEntry, and leakCheckToggleButton.
Referenced by IdentityLeakPage().
|
private |
Definition at line 466 of file IdentityLeakPage.cpp.
References _, and resource().
Referenced by IdentityLeakPage().
|
private |
Definition at line 392 of file IdentityLeakPage.cpp.
References _, and resource().
Referenced by IdentityLeakPage().
|
private |
Definition at line 254 of file IdentityLeakPage.cpp.
References _, appendLog(), monitor, and monitorActive.
Referenced by onCheckClicked().
|
private |
Definition at line 271 of file IdentityLeakPage.cpp.
References monitor, and monitorActive.
Referenced by onCheckClicked(), onMonitorToggled(), and ~IdentityLeakPage().
|
private |
Definition at line 84 of file IdentityLeakPage.hpp.
Referenced by appendLog(), and ~IdentityLeakPage().
|
private |
Definition at line 44 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage(), onSaveHibpApi(), and onToggleApiVisibility().
|
private |
Definition at line 45 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage(), and onToggleApiVisibility().
|
private |
Definition at line 55 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage().
|
private |
Definition at line 48 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage().
|
private |
Definition at line 42 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage(), and onCheckClicked().
|
private |
Definition at line 50 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage(), onSaveLeakCheckApi(), and onToggleLeakCheckApiVisibility().
|
private |
Definition at line 51 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage(), and onToggleLeakCheckApiVisibility().
|
private |
Definition at line 59 of file IdentityLeakPage.hpp.
Referenced by appendLog(), IdentityLeakPage(), and onCheckClicked().
|
private |
Definition at line 57 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage().
|
private |
Definition at line 58 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage().
|
private |
Definition at line 64 of file IdentityLeakPage.hpp.
Referenced by startMonitor(), and stopMonitor().
|
private |
Definition at line 65 of file IdentityLeakPage.hpp.
Referenced by startMonitor(), and stopMonitor().
|
private |
Definition at line 54 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage(), and onMonitorToggled().
|
private |
Definition at line 39 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage().
|
private |
Definition at line 47 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage(), and onCheckPasswordClicked().
|
private |
Definition at line 62 of file IdentityLeakPage.hpp.
Referenced by onCheckClicked(), and ~IdentityLeakPage().
|
private |
Definition at line 46 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage().
|
private |
Definition at line 52 of file IdentityLeakPage.hpp.
Referenced by IdentityLeakPage().
|
private |
Definition at line 41 of file IdentityLeakPage.hpp.
|
private |
Definition at line 61 of file IdentityLeakPage.hpp.
Referenced by onCheckClicked(), and ~IdentityLeakPage().