• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdecore
 

kdecore

Public Member Functions | Protected Member Functions
KConfigGroup Class Reference

#include <kconfigbase.h>

Inheritance diagram for KConfigGroup:
KConfigBase

List of all members.

Public Member Functions

 KConfigGroup (KConfigBase *master, const TQCString &group)
 KConfigGroup (KConfigBase *master, const TQString &group)
 KConfigGroup (KConfigBase *master, const char *group)
void deleteGroup (bool bGlobal=false)
bool groupIsImmutable () const
virtual void setDirty (bool _bDirty)
virtual void putData (const KEntryKey &_key, const KEntry &_data, bool _checkGroup=true)
virtual KEntry lookupData (const KEntryKey &_key) const
virtual void sync ()

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Detailed Description

A KConfigBase derived class for one specific group in a KConfig object.

Definition at line 2103 of file kconfigbase.h.


Constructor & Destructor Documentation

KConfigGroup::KConfigGroup ( KConfigBase *  master,
const TQCString &  group 
)

Construct a config group corresponding to group in master.

group is the group name encoded in UTF-8.

Definition at line 1880 of file kconfigbase.cpp.

KConfigGroup::KConfigGroup ( KConfigBase *  master,
const TQString &  group 
)

This is an overloaded constructor provided for convenience.

It behaves essentially like the above function.

Construct a config group corresponding to group in master

Definition at line 1867 of file kconfigbase.cpp.

KConfigGroup::KConfigGroup ( KConfigBase *  master,
const char *  group 
)

This is an overloaded constructor provided for convenience.

It behaves essentially like the above function.

Construct a config group corresponding to group in master group is the group name encoded in UTF-8.

Definition at line 1893 of file kconfigbase.cpp.


Member Function Documentation

void KConfigGroup::deleteGroup ( bool  bGlobal = false)

Delete all entries in the entire group.

Parameters:
bGlobalIf bGlobal is true, the entries are not removed from the application specific config file, but from the global KDE config file.

Definition at line 1906 of file kconfigbase.cpp.

bool KConfigGroup::groupIsImmutable ( ) const

Checks whether it is possible to change this group.

Returns:
whether changes may be made to this group in this configuration file.
Since:
3.4

Definition at line 1911 of file kconfigbase.cpp.

KEntry KConfigGroup::lookupData ( const KEntryKey &  _key) const [virtual]

Looks up an entry in the config object's internal structure.

Classes that derive from KConfigBase will need to implement this method in a storage-specific manner.

Do not use this function, the implementation and return type are subject to change.

Parameters:
_keyThe key to look up It contains information both on the group of the key and the entry's key itself.
Returns:
The KEntry value (data) found for the key. KEntry.aValue will be the null string if nothing was located.

Implements KConfigBase.

Definition at line 1926 of file kconfigbase.cpp.

void KConfigGroup::putData ( const KEntryKey &  _key,
const KEntry &  _data,
bool  _checkGroup = true 
) [virtual]

Inserts a (key/value) pair into the internal storage mechanism of the configuration object.

Classes that derive from KConfigBase will need to implement this method in a storage-specific manner.

Do not use this function, the implementation / return type are subject to change.

Parameters:
_keyThe key to insert. It contains information both on the group of the key and the key itself. If the key already exists, the old value will be replaced.
_datathe KEntry that is to be stored.
_checkGroupWhen false, assume that the group already exists.

Implements KConfigBase.

Definition at line 1921 of file kconfigbase.cpp.

void KConfigGroup::setDirty ( bool  _bDirty) [virtual]

Sets the global dirty flag of the config object.

Parameters:
_bDirtyHow to mark the object's dirty status

Reimplemented from KConfigBase.

Definition at line 1916 of file kconfigbase.cpp.

void KConfigGroup::sync ( ) [virtual]

Flushes all changes that currently reside only in memory back to disk / permanent storage.

Dirty configuration entries are written to the most specific file available.

Asks the back end to flush out all pending writes, and then calls rollback(). No changes are made if the object has readOnly status.

You should call this from your destructor in derivative classes.

See also:
rollback(), isReadOnly()

Reimplemented from KConfigBase.

Definition at line 1931 of file kconfigbase.cpp.


The documentation for this class was generated from the following files:
  • kconfigbase.h
  • kconfigbase.cpp

kdecore

Skip menu "kdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdecore

Skip menu "kdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |