#include <controlruleprovider.h>
|
| | ControlRuleProvider (QString name, QString body, QObject *parent=nullptr) |
| |
| | ~ControlRuleProvider () override |
| |
| QString | name () const noexcept |
| |
| QString | body () const noexcept |
| |
| ValidationState | validationState () const noexcept |
| |
| QString | lastError () const noexcept |
| |
| int | lastErrorLine () const noexcept |
| |
| void | setName (QString newName) |
| | Rename the rule. Uniqueness is the registry's responsibility; this just stores + notifies. Body is NOT rewritten here — the registry rewrites the RULE <name> header and calls setBody to keep the two in sync.
|
| |
| void | setBody (QString newBody) |
| | Replace the full rule body (including the RULE <name> header). Resets validation to Pending so the validator re-runs.
|
| |
| void | setValidation (ValidationState state, QString errorMessage={}, int errorLine=-1) |
| | Cache a validator verdict. Called by RuleValidator once Phase 6.8.2 is wired; the list model picks the icon up via the validationChanged signal.
|
| |
◆ ControlRuleProvider()
| openswmmvis::controls::ControlRuleProvider::ControlRuleProvider |
( |
QString |
name, |
|
|
QString |
body, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ ~ControlRuleProvider()
| openswmmvis::controls::ControlRuleProvider::~ControlRuleProvider |
( |
| ) |
|
|
overridedefault |
◆ body()
| QString openswmmvis::controls::ControlRuleProvider::body |
( |
| ) |
const |
|
inlinenoexcept |
◆ bodyChanged
| void openswmmvis::controls::ControlRuleProvider::bodyChanged |
( |
| ) |
|
|
signal |
◆ lastError()
| QString openswmmvis::controls::ControlRuleProvider::lastError |
( |
| ) |
const |
|
inlinenoexcept |
◆ lastErrorLine()
| int openswmmvis::controls::ControlRuleProvider::lastErrorLine |
( |
| ) |
const |
|
inlinenoexcept |
◆ name()
| QString openswmmvis::controls::ControlRuleProvider::name |
( |
| ) |
const |
|
inlinenoexcept |
◆ nameChanged
| void openswmmvis::controls::ControlRuleProvider::nameChanged |
( |
QString |
prev, |
|
|
QString |
now |
|
) |
| |
|
signal |
◆ setBody()
| void openswmmvis::controls::ControlRuleProvider::setBody |
( |
QString |
newBody | ) |
|
Replace the full rule body (including the RULE <name> header). Resets validation to Pending so the validator re-runs.
◆ setName()
| void openswmmvis::controls::ControlRuleProvider::setName |
( |
QString |
newName | ) |
|
Rename the rule. Uniqueness is the registry's responsibility; this just stores + notifies. Body is NOT rewritten here — the registry rewrites the RULE <name> header and calls setBody to keep the two in sync.
◆ setValidation()
| void openswmmvis::controls::ControlRuleProvider::setValidation |
( |
ValidationState |
state, |
|
|
QString |
errorMessage = {}, |
|
|
int |
errorLine = -1 |
|
) |
| |
Cache a validator verdict. Called by RuleValidator once Phase 6.8.2 is wired; the list model picks the icon up via the validationChanged signal.
◆ validationChanged
| void openswmmvis::controls::ControlRuleProvider::validationChanged |
( |
| ) |
|
|
signal |
Cached validation result changed.
◆ validationState()
| ValidationState openswmmvis::controls::ControlRuleProvider::validationState |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following files: