KDECore
kconfigini.cpp
Go to the documentation of this file.
352 void KConfigIniBackend::writeEntries(const QByteArray& locale, QFile& file, const KEntryMap& map)
384 if (!it.key().mKey.isEmpty() && !it->bDirty) // not dirty, doesn't overwrite entry in writeMap. skips default entries, too.
400 //qDebug() << "Detected as deleted=>removed:" << key.mGroup << key.mKey << "global=" << bGlobal;
609 QByteArray result; // Guesstimated that it's good to avoid data() initialization for a length of l*4
QString i18n(const char *text)
Returns a localized version of a string.
Definition: klocalizedstring.h:630
Definition: kconfigdata.h:165
const char * constData() const
Definition: bufferfragment_p.h:65
BufferFragment left(unsigned int size) const
Definition: bufferfragment_p.h:104
ParseInfo parseConfig(const QByteArray &locale, KEntryMap &entryMap, ParseOptions options)
Read persistent storage.
Definition: kconfigini.cpp:59
Definition: kconfigdata.h:152
Definition: kconfigdata.h:164
Definition: kmacroexpander_unix.cpp:34
KConfigBase::AccessMode accessMode() const
Definition: kconfigini.cpp:563
Definition: kconfigdata.h:167
void setLocalFilePath(const QString &file)
Definition: kconfigbackend.cpp:128
QString nonWritableErrorMessage() const
When isWritable() returns false, return an error message to explain to the user why saving configurat...
Definition: kconfigini.cpp:526
Class to allow for atomic file I/O, as well as utility functions.
Definition: ksavefile.h:96
virtual bool open(OpenMode flags=QIODevice::ReadWrite)
Open the save file.
Definition: ksavefile.cpp:81
static bool checkAccess(const QString &pathname, int mode)
Check, if a file may be accessed in a given mode.
Definition: kstandarddirs.cpp:2114
void writeEntries(const QByteArray &locale, QFile &file, const KEntryMap &map)
Definition: kconfigini.cpp:352
char at(unsigned int i) const
Definition: bufferfragment_p.h:54
static QByteArray stringToPrintable(const QByteArray &aString, StringType type)
Definition: kconfigini.cpp:598
Automatically remove a lock when a lock is detected that is stale for more than staleTime() seconds...
Definition: klockfile.h:84
LockResult lock(LockFlags flags=LockFlags())
Attempt to acquire the lock.
Definition: klockfile_unix.cpp:386
Definition: kconfigbackend.h:103
Definition: kconfigdata.h:166
void truncate(unsigned int pos)
Definition: bufferfragment_p.h:116
QByteArray toByteArray() const
Definition: bufferfragment_p.h:166
Definition: kconfigbase.h:133
BufferFragment mid(unsigned int pos, int length=-1) const
Definition: bufferfragment_p.h:126
Definition: kconfigini_p.h:65
Definition: kconfigdata.h:169
Definition: kconfigbackend.h:94
key structure holding both the actual key and the group to which it belongs.
Definition: kconfigdata.h:89
Definition: kconfigini_p.h:64
static QString warningProlog(const QFile &file, int line)
Definition: kconfigini.cpp:43
static char charFromHex(const char *str, const QFile &file, int line)
Definition: kconfigini.cpp:680
Provides the implementation for accessing configuration sources.
Definition: kconfigbackend.h:55
bool setEntry(const QByteArray &group, const QByteArray &key, const QByteArray &value, EntryOptions options)
Returns true if the entry gets dirtied or false in other case.
void setLastModified(const QDateTime &dt)
Definition: kconfigbackend.cpp:108
the configuration was opened read/write
Definition: kconfigbackend.h:111
Definition: kconfigbase.h:133
static void printableToString(BufferFragment *aString, const QFile &file, int line)
Definition: kconfigini.cpp:704
BufferFragment split(char c, unsigned int *start)
Definition: bufferfragment_p.h:87
Definition: kconfigbase.h:133
void truncateLeft(unsigned int size)
Definition: bufferfragment_p.h:109
Definition: kconfigbackend.h:110
int indexOf(char c, unsigned int from=0) const
Definition: bufferfragment_p.h:145
QByteArray toVolatileByteArray() const
Definition: bufferfragment_p.h:172
int lastIndexOf(char c) const
Definition: bufferfragment_p.h:155
Definition: kconfigini_p.h:63
bool getEntryOption(const ConstIterator &it, EntryOption option) const
void createEnclosing()
Create the enclosing object of the configuration object.
Definition: kconfigini.cpp:531
Definition: kconfigdata.h:163
bool isWritable() const
If isWritable() returns false, writeConfig() will always fail.
Definition: kconfigini.cpp:499
Definition: kconfigdata.h:168
bool writeConfig(const QByteArray &locale, KEntryMap &entryMap, WriteOptions options, const KComponentData &data)
Write the dirty entries to permanent storage.
Definition: kconfigini.cpp:363
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.