8#include "phosphorcontextresolver_export.h"
145 const QString& activity)
const = 0;
The single resolver façade every Phosphor consumer goes through for "what does this screen look like ...
Definition IContextResolver.h:79
virtual bool isLocked(const ContextHandle &handle) const =0
The per-context lock check.
bool isDisabled(const ContextHandle &handle) const
Truthy convenience over disabledReason.
Definition IContextResolver.h:188
virtual ContextHandle handleForPersisted(const QString &screenId, int virtualDesktop, const QString &activity) const =0
Build a handle for a PERSISTED context (not "right now").
virtual ContextHandle handleForMode(const QString &screenId, PhosphorZones::AssignmentEntry::Mode mode) const =0
Build a handle that overrides the mode resolution.
virtual ~IContextResolver()=default
virtual ContextHandle handleFor(const QString &screenId) const =0
Build a frozen handle targeting screenId.
bool isGated(const ContextHandle &handle) const
Composite convenience that ORs the disable and lock legs.
Definition IContextResolver.h:218
virtual QString currentActivity() const =0
Live read of the workspace's current activity, equivalent to calling the bound IWorkspaceState::curre...
virtual ContextHandle globalHandle() const =0
Build a handle without a screen scope.
virtual DisabledReason disabledReason(const ContextHandle &handle) const =0
The disable cascade — Monitor → Desktop → Activity, in priority order.
virtual int currentVirtualDesktop() const =0
Live read of the workspace's current virtual desktop, equivalent to calling the bound IWorkspaceState...
Definition ContextHandle.h:10
DisabledReason
Why a context is considered disabled, in priority order.
Definition DisabledReason.h:20
@ NotDisabled
Definition DisabledReason.h:21
Frozen snapshot of "where am I right now?" for a single resolver query.
Definition ContextHandle.h:46
Mode
Per-context engine selection.
Definition AssignmentEntry.h:213