KCoreConfigSkeleton::ItemEnum Class

class KCoreConfigSkeleton::ItemEnum

Public Types

struct Choice

Public Functions

ItemEnum(const QString &_group, const QString &_key, qint32 &reference, const QList<KCoreConfigSkeleton::ItemEnum::Choice> &choices, qint32 defaultValue = 0)
QList<KCoreConfigSkeleton::ItemEnum::Choice> choices() const
void setValueForChoice(const QString &name, const QString &valueForChoice)
QString valueForChoice(const QString &name) const

Detailed Description

Class for handling enums.

Member Function Documentation

ItemEnum::ItemEnum(const QString &_group, const QString &_key, qint32 &reference, const QList<KCoreConfigSkeleton::ItemEnum::Choice> &choices, qint32 defaultValue = 0)

choices The list of enums that can be stored in this item

QList<KCoreConfigSkeleton::ItemEnum::Choice> ItemEnum::choices() const

void ItemEnum::setValueForChoice(const QString &name, const QString &valueForChoice)

Stores a choice value for name

See also valueForChoice().

QString ItemEnum::valueForChoice(const QString &name) const

Returns the value for the choice with the given name

See also setValueForChoice().