Functions | |
| std::optional< bool > | queryScreensaverActiveOnce (const char *bus_name, const char *object_path, const char *interface_name) |
| std::optional< bool > | queryScreensaverActive () |
| std::string | autostartDesktopContent () |
| bool | writeServiceControlPreference (bool enabled, const std::string &backupFile) |
| bool | writeConfigAutostartDesktop (const std::filesystem::path &path) |
| std::string | shellQuote (const std::string &s) |
| bool | runCommand (const std::string &cmd) |
| std::string | firstExistingPath (const std::initializer_list< std::string > &candidates) |
| std::string | displayNameForStatus (const ConnectionInfo &info) |
Variables | |
| constexpr int | kNotifDesktopActive = 15 |
| constexpr int | kNotifDesktopIdle = 16 |
| constexpr const char * | kUISocketPath = "unix:///tmp/bsd-daemon.sock" |
| constexpr const char * | kServiceName = "bsc-daemon.service" |
| constexpr const char * | kServiceCtlPath = BSC_SERVICECTL_PATH |
| constexpr const char * | kSystemAutostartDesktop = "/etc/xdg/autostart/bastionguard-sc-autostart.desktop" |
| constexpr const char * | kFallbackSystemAutostartDesktop = "/etc/xdg/autostart/bastionguard-sc.desktop" |
| constexpr const char * | kSystemAutostartBackupDesktop = "/etc/xdg/autostart/bastionguard-sc-autostart.desktop.bak" |
| std::string anonymous_namespace{MainWindow.cpp}::autostartDesktopContent | ( | ) |
Definition at line 104 of file MainWindow.cpp.
References autostartDesktopContent().
Referenced by autostartDesktopContent(), and writeConfigAutostartDesktop().
| std::string anonymous_namespace{MainWindow.cpp}::displayNameForStatus | ( | const ConnectionInfo & | info | ) |
Definition at line 181 of file MainWindow.cpp.
References ConnectionInfo::app_args, ConnectionInfo::app_comm, ConnectionInfo::app_path, bsc::ui_util::best_connection_display_name(), ConnectionInfo::dest_ip, displayNameForStatus(), and ConnectionInfo::src_ip.
Referenced by displayNameForStatus().
| std::string anonymous_namespace{MainWindow.cpp}::firstExistingPath | ( | const std::initializer_list< std::string > & | candidates | ) |
Definition at line 173 of file MainWindow.cpp.
References firstExistingPath().
Referenced by firstExistingPath().
| std::optional< bool > anonymous_namespace{MainWindow.cpp}::queryScreensaverActive | ( | ) |
Definition at line 74 of file MainWindow.cpp.
References queryScreensaverActive(), and queryScreensaverActiveOnce().
Referenced by queryScreensaverActive().
| std::optional< bool > anonymous_namespace{MainWindow.cpp}::queryScreensaverActiveOnce | ( | const char * | bus_name, |
| const char * | object_path, | ||
| const char * | interface_name ) |
Definition at line 37 of file MainWindow.cpp.
References queryScreensaverActiveOnce().
Referenced by queryScreensaverActive(), and queryScreensaverActiveOnce().
| bool anonymous_namespace{MainWindow.cpp}::runCommand | ( | const std::string & | cmd | ) |
Definition at line 167 of file MainWindow.cpp.
References runCommand().
Referenced by runCommand().
| std::string anonymous_namespace{MainWindow.cpp}::shellQuote | ( | const std::string & | s | ) |
Definition at line 156 of file MainWindow.cpp.
References shellQuote().
Referenced by shellQuote().
| bool anonymous_namespace{MainWindow.cpp}::writeConfigAutostartDesktop | ( | const std::filesystem::path & | path | ) |
Definition at line 144 of file MainWindow.cpp.
References autostartDesktopContent(), and writeConfigAutostartDesktop().
Referenced by writeConfigAutostartDesktop().
| bool anonymous_namespace{MainWindow.cpp}::writeServiceControlPreference | ( | bool | enabled, |
| const std::string & | backupFile ) |
Definition at line 121 of file MainWindow.cpp.
References kFallbackSystemAutostartDesktop, kServiceName, kSystemAutostartDesktop, and writeServiceControlPreference().
Referenced by writeServiceControlPreference().
|
constexpr |
Definition at line 101 of file MainWindow.cpp.
Referenced by writeServiceControlPreference().
|
constexpr |
Definition at line 34 of file MainWindow.cpp.
|
constexpr |
Definition at line 35 of file MainWindow.cpp.
|
constexpr |
Definition at line 99 of file MainWindow.cpp.
|
constexpr |
Definition at line 98 of file MainWindow.cpp.
Referenced by writeServiceControlPreference().
|
constexpr |
Definition at line 102 of file MainWindow.cpp.
|
constexpr |
Definition at line 100 of file MainWindow.cpp.
Referenced by writeServiceControlPreference().
|
constexpr |
Definition at line 96 of file MainWindow.cpp.