• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

Classes | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | List of all members
KConfigIniBackend Class Reference

#include <kconfigini_p.h>

Inheritance diagram for KConfigIniBackend:
Inheritance graph
[legend]

Classes

class  BufferFragment
 

Public Member Functions

 KConfigIniBackend ()
 
 ~KConfigIniBackend ()
 
KConfigBase::AccessMode accessMode () const
 
void createEnclosing ()
 
bool isLocked () const
 
bool isWritable () const
 
bool lock (const KComponentData &componentData)
 
QString nonWritableErrorMessage () const
 
ParseInfo parseConfig (const QByteArray &locale, KEntryMap &entryMap, ParseOptions options)
 
ParseInfo parseConfig (const QByteArray &locale, KEntryMap &entryMap, ParseOptions options, bool merging)
 
void setFilePath (const QString &path)
 
void unlock ()
 
bool writeConfig (const QByteArray &locale, KEntryMap &entryMap, WriteOptions options, const KComponentData &data)
 
- Public Member Functions inherited from KConfigBackend
virtual ~KConfigBackend ()
 
QString filePath () const
 
QDateTime lastModified () const
 
qint64 size () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 
- Public Member Functions inherited from QSharedData
 QSharedData ()
 
 QSharedData (const QSharedData &other)
 

Protected Types

enum  StringType { GroupString = 0, KeyString = 1, ValueString = 2 }
 

Protected Member Functions

void writeEntries (const QByteArray &locale, QFile &file, const KEntryMap &map)
 
void writeEntries (const QByteArray &locale, QFile &file, const KEntryMap &map, bool defaultGroup, bool &firstEntry)
 
- Protected Member Functions inherited from KConfigBackend
 KConfigBackend ()
 
void setLastModified (const QDateTime &dt)
 
void setLocalFilePath (const QString &file)
 
void setSize (qint64 sz)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Static Protected Member Functions

static char charFromHex (const char *str, const QFile &file, int line)
 
static void printableToString (BufferFragment *aString, const QFile &file, int line)
 
static QByteArray stringToPrintable (const QByteArray &aString, StringType type)
 
static QString warningProlog (const QFile &file, int line)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 

Additional Inherited Members

- Public Types inherited from KConfigBackend
enum  ParseInfo { ParseOk, ParseImmutable, ParseOpenError }
 
enum  ParseOption { ParseGlobal = 1, ParseDefaults = 2, ParseExpansions = 4 }
 
enum  WriteOption { WriteGlobal = 1 }
 
- Static Public Member Functions inherited from KConfigBackend
static KSharedPtr< KConfigBackend > create (const KComponentData &componentData, const QString &fileName=QString(), const QString &system=QString())
 
static void registerMappings (const KEntryMap &entryMap)
 
- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Definition at line 30 of file kconfigini_p.h.

Member Enumeration Documentation

enum KConfigIniBackend::StringType
protected
Enumerator
GroupString 
KeyString 
ValueString 

Definition at line 61 of file kconfigini_p.h.

Constructor & Destructor Documentation

KConfigIniBackend::KConfigIniBackend ( )

Definition at line 58 of file kconfigini.cpp.

KConfigIniBackend::~KConfigIniBackend ( )

Definition at line 63 of file kconfigini.cpp.

Member Function Documentation

KConfigBase::AccessMode KConfigIniBackend::accessMode ( ) const
virtual
Returns
the read/write status of the configuration object
See also
KConfigBase::AccessMode

Implements KConfigBackend.

Definition at line 580 of file kconfigini.cpp.

char KConfigIniBackend::charFromHex ( const char *  str,
const QFile &  file,
int  line 
)
staticprotected

Definition at line 697 of file kconfigini.cpp.

void KConfigIniBackend::createEnclosing ( )
virtual

Create the enclosing object of the configuration object.

For example, if the configuration object is a file, this should create the parent directory.

Implements KConfigBackend.

Definition at line 548 of file kconfigini.cpp.

bool KConfigIniBackend::isLocked ( ) const
virtual
Returns
true if the file is locked, false if it is not locked

Implements KConfigBackend.

Definition at line 610 of file kconfigini.cpp.

bool KConfigIniBackend::isWritable ( ) const
virtual

If isWritable() returns false, writeConfig() will always fail.

Returns
true if the configuration is writable, false if it is immutable

Implements KConfigBackend.

Definition at line 516 of file kconfigini.cpp.

bool KConfigIniBackend::lock ( const KComponentData &  componentData)
virtual

Lock the file.

Implements KConfigBackend.

Definition at line 591 of file kconfigini.cpp.

QString KConfigIniBackend::nonWritableErrorMessage ( ) const
virtual

When isWritable() returns false, return an error message to explain to the user why saving configuration will not work.

The return value when isWritable() returns true is undefined.

Returns
a translated user-visible explanation for the configuration object not being writable

Implements KConfigBackend.

Definition at line 543 of file kconfigini.cpp.

KConfigBackend::ParseInfo KConfigIniBackend::parseConfig ( const QByteArray &  locale,
KEntryMap &  pWriteBackMap,
ParseOptions  options 
)
virtual

Read persistent storage.

Parameters
localethe locale to read entries for (if the backend supports localized entries)
pWriteBackMapthe KEntryMap where the entries are placed
options
See also
ParseOptions
Returns
See also
ParseInfo

Implements KConfigBackend.

Definition at line 68 of file kconfigini.cpp.

KConfigBackend::ParseInfo KConfigIniBackend::parseConfig ( const QByteArray &  locale,
KEntryMap &  entryMap,
ParseOptions  options,
bool  merging 
)

Definition at line 77 of file kconfigini.cpp.

void KConfigIniBackend::printableToString ( BufferFragment *  aString,
const QFile &  file,
int  line 
)
staticprotected

Definition at line 721 of file kconfigini.cpp.

void KConfigIniBackend::setFilePath ( const QString &  path)
virtual

Set the file path.

Note
path MUST be absolute.
Parameters
paththe absolute file path

Implements KConfigBackend.

Definition at line 559 of file kconfigini.cpp.

QByteArray KConfigIniBackend::stringToPrintable ( const QByteArray &  aString,
StringType  type 
)
staticprotected

Definition at line 615 of file kconfigini.cpp.

void KConfigIniBackend::unlock ( )
virtual

Release the lock on the file.

Implements KConfigBackend.

Definition at line 604 of file kconfigini.cpp.

QString KConfigIniBackend::warningProlog ( const QFile &  file,
int  line 
)
staticprotected

Definition at line 52 of file kconfigini.cpp.

bool KConfigIniBackend::writeConfig ( const QByteArray &  locale,
KEntryMap &  entryMap,
WriteOptions  options,
const KComponentData &  data 
)
virtual

Write the dirty entries to permanent storage.

Parameters
localethe locale to write entries for (if the backend supports localized entries)
entryMapthe KEntryMap containing the config object's entries.
options
See also
WriteOptions
Parameters
datathe component that requested the write
Returns
true if the write was successful, false if writing the configuration failed

Implements KConfigBackend.

Definition at line 380 of file kconfigini.cpp.

void KConfigIniBackend::writeEntries ( const QByteArray &  locale,
QFile &  file,
const KEntryMap &  map 
)
protected

Definition at line 369 of file kconfigini.cpp.

void KConfigIniBackend::writeEntries ( const QByteArray &  locale,
QFile &  file,
const KEntryMap &  map,
bool  defaultGroup,
bool &  firstEntry 
)
protected

Definition at line 282 of file kconfigini.cpp.


The documentation for this class was generated from the following files:
  • kconfigini_p.h
  • kconfigini.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal