Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorServiceIdle::StageKey Namespace Reference

Field names of one entry in the idle ladder passed to IdleService::setStages. More...

Functions

constexpr QLatin1String Name ("name")
constexpr QLatin1String TimeoutMs ("timeoutMs")

Detailed Description

Field names of one entry in the idle ladder passed to IdleService::setStages.

Named here because they are a contract ACROSS a library boundary: the caller builds the maps and this library reads them, with nothing but the spelling holding the two together. A typo produced a stage with a zero timeout, which the parser drops as meaningless, so the ladder came out empty and idle detection simply never fired. Silent, and identical in appearance to the feature being switched off.

Function Documentation

◆ Name()

QLatin1String PhosphorServiceIdle::StageKey::Name ( "name" )
inlineconstexpr

◆ TimeoutMs()

QLatin1String PhosphorServiceIdle::StageKey::TimeoutMs ( "timeoutMs" )
inlineconstexpr