Enumeration + mutation surface for the in-memory zone-layout catalog. More...
#include <phosphor-zones/include/PhosphorZones/IZoneLayoutRegistry.h>
Signals | |
| void | layoutAdded (Layout *layout) |
| void | layoutRemoved (Layout *layout) |
| void | activeLayoutChanged (Layout *layout) |
| void | layoutAssigned (const QString &screenId, int virtualDesktop, Layout *layout) |
Signals inherited from PhosphorLayout::ILayoutSourceRegistry | |
| void | contentsChanged () |
| Emitted when the set of layouts this registry produces changes in any way that invalidates cached previews — entries added, removed, renamed, or re-parameterised. | |
Public Member Functions | |
| IZoneLayoutRegistry (QObject *parent=nullptr) | |
| ~IZoneLayoutRegistry () override | |
| virtual QVector< Layout * > | layouts () const =0 |
| Enumerate every known layout. | |
| virtual int | layoutCount () const =0 |
| virtual Layout * | layout (int index) const =0 |
| virtual Layout * | layoutByName (const QString &name) const =0 |
| virtual Layout * | layoutById (const QUuid &id) const =0 |
| Resolve a layout by its stable UUID. | |
| virtual void | addLayout (Layout *layout)=0 |
| virtual void | removeLayout (Layout *layout)=0 |
| virtual void | removeLayoutById (const QUuid &id)=0 |
| virtual Layout * | duplicateLayout (Layout *source)=0 |
| virtual Layout * | activeLayout () const =0 |
| virtual void | setActiveLayout (Layout *layout)=0 |
| virtual void | setActiveLayoutById (const QUuid &id)=0 |
| virtual Layout * | layoutForScreen (const QString &screenId, int virtualDesktop=0, const QString &activity=QString()) const =0 |
Cascade-resolve the manual layout for screenId. | |
| virtual Layout * | resolveLayoutForScreen (const QString &screenId) const =0 |
| Convenience: resolve a layout using the registry's current (desktop, activity) context. | |
| virtual QString | assignmentIdForScreen (const QString &screenId, int virtualDesktop=0, const QString &activity=QString()) const =0 |
Raw assignment id (manual-layout UUID or "autotile:<algorithmId>") for screenId, with cascade + level-1 provider fallback. | |
| virtual Layout * | defaultLayout () const =0 |
| Effective global default layout (snap-only fallback). | |
| virtual int | currentVirtualDesktop () const =0 |
| virtual QString | currentActivity () const =0 |
Public Member Functions inherited from PhosphorLayout::ILayoutSourceRegistry | |
| ILayoutSourceRegistry (QObject *parent=nullptr) | |
| ~ILayoutSourceRegistry () override | |
Enumeration + mutation surface for the in-memory zone-layout catalog.
Fixture tests can stub this contract without implementing persistence / assignments / quick-slots.
|
explicit |
|
override |
|
pure virtual |
Implemented in PhosphorZones::LayoutRegistry.
|
signal |
|
pure virtual |
| layout | Ownership transferred - the registry adopts layout and is responsible for its lifetime from this call on. |
Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
Raw assignment id (manual-layout UUID or "autotile:<algorithmId>") for screenId, with cascade + level-1 provider fallback.
Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
Effective global default layout (snap-only fallback).
Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
| source | Borrowed - caller retains ownership. |
addLayout semantics). Returns nullptr if source is unknown. Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
Implemented in PhosphorZones::LayoutRegistry.
|
signal |
|
signal |
|
pure virtual |
Resolve a layout by its stable UUID.
Returns nullptr when no layout with that id is known to the registry.
Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
Cascade-resolve the manual layout for screenId.
Returns defaultLayout() when no explicit assignment matches.
Implemented in PhosphorZones::LayoutRegistry.
|
signal |
|
pure virtual |
Enumerate every known layout.
Borrowed pointers - owned by the concrete registry (typically LayoutManager). Order is the registry's natural iteration order.
Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
| layout | Borrowed - caller hands the pointer in; the registry un-registers it and schedules deletion via deleteLater (matching how the registry adopted it in addLayout). Callers must drop any other references before this call returns. |
Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
Convenience: resolve a layout using the registry's current (desktop, activity) context.
Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
Implemented in PhosphorZones::LayoutRegistry.
|
pure virtual |
Implemented in PhosphorZones::LayoutRegistry.