4#include "user_settings_intf.hpp"
5#include "../win32/win32.hpp"
6#include "../path/path.hpp"
7#include "../macros.hpp"
11#include <system_error>
13hi_export_module(hikogui.settings.user_settings : impl);
15namespace hi {
inline namespace v1 {
19 return std::format(
"Software\\{}\\{}", get_application_vendor(), get_application_name());
31 }
else if (value.error() != win32_error::file_not_found) {
44[[
nodiscard]]
inline std::expected<long long, std::error_code> get_user_setting_integral(std::string_view name)
noexcept
49 }
else if (value.error() != win32_error::file_not_found) {
64 return win32_RegSetKeyValue(
HKEY_CURRENT_USER, user_setting_registry_path(), name, value);
74 return win32_RegDeleteKeyValue(
HKEY_CURRENT_USER, user_setting_registry_path(), name);
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
std::error_code delete_user_settings() noexcept
Delete all user-setting for the application.
Definition user_settings_win32_impl.hpp:77
std::expected< std::string, std::error_code > get_user_setting_string(std::string_view key) noexcept
Definition user_settings_win32_impl.hpp:26
std::error_code delete_user_setting(std::string_view key) noexcept
Delete a user-setting for the application.
Definition user_settings_win32_impl.hpp:72
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
std::error_code set_user_setting(std::string_view key, std::string_view value) noexcept
Set a user-setting for the application.
Definition user_settings_win32_impl.hpp:62