#include <Backend.hpp>
Classes | |
| struct | ScanStatus |
| struct | SambaScanState |
Public Member Functions | |
| ~Backend () | |
| void | setupAlertListener () |
| void | moveToQuarantine (const std::string &) |
| void | sendRansomwareAlert (const std::string &path, const std::string &family) |
| bool | isSambaScanRunning () |
| void | start_antiransom () |
| void | stop_antiransom () |
| sigc::signal< void(const std::string &)> & | signal_antiransom_event () |
| bool | updateYaraRules (std::function< void(int, int, const std::string &)> progressCallback=nullptr) |
| bool | reload_dnsmasq () |
| bool | updatePhishLists () |
| bool | isPhishAutoUpdateEnabled () |
| bool | enablePhishAutoUpdate (bool enable) |
| std::vector< std::string > | getWhitelist () const |
| void | addToWhitelist (const std::string &domain) |
| void | removeFromWhitelist (const std::string &domain) |
| void | saveWhitelist () const |
| void | loadWhitelist () |
| void | mergeWhitelistSources () |
| bool | isBankDomain (const std::string &host) const |
| bool | updateBankListFromURL (const std::string &source_url) |
| std::string | checkUrl (const std::string &url) |
| bool | isGoogleSafeEnabled () const |
| void | setGoogleSafeEnabled (bool enabled) |
| void | setGoogleSafeApiKey (const std::string &key) |
| std::string | getGoogleSafeApiKey () const |
| void | saveGoogleSafeConfig () |
| bool | testGoogleSafeKey () |
| void | start_antiphish () |
| void | stop_antiphish () |
| bool | isAntiphishActive () |
| sigc::signal< void(const std::string &)> & | signal_antiphish_event () |
| bool | updateSanesecurityDB (std::function< void(int, int, const std::string &)> progressCallback=nullptr) |
| void | scanSambaDir (const std::string &dir) |
| void | ensureQuarantinePath () |
| void | setPhishingPort (int port) |
| int | getPhishingPort () const |
| std::string | getSambaConfigPath () const |
| std::vector< std::string > | getSambaDirs () |
| void | saveSambaConfig (bool enabled, const std::vector< std::string > &dirs) |
| bool | addSambaDir (const std::string &dir) |
| bool | removeSambaDir (const std::string &dir) |
| bool | isSambaEnabled () |
| void | setSambaEnabled (bool enabled) |
| void | scanAllSambaDirs () |
| void | resetSambaStop () |
| void | requestStopSambaScan () |
| void | saveSMBCredentials (const std::string &url, const std::string &user, const std::string &pass) |
| std::pair< std::string, std::string > | getCreds (const std::string &url) |
| SMBCCTX * | createThreadSmbContext () |
| void | smb_collect_files (SMBCCTX *ctx, const std::string &url, std::vector< std::string > &out) |
| void | smb_collect_files_impl (SMBCCTX *ctx, const std::string &url, std::vector< std::string > &out) |
| bool | smb_read_file_with_ctx (SMBCCTX *ctx, const std::string &smbPath, std::function< bool(const char *, size_t)>) |
| bool | smb_copy_file (const std::string &smbPath, const std::filesystem::path &dest) |
| ScanStatus | get_current_scan_files () |
| SambaScanState | get_current_scan_files () const |
| void | applyFirewallFromBlacklist (const std::vector< std::string > &blacklistLines) |
| void | setFirewallType (FirewallType fw) |
| FirewallType | getFirewallType () const |
| void | setFirewallEnabled (bool enabled) |
| bool | isFirewallEnabled () const |
| void | loadFirewallConfig () |
| void | saveFirewallConfig () const |
| void | applyFirewallFromPhishingBlacklist () |
| void | scheduleFirewallApply (const std::string &inputPath) |
Static Public Member Functions | |
| static Backend & | instance () |
| static std::string | getAppVersion () |
| static int | getAppBuild () |
| static bool | enableClamonacc () |
| static bool | disableClamonacc () |
| static bool | isClamonaccActive () |
| static std::string | getClamonaccStatus () |
| static void | setQuarantinePath (const std::string &path) |
| static std::string | getQuarantinePath () |
| static std::vector< std::string > | getClamonaccLogs () |
| static std::string | getLastUpdateDate () |
| static std::string | getDbVersion () |
| static std::vector< std::string > | getOnAccessPaths () |
| static std::vector< std::string > | getOnAccessEvents () |
| static bool | installClamdIfMissing () |
| static bool | isAntiransomActive () |
| static void | smb_auth_fn (SMBCCTX *context, const char *srv, const char *shr, char *wg, int wglen, char *un, int unlen, char *pw, int pwlen) |
| static bool | isValidSMB (const std::string &url) |
| static std::string | resolveSambaDir (const std::string &path) |
Public Attributes | |
| std::function< void(const std::string &)> | onBankListReload |
| std::atomic< bool > | samba_stop_requested { false } |
| std::map< std::string, std::pair< std::string, std::string > > | smb_credentials |
| std::function< void(const std::string &, float)> | samba_progress_callback = nullptr |
| SambaScanState | samba_scan_state |
Private Member Functions | |
| Backend () | |
| Backend (const Backend &)=delete | |
| Backend & | operator= (const Backend &)=delete |
| void | initSambaClient () |
| std::string | getSambaCredsPath () const |
| void | loadSMBCredentials () |
Private Attributes | |
| AntiRansomEngine | antiransom_ |
| sigc::signal< void(const std::string &)> | antiransom_signal_ |
| std::function< void(int, int, const std::string &)> | progressCallback_ |
| std::mutex | smb_mutex |
| std::unique_ptr< WebProbe > | webprobe_ |
| std::vector< std::string > | whitelist_ |
| bool | googleSafeEnabled_ = false |
| std::string | googleSafeApiKey_ |
| bool | firewallEnabled_ = false |
| FirewallType | firewallType_ = FirewallType::NONE |
| SMBCCTX * | smb_context = nullptr |
| std::string | samba_last_temp_dir |
| float | samba_last_progress = 0.0f |
Definition at line 36 of file Backend.hpp.
|
default |
References addToWhitelist(), disableClamonacc(), enableClamonacc(), enablePhishAutoUpdate(), getAppBuild(), getAppVersion(), getClamonaccLogs(), getClamonaccStatus(), getDbVersion(), getLastUpdateDate(), getOnAccessEvents(), getOnAccessPaths(), getQuarantinePath(), getWhitelist(), installClamdIfMissing(), isAntiransomActive(), isBankDomain(), isClamonaccActive(), isPhishAutoUpdateEnabled(), isSambaScanRunning(), loadWhitelist(), mergeWhitelistSources(), moveToQuarantine(), reload_dnsmasq(), removeFromWhitelist(), saveWhitelist(), sendRansomwareAlert(), setQuarantinePath(), setupAlertListener(), signal_antiransom_event(), start_antiransom(), stop_antiransom(), updatePhishLists(), and updateYaraRules().
|
private |
Definition at line 703 of file Backend.cpp.
References _, antiransom_, FirewallDetector::detectFirewall(), ensureQuarantinePath(), FIREWALLD, firewallType_, googleSafeApiKey_, googleSafeEnabled_, initSambaClient(), loadFirewallConfig(), loadQuarantinePathFromConfig(), loadSMBCredentials(), loadWhitelist(), NONE, read_ports_from_conf(), resource(), setupAlertListener(), UFW, updatePhishLists(), webprobe_, and whitelist_.
Referenced by Backend(), instance(), and operator=().
| bool Backend::addSambaDir | ( | const std::string & | dir | ) |
| void Backend::addToWhitelist | ( | const std::string & | domain | ) |
Definition at line 2913 of file Backend.cpp.
References saveWhitelist(), and whitelist_.
Referenced by ~Backend().
| void Backend::applyFirewallFromBlacklist | ( | const std::vector< std::string > & | blacklistLines | ) |
Definition at line 3092 of file Backend.cpp.
References _, firewallEnabled_, firewallType_, NONE, and scheduleFirewallApply().
Referenced by updatePhishLists().
| void Backend::applyFirewallFromPhishingBlacklist | ( | ) |
Definition at line 3174 of file Backend.cpp.
References _, firewallEnabled_, firewallType_, NONE, and scheduleFirewallApply().
| std::string Backend::checkUrl | ( | const std::string & | url | ) |
Definition at line 1629 of file Backend.cpp.
References antiphish_signal_, and webprobe_.
| SMBCCTX * Backend::createThreadSmbContext | ( | ) |
Definition at line 1871 of file Backend.cpp.
References smb_auth_fn().
Referenced by scanSambaDir(), and smb_copy_file().
|
static |
Definition at line 461 of file Backend.cpp.
References findClamonaccService(), and bg_process::run().
Referenced by ~Backend().
|
static |
Definition at line 455 of file Backend.cpp.
References findClamonaccService(), and bg_process::run().
Referenced by ~Backend().
| bool Backend::enablePhishAutoUpdate | ( | bool | enable | ) |
Definition at line 1732 of file Backend.cpp.
References _, and bg_process::run().
Referenced by SettingsPage::build_antiphish_tab(), and ~Backend().
| void Backend::ensureQuarantinePath | ( | ) |
Definition at line 2745 of file Backend.cpp.
References _, and getQuarantinePath().
Referenced by Backend(), getQuarantinePath(), and setQuarantinePath().
| Backend::ScanStatus Backend::get_current_scan_files | ( | ) |
Definition at line 2985 of file Backend.cpp.
References Backend::SambaScanState::current_file, Backend::ScanStatus::current_scanning, Backend::ScanStatus::files, Backend::SambaScanState::infected, Backend::ScanStatus::infected, Backend::SambaScanState::log, Backend::ScanStatus::progress, samba_last_progress, samba_last_temp_dir, samba_scan_state, Backend::SambaScanState::scan_active, Backend::ScanStatus::scan_active, and Backend::ScanStatus::temp_dir.
Referenced by SambaPage::onScanNow().
|
inline |
|
static |
Definition at line 78 of file Backend.cpp.
Referenced by DashboardPage::check_updates_async(), and ~Backend().
|
static |
Definition at line 70 of file Backend.cpp.
Referenced by DashboardPage::check_updates_async(), and ~Backend().
|
static |
Definition at line 505 of file Backend.cpp.
References CLAMONACC_SERVICES, and bg_process::run().
Referenced by LogPage::update_logs(), and ~Backend().
|
static |
Definition at line 484 of file Backend.cpp.
References _, and isClamonaccActive().
Referenced by ~Backend().
| std::pair< std::string, std::string > Backend::getCreds | ( | const std::string & | url | ) |
Definition at line 2028 of file Backend.cpp.
References b64_decode(), decrypt_pass(), and getSambaCredsPath().
Referenced by smb_auth_fn().
|
static |
Definition at line 556 of file Backend.cpp.
References _.
Referenced by DashboardPage::update_from_logs(), and ~Backend().
| FirewallType Backend::getFirewallType | ( | ) | const |
Definition at line 3122 of file Backend.cpp.
References firewallType_.
|
inline |
|
static |
Definition at line 522 of file Backend.cpp.
References _.
Referenced by DashboardPage::update_from_logs(), and ~Backend().
|
static |
Definition at line 620 of file Backend.cpp.
References CLAMONACC_SERVICES, and bg_process::run().
Referenced by DashboardPage::update_from_logs(), and ~Backend().
|
static |
Definition at line 603 of file Backend.cpp.
Referenced by ~Backend().
| int Backend::getPhishingPort | ( | ) | const |
Definition at line 2981 of file Backend.cpp.
|
static |
Definition at line 496 of file Backend.cpp.
References ensureQuarantinePath(), loadQuarantinePathFromConfig(), and quarantinePath.
Referenced by ensureQuarantinePath(), Quarantine::getQuarantinePath(), and ~Backend().
| std::string Backend::getSambaConfigPath | ( | ) | const |
Definition at line 1754 of file Backend.cpp.
Referenced by getSambaDirs(), isSambaEnabled(), removeSambaDir(), saveSambaConfig(), and setSambaEnabled().
|
private |
Definition at line 248 of file Backend.cpp.
Referenced by getCreds(), loadSMBCredentials(), and saveSMBCredentials().
| std::vector< std::string > Backend::getSambaDirs | ( | ) |
Definition at line 1764 of file Backend.cpp.
References getSambaConfigPath(), and trim().
Referenced by SambaPage::onScanNow(), removeSambaDir(), and scanAllSambaDirs().
| std::vector< std::string > Backend::getWhitelist | ( | ) | const |
|
private |
|
static |
Definition at line 664 of file Backend.cpp.
References _, detectDistro(), installPackages(), and isClamdInstalled().
Referenced by SettingsPage::onSave(), and ~Backend().
|
static |
Definition at line 830 of file Backend.cpp.
References Backend().
Referenced by BankPage::auto_update_bank_list(), SettingsPage::build_antiphish_tab(), SettingsPage::build_antiransom_tab(), SettingsPage::build_whitelist_tab(), WebProbe::check_url(), SambaPage::loadConfig(), main(), BankPage::on_refresh_clicked(), SambaPage::onAddDir(), SettingsPage::onAntiphishToggled(), SettingsPage::onAntiransomToggled(), SambaPage::onScanNow(), SambaPage::saveConfig(), and smb_auth_fn().
| bool Backend::isAntiphishActive | ( | ) |
Definition at line 1618 of file Backend.cpp.
References bg_process::run().
|
static |
Definition at line 1613 of file Backend.cpp.
References bg_process::run().
Referenced by ~Backend().
| bool Backend::isBankDomain | ( | const std::string & | host | ) | const |
|
static |
Definition at line 467 of file Backend.cpp.
References CLAMONACC_SERVICES, bg_process::Result::output, and bg_process::run().
Referenced by getClamonaccStatus(), DashboardPage::update_from_logs(), and ~Backend().
| bool Backend::isFirewallEnabled | ( | ) | const |
Definition at line 3131 of file Backend.cpp.
References firewallEnabled_.
Referenced by updatePhishLists().
|
inline |
| bool Backend::isPhishAutoUpdateEnabled | ( | ) |
Definition at line 1727 of file Backend.cpp.
References bg_process::run().
Referenced by ~Backend().
| bool Backend::isSambaEnabled | ( | ) |
Definition at line 260 of file Backend.cpp.
References getSambaConfigPath().
Referenced by addSambaDir(), and removeSambaDir().
| bool Backend::isSambaScanRunning | ( | ) |
Definition at line 241 of file Backend.cpp.
References bg_process::run().
Referenced by ~Backend().
|
static |
Definition at line 1919 of file Backend.cpp.
Referenced by SambaPage::onAddDir().
| void Backend::loadFirewallConfig | ( | ) |
Definition at line 3135 of file Backend.cpp.
References FIREWALLD, firewallEnabled_, firewallType_, and UFW.
Referenced by Backend().
|
private |
Definition at line 1993 of file Backend.cpp.
References _, b64_decode(), getSambaCredsPath(), and smb_credentials.
Referenced by Backend().
| void Backend::loadWhitelist | ( | ) |
Definition at line 2943 of file Backend.cpp.
References _, and whitelist_.
Referenced by Backend(), mergeWhitelistSources(), and ~Backend().
| void Backend::mergeWhitelistSources | ( | ) |
Definition at line 1039 of file Backend.cpp.
References _, loadWhitelist(), saveWhitelist(), and whitelist_.
Referenced by updatePhishLists(), and ~Backend().
| void Backend::moveToQuarantine | ( | const std::string & | path | ) |
Definition at line 2722 of file Backend.cpp.
References _, Quarantine::move(), and Utils::show_message().
Referenced by ~Backend().
| bool Backend::reload_dnsmasq | ( | ) |
Definition at line 2966 of file Backend.cpp.
References _, and bg_process::run().
Referenced by ~Backend().
| void Backend::removeFromWhitelist | ( | const std::string & | domain | ) |
Definition at line 2922 of file Backend.cpp.
References saveWhitelist(), and whitelist_.
Referenced by ~Backend().
| bool Backend::removeSambaDir | ( | const std::string & | dir | ) |
Definition at line 2577 of file Backend.cpp.
References _, getSambaConfigPath(), getSambaDirs(), and isSambaEnabled().
Referenced by addSambaDir().
| void Backend::requestStopSambaScan | ( | ) |
Definition at line 2572 of file Backend.cpp.
References samba_stop_requested.
Referenced by addSambaDir(), and SambaPage::onScanNow().
| void Backend::resetSambaStop | ( | ) |
Definition at line 2568 of file Backend.cpp.
References samba_stop_requested.
Referenced by addSambaDir(), and SambaPage::onScanNow().
|
static |
Definition at line 2065 of file Backend.cpp.
Referenced by SambaPage::onAddDir().
| void Backend::saveFirewallConfig | ( | ) | const |
Definition at line 3155 of file Backend.cpp.
References FIREWALLD, firewallEnabled_, firewallType_, and UFW.
Referenced by setFirewallEnabled(), and setFirewallType().
| void Backend::saveGoogleSafeConfig | ( | ) |
Definition at line 1648 of file Backend.cpp.
References _, googleSafeApiKey_, and googleSafeEnabled_.
Referenced by SettingsPage::build_antiphish_tab().
| void Backend::saveSambaConfig | ( | bool | enabled, |
| const std::vector< std::string > & | dirs ) |
Definition at line 2608 of file Backend.cpp.
References getSambaConfigPath(), and trim().
Referenced by SambaPage::saveConfig().
| void Backend::saveSMBCredentials | ( | const std::string & | url, |
| const std::string & | user, | ||
| const std::string & | pass ) |
Definition at line 1930 of file Backend.cpp.
References _, b64_decode(), b64_encode(), decrypt_pass(), encrypt_pass(), getSambaCredsPath(), and smb_credentials.
Referenced by SambaPage::onAddDir().
| void Backend::saveWhitelist | ( | ) | const |
Definition at line 2930 of file Backend.cpp.
References _, and whitelist_.
Referenced by addToWhitelist(), mergeWhitelistSources(), removeFromWhitelist(), and ~Backend().
| void Backend::scanAllSambaDirs | ( | ) |
Definition at line 2773 of file Backend.cpp.
References getSambaDirs(), samba_progress_callback, samba_stop_requested, and scanSambaDir().
Referenced by addSambaDir().
| void Backend::scanSambaDir | ( | const std::string & | dir | ) |
Definition at line 2280 of file Backend.cpp.
References _, createThreadSmbContext(), Backend::SambaScanState::current_file, bg_process::Result::exit_code, Backend::SambaScanState::infected, Backend::SambaScanState::log, make_temp_scan_dir(), bg_process::run(), samba_last_progress, samba_last_temp_dir, samba_progress_callback, samba_scan_state, samba_stop_requested, Backend::SambaScanState::scan_active, sendRansomwareAlert(), smb_collect_files(), smb_read_file_with_ctx(), and trim().
Referenced by SambaPage::onScanNow(), and scanAllSambaDirs().
| void Backend::scheduleFirewallApply | ( | const std::string & | inputPath | ) |
Definition at line 3207 of file Backend.cpp.
References _.
Referenced by applyFirewallFromBlacklist(), and applyFirewallFromPhishingBlacklist().
| void Backend::sendRansomwareAlert | ( | const std::string & | path, |
| const std::string & | family ) |
Definition at line 2658 of file Backend.cpp.
References _.
Referenced by scanSambaDir(), and ~Backend().
| void Backend::setFirewallEnabled | ( | bool | enabled | ) |
Definition at line 3126 of file Backend.cpp.
References firewallEnabled_, and saveFirewallConfig().
Referenced by SettingsPage::build_antiphish_tab().
| void Backend::setFirewallType | ( | FirewallType | fw | ) |
Definition at line 3112 of file Backend.cpp.
References firewallEnabled_, firewallType_, NONE, and saveFirewallConfig().
|
inline |
Definition at line 87 of file Backend.hpp.
References googleSafeApiKey_.
Referenced by SettingsPage::build_antiphish_tab().
|
inline |
Definition at line 86 of file Backend.hpp.
References googleSafeEnabled_.
Referenced by SettingsPage::build_antiphish_tab().
| void Backend::setPhishingPort | ( | int | port | ) |
Definition at line 2977 of file Backend.cpp.
References _.
|
static |
Definition at line 490 of file Backend.cpp.
References ensureQuarantinePath(), persistQuarantinePath(), and quarantinePath.
Referenced by SettingsPage::onQuarantineClicked(), and ~Backend().
| void Backend::setSambaEnabled | ( | bool | enabled | ) |
Definition at line 272 of file Backend.cpp.
References _, and getSambaConfigPath().
Referenced by addSambaDir().
| void Backend::setupAlertListener | ( | ) |
Definition at line 2620 of file Backend.cpp.
References _.
Referenced by Backend(), and ~Backend().
| sigc::signal< void(const std::string &)> & Backend::signal_antiphish_event | ( | ) |
Definition at line 1641 of file Backend.cpp.
References antiphish_signal_.
| sigc::signal< void(const std::string &)> & Backend::signal_antiransom_event | ( | ) |
Definition at line 1623 of file Backend.cpp.
References antiransom_signal_.
Referenced by ~Backend().
|
static |
Definition at line 1891 of file Backend.cpp.
References getCreds(), and instance().
Referenced by createThreadSmbContext().
| void Backend::smb_collect_files | ( | SMBCCTX * | ctx, |
| const std::string & | url, | ||
| std::vector< std::string > & | out ) |
Definition at line 2076 of file Backend.cpp.
References _, and smb_collect_files_impl().
Referenced by scanSambaDir().
| void Backend::smb_collect_files_impl | ( | SMBCCTX * | ctx, |
| const std::string & | url, | ||
| std::vector< std::string > & | out ) |
Definition at line 2091 of file Backend.cpp.
References _, and smb_collect_files_impl().
Referenced by smb_collect_files(), and smb_collect_files_impl().
| bool Backend::smb_copy_file | ( | const std::string & | smbPath, |
| const std::filesystem::path & | dest ) |
Definition at line 2200 of file Backend.cpp.
References _, createThreadSmbContext(), and smb_read_file_with_ctx().
| bool Backend::smb_read_file_with_ctx | ( | SMBCCTX * | ctx, |
| const std::string & | smbPath, | ||
| std::function< bool(const char *, size_t)> | onChunk ) |
Definition at line 2153 of file Backend.cpp.
References _.
Referenced by scanSambaDir(), and smb_copy_file().
| void Backend::start_antiphish | ( | ) |
Definition at line 1520 of file Backend.cpp.
References _, and bg_process::run().
Referenced by SettingsPage::onAntiphishToggled().
| void Backend::start_antiransom | ( | ) |
Definition at line 837 of file Backend.cpp.
References _, and bg_process::run().
Referenced by SettingsPage::onAntiransomToggled(), and ~Backend().
| void Backend::stop_antiphish | ( | ) |
Definition at line 1530 of file Backend.cpp.
References _, and bg_process::run().
Referenced by SettingsPage::onAntiphishToggled().
| void Backend::stop_antiransom | ( | ) |
Definition at line 847 of file Backend.cpp.
References _, and bg_process::run().
Referenced by SettingsPage::onAntiransomToggled(), and ~Backend().
| bool Backend::testGoogleSafeKey | ( | ) |
Definition at line 1680 of file Backend.cpp.
References _, and googleSafeApiKey_.
Referenced by SettingsPage::build_antiphish_tab().
| bool Backend::updateBankListFromURL | ( | const std::string & | source_url | ) |
Definition at line 2805 of file Backend.cpp.
References _.
Referenced by BankPage::auto_update_bank_list(), and BankPage::on_refresh_clicked().
| bool Backend::updatePhishLists | ( | ) |
Definition at line 1086 of file Backend.cpp.
References _, applyFirewallFromBlacklist(), copy_to_final(), firewallType_, getRuntimeDataDir(), isFirewallEnabled(), mergeWhitelistSources(), NONE, bg_process::run(), run_phishing_updater_script(), and trim().
Referenced by Backend(), SettingsPage::build_antiphish_tab(), SettingsPage::build_whitelist_tab(), main(), and ~Backend().
| bool Backend::updateSanesecurityDB | ( | std::function< void(int, int, const std::string &)> | progressCallback = nullptr | ) |
Definition at line 1542 of file Backend.cpp.
References _, copy_to_final(), bg_process::Result::exit_code, getRuntimeDataDir(), install_to_system_data(), and bg_process::run().
Referenced by SettingsPage::build_antiransom_tab().
| bool Backend::updateYaraRules | ( | std::function< void(int, int, const std::string &)> | progressCallback = nullptr | ) |
Definition at line 857 of file Backend.cpp.
References _, getRuntimeDataDir(), bg_process::Result::ok(), bg_process::Result::output, and bg_process::run().
Referenced by SettingsPage::build_antiransom_tab(), and ~Backend().
|
private |
Definition at line 198 of file Backend.hpp.
Referenced by Backend().
|
private |
Definition at line 199 of file Backend.hpp.
Referenced by signal_antiransom_event().
|
private |
Definition at line 207 of file Backend.hpp.
Referenced by applyFirewallFromBlacklist(), applyFirewallFromPhishingBlacklist(), isFirewallEnabled(), loadFirewallConfig(), saveFirewallConfig(), setFirewallEnabled(), and setFirewallType().
|
private |
Definition at line 208 of file Backend.hpp.
Referenced by applyFirewallFromBlacklist(), applyFirewallFromPhishingBlacklist(), Backend(), getFirewallType(), loadFirewallConfig(), saveFirewallConfig(), setFirewallType(), and updatePhishLists().
|
private |
Definition at line 206 of file Backend.hpp.
Referenced by Backend(), getGoogleSafeApiKey(), saveGoogleSafeConfig(), setGoogleSafeApiKey(), and testGoogleSafeKey().
|
private |
Definition at line 205 of file Backend.hpp.
Referenced by Backend(), isGoogleSafeEnabled(), saveGoogleSafeConfig(), and setGoogleSafeEnabled().
| std::function<void(const std::string&)> Backend::onBankListReload |
Definition at line 80 of file Backend.hpp.
|
private |
Definition at line 200 of file Backend.hpp.
|
private |
Definition at line 214 of file Backend.hpp.
Referenced by get_current_scan_files(), and scanSambaDir().
|
private |
Definition at line 213 of file Backend.hpp.
Referenced by get_current_scan_files(), and scanSambaDir().
| std::function<void(const std::string&, float)> Backend::samba_progress_callback = nullptr |
Definition at line 150 of file Backend.hpp.
Referenced by SambaPage::onScanNow(), scanAllSambaDirs(), and scanSambaDir().
| SambaScanState Backend::samba_scan_state |
Definition at line 172 of file Backend.hpp.
Referenced by get_current_scan_files(), get_current_scan_files(), and scanSambaDir().
| std::atomic<bool> Backend::samba_stop_requested { false } |
Definition at line 113 of file Backend.hpp.
Referenced by requestStopSambaScan(), resetSambaStop(), scanAllSambaDirs(), and scanSambaDir().
|
private |
Definition at line 209 of file Backend.hpp.
| std::map<std::string, std::pair<std::string,std::string> > Backend::smb_credentials |
Definition at line 123 of file Backend.hpp.
Referenced by loadSMBCredentials(), and saveSMBCredentials().
|
private |
Definition at line 201 of file Backend.hpp.
|
private |
Definition at line 202 of file Backend.hpp.
Referenced by Backend(), and checkUrl().
|
private |
Definition at line 203 of file Backend.hpp.
Referenced by addToWhitelist(), Backend(), getWhitelist(), isBankDomain(), loadWhitelist(), mergeWhitelistSources(), removeFromWhitelist(), and saveWhitelist().