Scans JSON profile-definition files and registers them with PhosphorProfileRegistry.
More...
#include <phosphor-animation/include/PhosphorAnimation/ProfileLoader.h>
Scans JSON profile-definition files and registers them with PhosphorProfileRegistry.
Symmetric with CurveLoader. User curves must already be registered (CurveLoader first). Profiles loaded here are preset templates — settings UIs deep-copy into active profiles.
◆ ProfileLoader()
If ownerTag is empty, a unique per-instance tag is generated.
◆ ~ProfileLoader()
| PhosphorAnimation::ProfileLoader::~ProfileLoader |
( |
| ) |
|
|
override |
◆ entries()
| QList< Entry > PhosphorAnimation::ProfileLoader::entries |
( |
| ) |
const |
◆ hasPath()
| bool PhosphorAnimation::ProfileLoader::hasPath |
( |
const QString & |
path | ) |
const |
O(1) membership check — prefer over entries() on hot paths.
◆ loadFromDirectories()
Scan multiple directories in caller-declared priority order.
◆ loadFromDirectory()
| int PhosphorAnimation::ProfileLoader::loadFromDirectory |
( |
const QString & |
directory, |
|
|
LiveReload |
liveReload = LiveReload::Off |
|
) |
| |
◆ loadLibraryBuiltins()
| int PhosphorAnimation::ProfileLoader::loadLibraryBuiltins |
( |
LiveReload |
liveReload = LiveReload::Off | ) |
|
◆ ownerTag()
| QString PhosphorAnimation::ProfileLoader::ownerTag |
( |
| ) |
const |
◆ profilesChanged
| void PhosphorAnimation::ProfileLoader::profilesChanged |
( |
| ) |
|
|
signal |
◆ registeredCount()
| int PhosphorAnimation::ProfileLoader::registeredCount |
( |
| ) |
const |
◆ requestRescan()
| void PhosphorAnimation::ProfileLoader::requestRescan |
( |
| ) |
|
The documentation for this class was generated from the following file: