Into

Modules

Documentation

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.

(
  • int valueIndex
)

Returns the PiiMetaConfigurationValue object for the configuration value having the index given as a parameter.

Protected member functions

void
(
  • const char * name
  • const char * description
  • QVariant::Type type
  • const QVariantList & possibleValues
  • const QStringList & descriptions
  • PiiMetaConfigurationValue::TypeFlags flags = PiiMetaConfigurationValue::Default
)

Add new enumerated meta configuration value to the object.

void
(
  • const char * name
  • const char * description
  • QVariant::Type type
  • const QVariant & minValue
  • const QVariant & maxValue
  • PiiMetaConfigurationValue::TypeFlags flags = PiiMetaConfigurationValue::Default
)

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.

  • virtual PiiMetaConfigurationValue metaInformation

    (
    • int valueIndex
    )
    [virtual]

    Returns the PiiMetaConfigurationValue object for the configuration value having the index given as a parameter.

    The parameter valueIndex must be within 0 and configurationValueCount()-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.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.