phosphor-context-resolver

Frozen-snapshot gate over the mode, desktop, and activity cascade.

Names one primitive for a cascade every gating site used to inline: read the screen's mode, the current virtual desktop, and the current activity, then ask whether that tuple is disabled or locked. ContextHandle freezes (screenId, virtualDesktop, activity, mode) at construction so downstream gates answer against one consistent tuple. It is read-only, with no Gui, QML, or D-Bus dependency, and preserves the historical monitor-over-desktop-over-activity policy.

Full API →

Key types

ContextHandle
Frozen (screenId, virtualDesktop, activity, mode) snapshot passed to every gate call.
IContextResolver
Façade exposing handleFor(), disabledReason(), isLocked(), isGated().
ContextResolver
Concrete resolver composing the cascade over borrowed adapter pointers; owns no state.
DisabledReason
Enum of why a context is off (monitor / desktop / activity disabled, or not).

Dependencies

See also

References