ACF $AcfVersion:0$
IParameterStateProvider.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QByteArray>
7#include <QtCore/QList>
8
9
10// ACF includes
11#include <istd/IChangeable.h>
12
13
14namespace iprm
15{
16
17
18class IParamsSet;
19
20
92{
93public:
100 {
105 ST_EDIT
106 };
107
119
146 const iprm::IParamsSet& paramSet,
147 const QByteArray& parameterId,
148 StateType stateType) const = 0;
149};
150
151
152} // namespace iprm
153
154
155
156
Provider of state information for a parameter inside a parameter set.
@ ST_EDIT
Get the "edit" status of the parameter.
virtual ParameterState GetState(const iprm::IParamsSet &paramSet, const QByteArray &parameterId, StateType stateType) const =0
Return state for the given parameter.
ParameterState
Possible parameter states.
@ PS_OFF
State is inactive (e.g., parameter is read-only)
@ PS_UNKNOWN
State is not determined by this provider.
@ PS_ON
State is active (e.g., parameter is editable)
Set of general parameters.
Definition IParamsSet.h:81
Common interface for data model objects, which can be changed.
Definition IChangeable.h:28
Contains interfaces and implementations of flexible parameter concept.