Key for layout assignment (screen + desktop + activity) More...
#include <phosphor-zones/include/PhosphorZones/AssignmentEntry.h>
Public Member Functions | |
| bool | operator== (const LayoutAssignmentKey &other) const |
Static Public Member Functions | |
| static LayoutAssignmentKey | fromGroupName (const QString &groupName, const QString &prefix) |
| Parse a "<prefix><screenId>[:Desktop:N][:Activity:uuid]" group name. | |
Public Attributes | |
| QString | screenId |
| int | virtualDesktop = 0 |
| QString | activity |
Key for layout assignment (screen + desktop + activity)
RETAINED PUBLIC API with no in-tree consumer. The daemon now stores assignments as context RULES (ContextRuleBridge), and the v3 group format fromGroupName parses is drained by configmigration_v4finalize's own parser — so nothing in this repo constructs one. It stays exported because this is an installed LGPL library header whose whole point is third-party linkage: the (screen, desktop, activity) tuple is still the assignment identity, and removing an exported type is an ABI break for consumers we do not control. Deliberately kept, not overlooked.
|
inlinestatic |
Parse a "<prefix><screenId>[:Desktop:N][:Activity:uuid]" group name.
Expects suffixes in canonical order: :Desktop:N before :Activity:uuid. Group names are always constructed internally in this order.
| groupName | Full group name from the config backend. |
| prefix | Schema-defined prefix the caller supplies (the lib's own wire format uses "Assignment:"). Passing it explicitly keeps this header free of any cpp-side constant dependency. |
|
inline |
| QString PhosphorZones::LayoutAssignmentKey::activity |
| QString PhosphorZones::LayoutAssignmentKey::screenId |
| int PhosphorZones::LayoutAssignmentKey::virtualDesktop = 0 |