6#include <QtCore/QString>
Constraints of selection from set of possibilities.
virtual bool IsOptionEnabled(int index) const =0
Return true if the option is enabled and can be selected.
OptionsFlags
Flags for controlling constraints behavior.
@ SCF_NONE
No special flags.
@ SFC_DISABLE_ALLOWED
If set, some options can be disabled.
@ SCF_SUPPORT_UNIQUE_ID
If set, every option must have a unique ID.
virtual int GetOptionsCount() const =0
Get number of managed options.
ChangeFlags
Flags for changes related to this interface.
@ CF_OPTIONS_CHANGED
Option list updated (options added, removed, or reordered).
@ CF_OPTION_RENAMED
One or more options were renamed.
virtual QByteArray GetOptionId(int index) const =0
Get option ID.
virtual QString GetOptionName(int index) const =0
Get name of specified option.
virtual int GetOptionsFlags() const =0
Get constraints flags.
virtual QString GetOptionDescription(int index) const =0
Get human-readable description for an option.
Common interface for data model objects, which can be changed.
Contains interfaces and implementations of flexible parameter concept.
int FindOptionIndexById(const QByteArray &id, const iprm::IOptionsList &list)
Find the option index by the given ID.