KDECore
KCoreConfigSkeleton::ItemString Class Reference
#include <kcoreconfigskeleton.h>

Detailed Description
Class for handling a string preferences item.Definition at line 361 of file kcoreconfigskeleton.h.
Public Types | |
enum | Type { Normal, Password, Path } |
Public Member Functions | |
bool | isEqual (const QVariant &p) const |
ItemString (const QString &_group, const QString &_key, QString &reference, const QString &defaultValue=QLatin1String(""), Type type=Normal) | |
QVariant | property () const |
void | readConfig (KConfig *config) |
void | setProperty (const QVariant &p) |
void | writeConfig (KConfig *config) |
Member Enumeration Documentation
Constructor & Destructor Documentation
KCoreConfigSkeleton::ItemString::ItemString | ( | const QString & | _group, | |
const QString & | _key, | |||
QString & | reference, | |||
const QString & | defaultValue = QLatin1String("") , |
|||
Type | type = Normal | |||
) |
Constructor.
- Parameters:
-
_group Config file group. _key Config file key.
- Parameters:
-
reference The initial value to hold in the item defaultValue The default value for the item
- Parameters:
-
type The type of string held by the item
Definition at line 115 of file kcoreconfigskeleton.cpp.
Member Function Documentation
QVariant KCoreConfigSkeleton::ItemString::property | ( | ) | const [virtual] |
Return item as property.
Implements KConfigSkeletonItem.
Definition at line 174 of file kcoreconfigskeleton.cpp.
void KCoreConfigSkeleton::ItemString::readConfig | ( | KConfig * | config | ) | [virtual] |
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file.
Implements KConfigSkeletonItem.
Definition at line 141 of file kcoreconfigskeleton.cpp.
void KCoreConfigSkeleton::ItemString::setProperty | ( | const QVariant & | p | ) | [virtual] |
Set item to p
.
Implements KConfigSkeletonItem.
Definition at line 164 of file kcoreconfigskeleton.cpp.
void KCoreConfigSkeleton::ItemString::writeConfig | ( | KConfig * | config | ) | [virtual] |
This function is called by KCoreConfigSkeleton to write the value of this setting to a config file.
Reimplemented from KConfigSkeletonGenericItem< QString >.
Definition at line 124 of file kcoreconfigskeleton.cpp.
The documentation for this class was generated from the following files: