16namespace display_device {
35 std::shared_ptr<MacDisplayDeviceInterface> dd_api,
36 std::shared_ptr<AudioContextInterface> audio_context_api,
37 std::unique_ptr<MacPersistentState> persistent_state,
49 [[nodiscard]] std::string
getDisplayName(
const std::string &device_id)
const override;
70 [[nodiscard]]
const std::shared_ptr<AudioContextInterface> &
getAudioContextApi()
const;
73 std::shared_ptr<MacDisplayDeviceInterface> m_dd_api;
74 std::shared_ptr<AudioContextInterface> m_audio_context_api;
75 std::unique_ptr<MacPersistentState> m_persistence_state;
Declarations for the AudioContextInterface.
Default macOS implementation for the SettingsManagerInterface.
Definition settings_manager.h:25
EnumeratedDeviceList enumAvailableDevices() const override
Enumerate the available (active and inactive) devices.
Definition settings_manager_general.cpp:38
bool resetPersistence() override
Reset the persistence in case the settings cannot be reverted.
Definition settings_manager_general.cpp:50
RevertResult revertSettings() override
Revert the applied configuration and restore the previous settings.
Definition settings_manager_revert.cpp:14
std::string getDisplayName(const std::string &device_id) const override
Get the platform-specific display name associated with the device.
Definition settings_manager_general.cpp:42
const std::shared_ptr< AudioContextInterface > & getAudioContextApi() const
Get the audio context API.
Definition settings_manager_general.cpp:46
ApplyResult applySettings(const SingleDisplayConfiguration &config) override
Apply the provided configuration to the system.
Definition settings_manager_apply.cpp:264
MacSettingsManager(std::shared_ptr< MacDisplayDeviceInterface > dd_api, std::shared_ptr< AudioContextInterface > audio_context_api, std::unique_ptr< MacPersistentState > persistent_state, MacWorkarounds workarounds)
Default constructor for the class.
Definition settings_manager_general.cpp:15
A class for applying and reverting display device settings.
Definition settings_manager_interface.h:14
RevertResult
Outcome values when trying to revert settings.
Definition settings_manager_interface.h:32
ApplyResult
Outcome values when trying to apply settings.
Definition settings_manager_interface.h:19
std::vector< EnumeratedDevice > EnumeratedDeviceList
A list of EnumeratedDevice objects.
Definition types.h:208
Declarations for the MacDisplayDeviceInterface.
Declarations for the MacPersistentState.
Declarations for the SettingsManagerInterface.
Settings for macOS-specific workarounds.
Definition types.h:144
Configuration centered around a single display.
Definition types.h:216