KDECore
KConfigSkeletonGenericItem< T > Class Template Reference
#include <kconfigskeleton.h>
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 () |
const T & | value () const |
T & | value () |
virtual void | writeConfig (KConfig *config) |
Protected Attributes | |
T | mDefault |
T | mLoadedValue |
T & | mReference |
Detailed Description
template<typename T>
class KConfigSkeletonGenericItem< T >
Definition at line 231 of file kconfigskeleton.h.
Constructor & Destructor Documentation
KConfigSkeletonGenericItem< T >::KConfigSkeletonGenericItem | ( | const QString & | group, | |
const QString & | key, | |||
T & | reference, | |||
T | defaultValue | |||
) | [inline] |
Definition at line 234 of file kconfigskeleton.h.
Member Function Documentation
void KConfigSkeletonGenericItem< T >::readDefault | ( | KConfig * | ) | [inline, virtual] |
Read global default value.
Implements KConfigSkeletonItem.
Definition at line 290 of file kconfigskeleton.h.
virtual void KConfigSkeletonGenericItem< T >::setDefault | ( | ) | [inline, virtual] |
Sets the current value to the default value.
Implements KConfigSkeletonItem.
Definition at line 273 of file kconfigskeleton.h.
virtual void KConfigSkeletonGenericItem< T >::setDefaultValue | ( | const T & | v | ) | [inline, virtual] |
void KConfigSkeletonGenericItem< T >::setValue | ( | const T & | v | ) | [inline] |
void KConfigSkeletonGenericItem< T >::swapDefault | ( | ) | [inline, virtual] |
Exchanges the current value with the default value Used by KConfigSkeleton::useDefaults(bool);.
Implements KConfigSkeletonItem.
Definition at line 298 of file kconfigskeleton.h.
const T& KConfigSkeletonGenericItem< T >::value | ( | ) | const [inline] |
T& KConfigSkeletonGenericItem< T >::value | ( | ) | [inline] |
virtual void KConfigSkeletonGenericItem< T >::writeConfig | ( | KConfig * | ) | [inline, virtual] |
This function is called by KConfigSkeleton to write the value of this setting to a config file.
Implements KConfigSkeletonItem.
Reimplemented in KConfigSkeleton::ItemString, KConfigSkeleton::ItemEnum, and KConfigSkeleton::ItemPathList.
Definition at line 278 of file kconfigskeleton.h.
Member Data Documentation
T KConfigSkeletonGenericItem< T >::mDefault [protected] |
Definition at line 307 of file kconfigskeleton.h.
T KConfigSkeletonGenericItem< T >::mLoadedValue [protected] |
Definition at line 308 of file kconfigskeleton.h.
T& KConfigSkeletonGenericItem< T >::mReference [protected] |
Definition at line 306 of file kconfigskeleton.h.
The documentation for this class was generated from the following file: