Plasma
Plasma::ConfigLoader Class Reference
#include <configloader.h>

Public Member Functions | |
ConfigLoader (const KConfigGroup *config, QIODevice *xml, QObject *parent=0) | |
ConfigLoader (KSharedConfigPtr config, QIODevice *xml, QObject *parent=0) | |
ConfigLoader (const QString &configFile, QIODevice *xml, QObject *parent=0) | |
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) |
~ConfigLoader () | |
Protected Member Functions | |
void | usrWriteConfig () |
Detailed Description
Definition at line 75 of file configloader.h.
Constructor & Destructor Documentation
Creates a KConfigSkeleton populated using the definition found in the XML data passed in.
- Parameters:
-
configFile path to the configuration file to use xml the xml data; must be valid KConfigXT data parent optional QObject parent
Definition at line 350 of file configloader.cpp.
Creates a KConfigSkeleton populated using the definition found in the XML data passed in.
- Parameters:
-
config the configuration object to use xml the xml data; must be valid KConfigXT data parent optional QObject parent
Definition at line 357 of file configloader.cpp.
Creates a KConfigSkeleton populated using the definition found in the XML data passed in.
- Parameters:
-
config the group to use as the root for configuration items xml the xml data; must be valid KConfigXT data parent optional QObject parent
Definition at line 367 of file configloader.cpp.
ConfigLoader::~ConfigLoader | ( | ) |
Definition at line 380 of file configloader.cpp.
Member Function Documentation
Finds the item for the given group and key.
- group the group in the config file to look in
- key the configuration key to find
- Returns:
- the associated KConfigSkeletonItem, or 0 if none
Definition at line 385 of file configloader.cpp.
KConfigSkeletonItem * ConfigLoader::findItemByName | ( | const QString & | name | ) |
QStringList ConfigLoader::groupList | ( | ) | const |
bool ConfigLoader::hasGroup | ( | const QString & | group | ) | const |
Check to see if a group exists.
- Parameters:
-
group the name of the group to check for
- Returns:
- true if the group exists, or false if it does not
Definition at line 406 of file configloader.cpp.
Returns the property (variantized value) of the named item.
Definition at line 395 of file configloader.cpp.
void ConfigLoader::usrWriteConfig | ( | ) | [protected] |
Hack used to force writing when no default exists in config file.
Definition at line 416 of file configloader.cpp.
The documentation for this class was generated from the following files: