8#include "phosphorcontextresolver_export.h"
48 const QString& activity)
const override;
ContextHandle handleFor(const QString &screenId) const override
Build a frozen handle targeting screenId.
ContextResolver(IWorkspaceState *workspaceState, IModeProvider *modeProvider, IContextGateSource *gateSource)
Bind the resolver to its three adapter inputs.
ContextHandle globalHandle() const override
Build a handle without a screen scope.
DisabledReason disabledReason(const ContextHandle &handle) const override
The disable cascade — Monitor → Desktop → Activity, in priority order.
ContextHandle handleForMode(const QString &screenId, PhosphorZones::AssignmentEntry::Mode mode) const override
Build a handle that overrides the mode resolution.
int currentVirtualDesktop() const override
Live read of the workspace's current virtual desktop, equivalent to calling the bound IWorkspaceState...
bool isLocked(const ContextHandle &handle) const override
The per-context lock check.
QString currentActivity() const override
Live read of the workspace's current activity, equivalent to calling the bound IWorkspaceState::curre...
ContextHandle handleForPersisted(const QString &screenId, int virtualDesktop, const QString &activity) const override
Build a handle for a PERSISTED context (not "right now").
~ContextResolver() override=default
Disable / lock cascade adapter.
Definition IContextInputs.h:126
The single resolver façade every Phosphor consumer goes through for "what does this screen look like ...
Definition IContextResolver.h:79
Per-screen mode dispatcher adapter.
Definition IContextInputs.h:90
Adapter interfaces the concrete ContextResolver depends on.
Definition IContextInputs.h:48
Definition ContextHandle.h:10
DisabledReason
Why a context is considered disabled, in priority order.
Definition DisabledReason.h:20
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