KConfigSkeleton::ItemString Class Reference
Class for handling a string preferences item. More...
#include <kconfigskeleton.h>
Inheritance diagram for KConfigSkeleton::ItemString:

Public Types | |
enum | Type { Normal, Password, Path } |
Public Methods | |
ItemString (const QString &group, const QString &key, QString &reference, const QString &defaultValue=QString::fromLatin1(""), Type type=Normal) | |
void | writeConfig (KConfig *config) |
void | readConfig (KConfig *config) |
void | setProperty (const QVariant &p) |
QVariant | property () const |
Detailed Description
Class for handling a string preferences item.
Definition at line 368 of file kconfigskeleton.h.
Member Function Documentation
|
This function is called by KConfigSkeleton to write the value of this setting to a config file.
Implements KConfigSkeletonItem. Definition at line 50 of file kconfigskeleton.cpp. References KConfigBase::hasDefault(), KStringHandler::obscure(), KConfigBase::revertToDefault(), KConfigBase::setGroup(), KConfigBase::writeEntry(), and KConfigBase::writePathEntry(). |
|
This function is called by KConfigSkeleton to read the value for this setting from a config file. value. Implements KConfigSkeletonItem. Definition at line 67 of file kconfigskeleton.cpp. References KConfigSkeleton::config(), KStringHandler::obscure(), KConfigBase::readEntry(), KConfigBase::readPathEntry(), and KConfigBase::setGroup(). |
|
Set item to
Implements KConfigSkeletonItem. Definition at line 91 of file kconfigskeleton.cpp. References QVariant::toString(). |
|
Return item as property.
Implements KConfigSkeletonItem. Definition at line 96 of file kconfigskeleton.cpp. |
The documentation for this class was generated from the following files: