• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

Public Member Functions | Protected Attributes | List of all members
KConfigSkeletonGenericItem< T > Class Template Reference

#include <KConfigSkeletonGenericItem>

Inheritance diagram for KConfigSkeletonGenericItem< T >:
Inheritance graph
[legend]

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

template<typename T>
KConfigSkeletonGenericItem< T >::KConfigSkeletonGenericItem ( const QString &  _group,
const QString &  _key,
T &  reference,
T  defaultValue 
)
inline

Constructor.

Parameters
_groupConfig file group.
_keyConfig file key.
referenceThe initial value to hold in the item
defaultValueThe default value for the item

Definition at line 224 of file kcoreconfigskeleton.h.

Member Function Documentation

template<typename T>
void KConfigSkeletonGenericItem< T >::readDefault ( KConfig *  config)
inlinevirtual

Read global default value.

Implements KConfigSkeletonItem.

Definition at line 285 of file kcoreconfigskeleton.h.

template<typename T>
virtual void KConfigSkeletonGenericItem< T >::setDefault ( )
inlinevirtual

Set the value for this item to the default value.

Implements KConfigSkeletonItem.

Definition at line 266 of file kcoreconfigskeleton.h.

template<typename T>
virtual void KConfigSkeletonGenericItem< T >::setDefaultValue ( const T &  v)
inlinevirtual

Set default value for this item.

Definition at line 258 of file kcoreconfigskeleton.h.

template<typename T>
void KConfigSkeletonGenericItem< T >::setValue ( const T &  v)
inline

Set value of this KConfigSkeletonItem.

Definition at line 234 of file kcoreconfigskeleton.h.

template<typename T>
void KConfigSkeletonGenericItem< T >::swapDefault ( )
inlinevirtual

Exchanges the current value with the default value Used by KCoreConfigSkeleton::useDefaults(bool);.

Implements KConfigSkeletonItem.

Definition at line 294 of file kcoreconfigskeleton.h.

template<typename T>
T& KConfigSkeletonGenericItem< T >::value ( )
inline

Return value of this KConfigSkeletonItem.

Definition at line 242 of file kcoreconfigskeleton.h.

template<typename T>
const T& KConfigSkeletonGenericItem< T >::value ( ) const
inline

Return const value of this KConfigSkeletonItem.

Definition at line 250 of file kcoreconfigskeleton.h.

template<typename T>
virtual void KConfigSkeletonGenericItem< T >::writeConfig ( KConfig *  config)
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

template<typename T>
T KConfigSkeletonGenericItem< T >::mDefault
protected

The default value for this item.

Definition at line 303 of file kcoreconfigskeleton.h.

template<typename T>
T KConfigSkeletonGenericItem< T >::mLoadedValue
protected

Definition at line 304 of file kcoreconfigskeleton.h.

template<typename T>
T& KConfigSkeletonGenericItem< T >::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:
  • kcoreconfigskeleton.h
This file is part of the KDE documentation.
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.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal