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

Plasma

  • Plasma
  • ConfigLoader
Public Member Functions | Protected Member Functions | List of all members
Plasma::ConfigLoader Class Reference

#include <configloader.h>

Inheritance diagram for Plasma::ConfigLoader:
Inheritance graph
[legend]

Public Member Functions

 ConfigLoader (const QString &configFile, QIODevice *xml, QObject *parent=0)
 
 ConfigLoader (KSharedConfigPtr config, QIODevice *xml, QObject *parent=0)
 
 ConfigLoader (const KConfigGroup *config, QIODevice *xml, QObject *parent=0)
 
 ~ConfigLoader ()
 
KConfigSkeletonItem * findItem (const QString &group, const QString &key)
 
KConfigSkeletonItem * findItemByName (const QString &name)
 
QStringList groupList () const
 
bool hasGroup (const QString &group) const
 
QVariant property (const QString &name)
 

Protected Member Functions

void usrWriteConfig ()
 

Detailed Description

Definition at line 75 of file configloader.h.

Constructor & Destructor Documentation

ConfigLoader::ConfigLoader ( const QString &  configFile,
QIODevice *  xml,
QObject *  parent = 0 
)

Creates a KConfigSkeleton populated using the definition found in the XML data passed in.

Parameters
configFilepath to the configuration file to use
xmlthe xml data; must be valid KConfigXT data
parentoptional QObject parent

Definition at line 366 of file configloader.cpp.

ConfigLoader::ConfigLoader ( KSharedConfigPtr  config,
QIODevice *  xml,
QObject *  parent = 0 
)

Creates a KConfigSkeleton populated using the definition found in the XML data passed in.

Parameters
configthe configuration object to use
xmlthe xml data; must be valid KConfigXT data
parentoptional QObject parent

Definition at line 373 of file configloader.cpp.

ConfigLoader::ConfigLoader ( const KConfigGroup *  config,
QIODevice *  xml,
QObject *  parent = 0 
)

Creates a KConfigSkeleton populated using the definition found in the XML data passed in.

Parameters
configthe group to use as the root for configuration items
xmlthe xml data; must be valid KConfigXT data
parentoptional QObject parent

Definition at line 383 of file configloader.cpp.

ConfigLoader::~ConfigLoader ( )

Definition at line 396 of file configloader.cpp.

Member Function Documentation

KConfigSkeletonItem * ConfigLoader::findItem ( const QString &  group,
const QString &  key 
)

Finds the item for the given group and key.

Parameters
groupthe group in the config file to look in
keythe configuration key to find
Returns
the associated KConfigSkeletonItem, or 0 if none

Definition at line 401 of file configloader.cpp.

KConfigSkeletonItem * ConfigLoader::findItemByName ( const QString &  name)

Finds an item by its name.

Definition at line 406 of file configloader.cpp.

QStringList ConfigLoader::groupList ( ) const
Returns
the list of groups defined by the XML

Definition at line 427 of file configloader.cpp.

bool ConfigLoader::hasGroup ( const QString &  group) const

Check to see if a group exists.

Parameters
groupthe name of the group to check for
Returns
true if the group exists, or false if it does not

Definition at line 422 of file configloader.cpp.

QVariant ConfigLoader::property ( const QString &  name)

Returns the property (variantized value) of the named item.

Definition at line 411 of file configloader.cpp.

void ConfigLoader::usrWriteConfig ( )
protected

Hack used to force writing when no default exists in config file.

Definition at line 432 of file configloader.cpp.


The documentation for this class was generated from the following files:
  • configloader.h
  • configloader.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • 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