libdisplaydevice latest
C++ library to modify display devices.
factory.h
Go to the documentation of this file.
1
5#pragma once
6
7// system includes
8#include <chrono>
9#include <memory>
10#include <optional>
11
12// local includes
17
18namespace display_device {
23 std::shared_ptr<AudioContextInterface> m_audio_context_api {};
24 std::shared_ptr<SettingsPersistenceInterface> m_settings_persistence_api {};
26 std::optional<std::chrono::milliseconds> m_hdr_blank_delay {};
27 };
28
34 [[nodiscard]] std::unique_ptr<SettingsManagerInterface> makeSettingsManager(const SettingsManagerFactoryConfig &config = {});
35
40 [[nodiscard]] std::unique_ptr<DisplayPowerInterface> makeDisplayPower();
41} // namespace display_device
Declarations for the AudioContextInterface.
Declarations for display power management interfaces.
std::unique_ptr< DisplayPowerInterface > makeDisplayPower()
Create the default display power manager for the current platform.
Definition factory.cpp:25
Declarations for the SettingsManagerInterface.
Declarations for the SettingsPersistenceInterface.
Dependencies and platform-neutral options for creating a settings manager.
Definition factory.h:22
std::optional< std::chrono::milliseconds > m_hdr_blank_delay
Optional HDR blanking workaround delay on supported platforms.
Definition factory.h:26
std::shared_ptr< SettingsPersistenceInterface > m_settings_persistence_api
Optional settings persistence interface.
Definition factory.h:24
bool m_throw_on_persistence_load_error
Throw when persisted settings cannot be loaded or parsed.
Definition factory.h:25
std::shared_ptr< AudioContextInterface > m_audio_context_api
Optional audio context interface.
Definition factory.h:23