#include <KConfigSkeletonGenericItem>

Public Member Functions | |
| KConfigSkeletonGenericItem (const QString &_group, const QString &_key, T &reference, T defaultValue) | |
| void | readDefault (KConfig *config) |
| virtual void | setDefault () |
| virtual void | setDefaultValue (const T &v) |
| void | setValue (const T &v) |
| void | swapDefault () |
| T & | value () |
| const T & | value () const |
| virtual void | writeConfig (KConfig *config) |
Protected Attributes | |
| T | mDefault |
| T | mLoadedValue |
| T & | mReference |
Constructor & Destructor Documentation
| KConfigSkeletonGenericItem::KConfigSkeletonGenericItem | ( | const QString & | _group, |
| const QString & | _key, | ||
| T & | reference, | ||
| T | defaultValue | ||
| ) | [inline] |
Constructor.
- Parameters:
-
_group Config file group. _key Config file key.
- Parameters:
-
reference The initial value to hold in the item defaultValue The default value for the item
Definition at line 224 of file kcoreconfigskeleton.h.
Member Function Documentation
| void KConfigSkeletonGenericItem::readDefault | ( | KConfig * | config | ) | [inline, virtual] |
Read global default value.
Implements KConfigSkeletonItem.
Definition at line 285 of file kcoreconfigskeleton.h.
| virtual void KConfigSkeletonGenericItem::setDefault | ( | ) | [inline, virtual] |
Set the value for this item to the default value.
Implements KConfigSkeletonItem.
Definition at line 266 of file kcoreconfigskeleton.h.
| virtual void KConfigSkeletonGenericItem::setDefaultValue | ( | const T & | v | ) | [inline, virtual] |
Set default value for this item.
Definition at line 258 of file kcoreconfigskeleton.h.
| void KConfigSkeletonGenericItem::setValue | ( | const T & | v | ) | [inline] |
Set value of this KConfigSkeletonItem.
Definition at line 234 of file kcoreconfigskeleton.h.
| void KConfigSkeletonGenericItem::swapDefault | ( | ) | [inline, virtual] |
Exchanges the current value with the default value Used by KCoreConfigSkeleton::useDefaults(bool);.
Implements KConfigSkeletonItem.
Definition at line 294 of file kcoreconfigskeleton.h.
| T& KConfigSkeletonGenericItem::value | ( | ) | [inline] |
Return value of this KConfigSkeletonItem.
Definition at line 242 of file kcoreconfigskeleton.h.
| const T& KConfigSkeletonGenericItem::value | ( | ) | const [inline] |
Return const value of this KConfigSkeletonItem.
Definition at line 250 of file kcoreconfigskeleton.h.
| virtual void KConfigSkeletonGenericItem::writeConfig | ( | KConfig * | config | ) | [inline, virtual] |
This function is called by KCoreConfigSkeleton to write the value of this setting to a config file.
Implements KConfigSkeletonItem.
Reimplemented in KCoreConfigSkeleton::ItemUrlList, KCoreConfigSkeleton::ItemPathList, KCoreConfigSkeleton::ItemEnum, KCoreConfigSkeleton::ItemUrl, and KCoreConfigSkeleton::ItemString.
Definition at line 272 of file kcoreconfigskeleton.h.
Member Data Documentation
T KConfigSkeletonGenericItem::mDefault [protected] |
The default value for this item.
Definition at line 303 of file kcoreconfigskeleton.h.
T KConfigSkeletonGenericItem::mLoadedValue [protected] |
Definition at line 304 of file kcoreconfigskeleton.h.
T& KConfigSkeletonGenericItem::mReference [protected] |
Stores the value for this item.
Definition at line 302 of file kcoreconfigskeleton.h.
The documentation for this class was generated from the following file:
KDE 4.7 API Reference