ParameterType

Describes one type of trigger phrase parameter: its name, how it prints, how it is edited and its default value.

Declared in src/libs/libtrigger/trigger/phrase/ParameterTypeRegistry.hpp
Group trigger

Detailed description

typeName is the key that ParameterTypeRegistry stores the type under, and the type a phrase token such as [path:local-path] names. toString turns a value into the text that ParameterPhrase::filledPhrase() puts in the phrase. defaultValue is the value ParameterPhrase::prepareDefaultValues() sets. inputMethod shows an editor at a screen position and gives the new value to a callback. Nothing in the tree calls it yet.

The registry holds each type through a QSharedPointer, and ParameterTypeRegistry::getType() returns that pointer.

See also ParameterTypeRegistry.

In this section