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

KDEUI

Classes | Public Member Functions | List of all members
KConfigSkeleton Class Reference

#include <kconfigskeleton.h>

Inheritance diagram for KConfigSkeleton:
Inheritance graph
[legend]

Classes

class  ItemColor
 
class  ItemFont
 

Public Member Functions

 KConfigSkeleton (const QString &configname=QString(), QObject *parent=0)
 
 KConfigSkeleton (KSharedConfig::Ptr config, QObject *parent=0)
 
ItemColor * addItemColor (const QString &name, QColor &reference, const QColor &defaultValue=QColor(128, 128, 128), const QString &key=QString())
 
ItemFont * addItemFont (const QString &name, QFont &reference, const QFont &defaultValue=QFont(), const QString &key=QString())
 
- Public Member Functions inherited from KCoreConfigSkeleton
 KCoreConfigSkeleton (const QString &configname=QString(), QObject *parent=0)
 
 KCoreConfigSkeleton (KSharedConfig::Ptr config, QObject *parent=0)
 
virtual ~KCoreConfigSkeleton ()
 
void addItem (KConfigSkeletonItem *, const QString &name=QString())
 
ItemBool * addItemBool (const QString &name, bool &reference, bool defaultValue=false, const QString &key=QString())
 
ItemDateTime * addItemDateTime (const QString &name, QDateTime &reference, const QDateTime &defaultValue=QDateTime(), const QString &key=QString())
 
ItemDouble * addItemDouble (const QString &name, double &reference, double defaultValue=0.0, const QString &key=QString())
 
ItemInt * addItemInt (const QString &name, qint32 &reference, qint32 defaultValue=0, const QString &key=QString())
 
ItemLongLong * addItemInt64 (const QString &name, qint64 &reference, qint64 defaultValue=0, const QString &key=QString())
 
ItemIntList * addItemIntList (const QString &name, QList< int > &reference, const QList< int > &defaultValue=QList< int >(), const QString &key=QString())
 
ItemLongLong * addItemLongLong (const QString &name, qint64 &reference, qint64 defaultValue=0, const QString &key=QString())
 
ItemPassword * addItemPassword (const QString &name, QString &reference, const QString &defaultValue=QLatin1String(""), const QString &key=QString())
 
ItemPath * addItemPath (const QString &name, QString &reference, const QString &defaultValue=QLatin1String(""), const QString &key=QString())
 
ItemPoint * addItemPoint (const QString &name, QPoint &reference, const QPoint &defaultValue=QPoint(), const QString &key=QString())
 
ItemProperty * addItemProperty (const QString &name, QVariant &reference, const QVariant &defaultValue=QVariant(), const QString &key=QString())
 
ItemRect * addItemRect (const QString &name, QRect &reference, const QRect &defaultValue=QRect(), const QString &key=QString())
 
ItemSize * addItemSize (const QString &name, QSize &reference, const QSize &defaultValue=QSize(), const QString &key=QString())
 
ItemString * addItemString (const QString &name, QString &reference, const QString &defaultValue=QLatin1String(""), const QString &key=QString())
 
ItemStringList * addItemStringList (const QString &name, QStringList &reference, const QStringList &defaultValue=QStringList(), const QString &key=QString())
 
ItemUInt * addItemUInt (const QString &name, quint32 &reference, quint32 defaultValue=0, const QString &key=QString())
 
ItemULongLong * addItemUInt64 (const QString &name, quint64 &reference, quint64 defaultValue=0, const QString &key=QString())
 
ItemULongLong * addItemULongLong (const QString &name, quint64 &reference, quint64 defaultValue=0, const QString &key=QString())
 
KConfig * config ()
 
const KConfig * config () const
 
QString currentGroup () const
 
KConfigSkeletonItem * findItem (const QString &name) const
 
KConfigSkeletonItem * findItem (const QString &name)
 
bool isImmutable (const QString &name) const
 
bool isImmutable (const QString &name)
 
KConfigSkeletonItem::List items () const
 
virtual void readConfig ()
 
void setCurrentGroup (const QString &group)
 
virtual void setDefaults ()
 
void setSharedConfig (KSharedConfig::Ptr pConfig)
 
virtual bool useDefaults (bool b)
 
virtual void writeConfig ()
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Additional Inherited Members

- Public Types inherited from KCoreConfigSkeleton
typedef ItemLongLong ItemInt64
 
typedef ItemULongLong ItemUInt64
 
- Signals inherited from KCoreConfigSkeleton
void configChanged ()
 
- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from KCoreConfigSkeleton
virtual void usrReadConfig ()
 
virtual void usrSetDefaults ()
 
virtual bool usrUseDefaults (bool b)
 
virtual void usrWriteConfig ()
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Class for handling preferences settings for an application.

Author
Cornelius Schumacher

This class extends KCoreConfigSkeleton by support for GUI types.

Definition at line 40 of file kconfigskeleton.h.

Constructor & Destructor Documentation

KConfigSkeleton::KConfigSkeleton ( const QString &  configname = QString(),
QObject *  parent = 0 
)
explicit

Constructor.

Parameters
confignamename of config file. If no name is given, the default config file as returned by KGlobal::config() is used.

Definition at line 26 of file kconfigskeleton.cpp.

KConfigSkeleton::KConfigSkeleton ( KSharedConfig::Ptr  config,
QObject *  parent = 0 
)
explicit

Constructor.

Parameters
configconfiguration object to use.

Definition at line 31 of file kconfigskeleton.cpp.

Member Function Documentation

KConfigSkeleton::ItemColor * KConfigSkeleton::addItemColor ( const QString &  name,
QColor &  reference,
const QColor &  defaultValue = QColor(128, 128, 128),
const QString &  key = QString() 
)

Register an item of type QColor.

Parameters
nameName used to identify this setting. Names must be unique.
referencePointer to the variable, which is set by readConfig() calls and read by writeConfig() calls.
defaultValueDefault value, which is used when the config file does not yet contain the key of this item.
keyKey used in config file. If key is null, name is used as key.
Returns
The created item

Definition at line 101 of file kconfigskeleton.cpp.

KConfigSkeleton::ItemFont * KConfigSkeleton::addItemFont ( const QString &  name,
QFont &  reference,
const QFont &  defaultValue = QFont(),
const QString &  key = QString() 
)

Register an item of type QFont.

Parameters
nameName used to identify this setting. Names must be unique.
referencePointer to the variable, which is set by readConfig() calls and read by writeConfig() calls.
defaultValueDefault value, which is used when the config file does not yet contain the key of this item.
keyKey used in config file. If key is null, name is used as key.
Returns
The created item

Definition at line 111 of file kconfigskeleton.cpp.


The documentation for this class was generated from the following files:
  • kconfigskeleton.h
  • kconfigskeleton.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • 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