12namespace display_device {
56 [[nodiscard]]
virtual bool wakeDisplay(
const std::string &display_name, std::chrono::milliseconds timeout) = 0;
64 [[nodiscard]]
virtual std::unique_ptr<DisplayPowerGuardInterface>
keepDisplayAwake(
const std::string &reason) = 0;
Scoped guard that keeps a display awake while it is alive.
Definition display_power_interface.h:21
virtual ~DisplayPowerGuardInterface()=default
Default virtual destructor.
Cross-platform API for display wake and display-sleep prevention.
Definition display_power_interface.h:36
virtual bool wakeDisplay(const std::string &display_name, std::chrono::milliseconds timeout)=0
Ask the platform to wake a display before detection or capture.
virtual std::unique_ptr< DisplayPowerGuardInterface > keepDisplayAwake(const std::string &reason)=0
Keep displays awake until the returned guard is destroyed.
virtual ~DisplayPowerInterface()=default
Default virtual destructor.