classPiiDefaultConfigurable
#include <PiiDefaultConfigurable.h>
This class adds to the base class PiiConfigurable some
functionality related to handling the meta configuration
information.
Inherits PiiConfigurable
Description
It contains a couple of protected functions for adding new meta
configuration value information for the object. The protected
functions are addEnumeratedItem() and addNonEnumeratedItem(). Those function should
be called as soon as the configuration values are known for the
class, e.g. in the constructor of the derived class,
Constructors and destructor
Public member functions
|
virtual int
|
Returns the number of configuration values. |
|
virtual PiiMetaConfigurationValue
|
(
Returns the PiiMetaConfigurationValue object for the configuration value having the index given as a parameter. |
Protected member functions
|
void
|
(
Add new enumerated meta configuration value to the object. |
|
void
|
Add new non-enumerated meta configuration value to the object. |
Function details
-
PiiDefaultConfigurable
() -
~PiiDefaultConfigurable
() -
virtual int configurationValueCount
()[virtual]Returns the number of configuration values.
Reimplemented from PiiConfigurable.
-
Returns the PiiMetaConfigurationValue object for the configuration value having the index given as a parameter.
The parameter
valueIndexmust be within 0 andconfigurationValueCount()-1.Reimplemented from PiiConfigurable.
-
void addEnumeratedItem
(- const char * name
- const char * description
- QVariant::Type type
- const QVariantList & possibleValues
- const QStringList & descriptions
- PiiMetaConfigurationValue::TypeFlags flags = PiiMetaConfigurationValue::Default
[protected]Add new enumerated meta configuration value to the object.
-
void addNonEnumeratedItem
(- const char * name
- const char * description
- QVariant::Type type
- const QVariant & minValue
- const QVariant & maxValue
- PiiMetaConfigurationValue::TypeFlags flags = PiiMetaConfigurationValue::Default
[protected]Add new non-enumerated meta configuration value to the object.
Add a note
Not a single note added yet. Be the first, add yours.