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

tdecore

Public Member Functions | Protected Member Functions

KSimpleConfig Class Reference

KDE Configuration entries. More...

#include <ksimpleconfig.h>

Inheritance diagram for KSimpleConfig:
TDEConfig TDEConfigBase TQObject

List of all members.

Public Member Functions

 KSimpleConfig (const TQString &fileName, bool bReadOnly=false)
 KSimpleConfig (TDEConfigBackEnd *backEnd, bool bReadOnly=false)
virtual ~KSimpleConfig ()
virtual void sync ()

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Detailed Description

KDE Configuration entries.

This is a trivial extension of TDEConfig for applications that need only one configuration file and no default system. A difference with TDEConfig is that when the data in memory is written back it is not merged with what is on disk. Whatever is in memory simply replaces what is on disk entirely.

Author:
Kalle Dalheimer <kalle@kde.org>, Preston Brown <pbrown@kde.org>
See also:
TDEConfigBase TDEConfig KDE Configuration Management class with deletion ability

Definition at line 41 of file ksimpleconfig.h.


Constructor & Destructor Documentation

KSimpleConfig::KSimpleConfig ( const TQString &  fileName,
bool  bReadOnly = false 
)

Construct a KSimpleConfig object and make it either read-write or read-only.

Parameters:
fileName The file used for saving the config data. Either a full path can be specified or just the filename. If only a filename is specified, the default directory for "config" files is used.
bReadOnly Whether the object should be read-only.

Definition at line 40 of file ksimpleconfig.cpp.

KSimpleConfig::~KSimpleConfig (  )  [virtual]

Destructor.

Writes back any dirty configuration entries.

Definition at line 59 of file ksimpleconfig.cpp.


Member Function Documentation

void KSimpleConfig::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 TDEConfigBase.

Definition at line 68 of file ksimpleconfig.cpp.


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

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.7.1
This website is maintained by Timothy Pearson.