KDECore
#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) |
Public Member Functions inherited from KConfigSkeletonItem | |
KConfigSkeletonItem (const QString &_group, const QString &_key) | |
virtual | ~KConfigSkeletonItem () |
QString | group () const |
virtual bool | isEqual (const QVariant &p) const =0 |
bool | isImmutable () const |
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 |
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 | setToolTip (const QString &t) |
void | setWhatsThis (const QString &w) |
QString | toolTip () const |
QString | whatsThis () const |
Protected Attributes | |
T | mDefault |
T | mLoadedValue |
T & | mReference |
Protected Attributes inherited from KConfigSkeletonItem | |
QString | mGroup |
QString | mKey |
QString | mName |
Additional Inherited Members | |
Public Types inherited from KConfigSkeletonItem | |
typedef QHash< QString, KConfigSkeletonItem * > | Dict |
typedef QHash< QString, KConfigSkeletonItem * > ::Iterator | DictIterator |
typedef QList < KConfigSkeletonItem * > | List |
Protected Member Functions inherited from KConfigSkeletonItem | |
void | readImmutability (const KConfigGroup &group) |
Detailed Description
template<typename T>
class KConfigSkeletonGenericItem< T >
Definition at line 217 of file kcoreconfigskeleton.h.
Constructor & Destructor Documentation
|
inline |
Constructor.
- Parameters
-
_group Config file group. _key Config file key. 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
|
inlinevirtual |
Read global default value.
Implements KConfigSkeletonItem.
Definition at line 285 of file kcoreconfigskeleton.h.
|
inlinevirtual |
Set the value for this item to the default value.
Implements KConfigSkeletonItem.
Definition at line 266 of file kcoreconfigskeleton.h.
|
inlinevirtual |
Set default value for this item.
Definition at line 258 of file kcoreconfigskeleton.h.
|
inline |
Set value of this KConfigSkeletonItem.
Definition at line 234 of file kcoreconfigskeleton.h.
|
inlinevirtual |
Exchanges the current value with the default value Used by KCoreConfigSkeleton::useDefaults(bool);.
Implements KConfigSkeletonItem.
Definition at line 294 of file kcoreconfigskeleton.h.
|
inline |
Return value of this KConfigSkeletonItem.
Definition at line 242 of file kcoreconfigskeleton.h.
|
inline |
Return const value of this KConfigSkeletonItem.
Definition at line 250 of file kcoreconfigskeleton.h.
|
inlinevirtual |
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
|
protected |
The default value for this item.
Definition at line 303 of file kcoreconfigskeleton.h.
|
protected |
Definition at line 304 of file kcoreconfigskeleton.h.
|
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:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.