KDECore
KConfigSkeletonItem Class Reference
Class for storing a preferences setting. More...
#include <kconfigskeleton.h>
Public Types | |
typedef QDict < KConfigSkeletonItem > | Dict |
typedef QDictIterator < KConfigSkeletonItem > | DictIterator |
typedef QValueList < KConfigSkeletonItem * > | List |
Public Member Functions | |
QString | group () const |
bool | isImmutable () const |
KConfigSkeletonItem (const QString &group, const QString &key) | |
QString | key () const |
QString | label () const |
virtual QVariant | maxValue () const |
virtual QVariant | minValue () const |
QString | name () const |
virtual QVariant | property () const =0 |
virtual void | readConfig (KConfig *)=0 |
virtual void | readDefault (KConfig *)=0 |
virtual void | setDefault ()=0 |
void | setGroup (const QString &group) |
void | setKey (const QString &key) |
void | setLabel (const QString &l) |
void | setName (const QString &name) |
virtual void | setProperty (const QVariant &p)=0 |
void | setWhatsThis (const QString &w) |
virtual void | swapDefault ()=0 |
QString | whatsThis () const |
virtual void | writeConfig (KConfig *)=0 |
virtual | ~KConfigSkeletonItem () |
Protected Member Functions | |
void | readImmutability (KConfig *config) |
Protected Attributes | |
QString | mGroup |
QString | mKey |
QString | mName |
Detailed Description
Class for storing a preferences setting.
- See also:
- KConfigSkeleton
Definition at line 50 of file kconfigskeleton.h.
Member Typedef Documentation
typedef QDict< KConfigSkeletonItem > KConfigSkeletonItem::Dict |
Definition at line 54 of file kconfigskeleton.h.
Definition at line 55 of file kconfigskeleton.h.
typedef QValueList< KConfigSkeletonItem * > KConfigSkeletonItem::List |
Definition at line 53 of file kconfigskeleton.h.
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
group Config file group. key Config file key.
Definition at line 63 of file kconfigskeleton.h.
virtual KConfigSkeletonItem::~KConfigSkeletonItem | ( | ) | [inline, virtual] |
Member Function Documentation
QString KConfigSkeletonItem::group | ( | ) | const [inline] |
bool KConfigSkeletonItem::isImmutable | ( | ) | const [inline] |
QString KConfigSkeletonItem::key | ( | ) | const [inline] |
QString KConfigSkeletonItem::label | ( | ) | const [inline] |
virtual QVariant KConfigSkeletonItem::maxValue | ( | ) | const [inline, virtual] |
Return maximum value of item or invalid if not specified.
Reimplemented in KConfigSkeleton::ItemInt, KConfigSkeleton::ItemInt64, KConfigSkeleton::ItemUInt, KConfigSkeleton::ItemLong, KConfigSkeleton::ItemULong, KConfigSkeleton::ItemUInt64, and KConfigSkeleton::ItemDouble.
Definition at line 191 of file kconfigskeleton.h.
virtual QVariant KConfigSkeletonItem::minValue | ( | ) | const [inline, virtual] |
Return minimum value of item or invalid if not specified.
Reimplemented in KConfigSkeleton::ItemInt, KConfigSkeleton::ItemInt64, KConfigSkeleton::ItemUInt, KConfigSkeleton::ItemLong, KConfigSkeleton::ItemULong, KConfigSkeleton::ItemUInt64, and KConfigSkeleton::ItemDouble.
Definition at line 186 of file kconfigskeleton.h.
QString KConfigSkeletonItem::name | ( | ) | const [inline] |
virtual QVariant KConfigSkeletonItem::property | ( | ) | const [pure virtual] |
Return item as property.
Implemented in KConfigSkeleton::ItemString, KConfigSkeleton::ItemProperty, KConfigSkeleton::ItemBool, KConfigSkeleton::ItemInt, KConfigSkeleton::ItemInt64, KConfigSkeleton::ItemUInt, KConfigSkeleton::ItemLong, KConfigSkeleton::ItemULong, KConfigSkeleton::ItemUInt64, KConfigSkeleton::ItemDouble, KConfigSkeleton::ItemColor, KConfigSkeleton::ItemFont, KConfigSkeleton::ItemRect, KConfigSkeleton::ItemPoint, KConfigSkeleton::ItemSize, KConfigSkeleton::ItemDateTime, KConfigSkeleton::ItemStringList, and KConfigSkeleton::ItemIntList.
virtual void KConfigSkeletonItem::readConfig | ( | KConfig * | ) | [pure virtual] |
This function is called by KConfigSkeleton to read the value for this setting from a config file.
value.
Implemented in KConfigSkeleton::ItemString, KConfigSkeleton::ItemProperty, KConfigSkeleton::ItemBool, KConfigSkeleton::ItemInt, KConfigSkeleton::ItemInt64, KConfigSkeleton::ItemEnum, KConfigSkeleton::ItemUInt, KConfigSkeleton::ItemLong, KConfigSkeleton::ItemULong, KConfigSkeleton::ItemUInt64, KConfigSkeleton::ItemDouble, KConfigSkeleton::ItemColor, KConfigSkeleton::ItemFont, KConfigSkeleton::ItemRect, KConfigSkeleton::ItemPoint, KConfigSkeleton::ItemSize, KConfigSkeleton::ItemDateTime, KConfigSkeleton::ItemStringList, KConfigSkeleton::ItemPathList, and KConfigSkeleton::ItemIntList.
virtual void KConfigSkeletonItem::readDefault | ( | KConfig * | ) | [pure virtual] |
Read global default value.
Implemented in KConfigSkeletonGenericItem< T >, KConfigSkeletonGenericItem< long >, KConfigSkeletonGenericItem< unsigned long >, KConfigSkeletonGenericItem< double >, KConfigSkeletonGenericItem< QString >, KConfigSkeletonGenericItem< int >, KConfigSkeletonGenericItem< unsigned int >, KConfigSkeletonGenericItem< QVariant >, KConfigSkeletonGenericItem< QColor >, KConfigSkeletonGenericItem< QValueList< int > >, KConfigSkeletonGenericItem< QFont >, KConfigSkeletonGenericItem< Q_INT64 >, KConfigSkeletonGenericItem< QDateTime >, KConfigSkeletonGenericItem< QSize >, KConfigSkeletonGenericItem< bool >, KConfigSkeletonGenericItem< Q_UINT64 >, KConfigSkeletonGenericItem< QStringList >, KConfigSkeletonGenericItem< QRect >, and KConfigSkeletonGenericItem< QPoint >.
void KConfigSkeletonItem::readImmutability | ( | KConfig * | config | ) | [protected] |
sets mIsImmutable to true if mKey in config is immutable
- Parameters:
-
config KConfig to check if mKey is immutable in
Definition at line 35 of file kconfigskeleton.cpp.
virtual void KConfigSkeletonItem::setDefault | ( | ) | [pure virtual] |
Sets the current value to the default value.
Implemented in KConfigSkeletonGenericItem< T >, KConfigSkeletonGenericItem< long >, KConfigSkeletonGenericItem< unsigned long >, KConfigSkeletonGenericItem< double >, KConfigSkeletonGenericItem< QString >, KConfigSkeletonGenericItem< int >, KConfigSkeletonGenericItem< unsigned int >, KConfigSkeletonGenericItem< QVariant >, KConfigSkeletonGenericItem< QColor >, KConfigSkeletonGenericItem< QValueList< int > >, KConfigSkeletonGenericItem< QFont >, KConfigSkeletonGenericItem< Q_INT64 >, KConfigSkeletonGenericItem< QDateTime >, KConfigSkeletonGenericItem< QSize >, KConfigSkeletonGenericItem< bool >, KConfigSkeletonGenericItem< Q_UINT64 >, KConfigSkeletonGenericItem< QStringList >, KConfigSkeletonGenericItem< QRect >, and KConfigSkeletonGenericItem< QPoint >.
void KConfigSkeletonItem::setGroup | ( | const QString & | group | ) | [inline] |
void KConfigSkeletonItem::setKey | ( | const QString & | key | ) | [inline] |
void KConfigSkeletonItem::setLabel | ( | const QString & | l | ) | [inline] |
Set label providing a translated one-line description of the item.
Definition at line 126 of file kconfigskeleton.h.
void KConfigSkeletonItem::setName | ( | const QString & | name | ) | [inline] |
virtual void KConfigSkeletonItem::setProperty | ( | const QVariant & | p | ) | [pure virtual] |
Set item to p
.
Implemented in KConfigSkeleton::ItemString, KConfigSkeleton::ItemProperty, KConfigSkeleton::ItemBool, KConfigSkeleton::ItemInt, KConfigSkeleton::ItemInt64, KConfigSkeleton::ItemUInt, KConfigSkeleton::ItemLong, KConfigSkeleton::ItemULong, KConfigSkeleton::ItemUInt64, KConfigSkeleton::ItemDouble, KConfigSkeleton::ItemColor, KConfigSkeleton::ItemFont, KConfigSkeleton::ItemRect, KConfigSkeleton::ItemPoint, KConfigSkeleton::ItemSize, KConfigSkeleton::ItemDateTime, KConfigSkeleton::ItemStringList, and KConfigSkeleton::ItemIntList.
void KConfigSkeletonItem::setWhatsThis | ( | const QString & | w | ) | [inline] |
virtual void KConfigSkeletonItem::swapDefault | ( | ) | [pure virtual] |
Exchanges the current value with the default value Used by KConfigSkeleton::useDefaults(bool);.
Implemented in KConfigSkeletonGenericItem< T >, KConfigSkeletonGenericItem< long >, KConfigSkeletonGenericItem< unsigned long >, KConfigSkeletonGenericItem< double >, KConfigSkeletonGenericItem< QString >, KConfigSkeletonGenericItem< int >, KConfigSkeletonGenericItem< unsigned int >, KConfigSkeletonGenericItem< QVariant >, KConfigSkeletonGenericItem< QColor >, KConfigSkeletonGenericItem< QValueList< int > >, KConfigSkeletonGenericItem< QFont >, KConfigSkeletonGenericItem< Q_INT64 >, KConfigSkeletonGenericItem< QDateTime >, KConfigSkeletonGenericItem< QSize >, KConfigSkeletonGenericItem< bool >, KConfigSkeletonGenericItem< Q_UINT64 >, KConfigSkeletonGenericItem< QStringList >, KConfigSkeletonGenericItem< QRect >, and KConfigSkeletonGenericItem< QPoint >.
QString KConfigSkeletonItem::whatsThis | ( | ) | const [inline] |
Return WhatsThis description of item.
See setWhatsThis().
Definition at line 150 of file kconfigskeleton.h.
virtual void KConfigSkeletonItem::writeConfig | ( | KConfig * | ) | [pure virtual] |
This function is called by KConfigSkeleton to write the value of this setting to a config file.
Implemented in KConfigSkeletonGenericItem< T >, KConfigSkeleton::ItemString, KConfigSkeleton::ItemEnum, KConfigSkeleton::ItemPathList, KConfigSkeletonGenericItem< long >, KConfigSkeletonGenericItem< unsigned long >, KConfigSkeletonGenericItem< double >, KConfigSkeletonGenericItem< QString >, KConfigSkeletonGenericItem< int >, KConfigSkeletonGenericItem< unsigned int >, KConfigSkeletonGenericItem< QVariant >, KConfigSkeletonGenericItem< QColor >, KConfigSkeletonGenericItem< QValueList< int > >, KConfigSkeletonGenericItem< QFont >, KConfigSkeletonGenericItem< Q_INT64 >, KConfigSkeletonGenericItem< QDateTime >, KConfigSkeletonGenericItem< QSize >, KConfigSkeletonGenericItem< bool >, KConfigSkeletonGenericItem< Q_UINT64 >, KConfigSkeletonGenericItem< QStringList >, KConfigSkeletonGenericItem< QRect >, and KConfigSkeletonGenericItem< QPoint >.
Member Data Documentation
QString KConfigSkeletonItem::mGroup [protected] |
Definition at line 219 of file kconfigskeleton.h.
QString KConfigSkeletonItem::mKey [protected] |
Definition at line 220 of file kconfigskeleton.h.
QString KConfigSkeletonItem::mName [protected] |
Definition at line 221 of file kconfigskeleton.h.
The documentation for this class was generated from the following files: