ACF $AcfVersion:0$
IEnableableParam.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
6
7
8namespace iprm
9{
10
11
81{
82public:
83
92 {
93 CF_ENABLED = 0x089347
94 };
95
110 virtual bool IsEnabled() const = 0;
111
135 virtual bool IsEnablingAllowed() const = 0;
136
167 virtual bool SetEnabled(bool isEnabled = true) = 0;
168};
169
170
171} // namespace iprm
172
173
174
175
Interface for objects which can be enabled/disabled.
virtual bool IsEnablingAllowed() const =0
Return true if enabling/disabling is allowed.
virtual bool IsEnabled() const =0
Return true if something is enabled.
ChangeFlags
Change notification flags.
@ CF_ENABLED
Enable state has changed.
virtual bool SetEnabled(bool isEnabled=true)=0
Set the enabled state.
Common class for all classes which objects can be archived or restored from archive.
Contains interfaces and implementations of flexible parameter concept.