Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorZones::TemplateJsonKeys Namespace Reference

The template JSON keys other modules have to spell. More...

Variables

constexpr QLatin1String Id {"id"}
 
constexpr QLatin1String IsSystem {"isSystem"}
 
constexpr QLatin1String SourcePath {"sourcePath"}
 

Detailed Description

The template JSON keys other modules have to spell.

id is the persisted identity key. isSystem and sourcePath are NOT part of the file format (the store stamps both at load); they are the spellings the settings app's editing map and the D-Bus wire enrichment add on top, and they live here so the sides cannot drift apart. The rest of the file format is written and read in one place, ScrollingTemplate::toJson / fromJson, so those keys stay local to that translation unit.

Variable Documentation

◆ Id

constexpr QLatin1String PhosphorZones::TemplateJsonKeys::Id {"id"}
inlineconstexpr

◆ IsSystem

constexpr QLatin1String PhosphorZones::TemplateJsonKeys::IsSystem {"isSystem"}
inlineconstexpr

◆ SourcePath

constexpr QLatin1String PhosphorZones::TemplateJsonKeys::SourcePath {"sourcePath"}
inlineconstexpr