KDECore
Go to the documentation of this file. 23 #ifndef KCONFIGBACKEND_H 24 #define KCONFIGBACKEND_H 26 #include <QtCore/QObject> 27 #include <QtCore/QString> 32 #ifndef KDE_NO_DEPRECATED 87 static void registerMappings(
const KEntryMap& entryMap);
99 Q_DECLARE_FLAGS(ParseOptions, ParseOption)
106 Q_DECLARE_FLAGS(WriteOptions, WriteOption)
123 virtual ParseInfo parseConfig(
const QByteArray&
locale,
125 ParseOptions options = ParseOptions()) = 0;
137 virtual bool writeConfig(
const QByteArray&
locale,
KEntryMap& entryMap,
145 virtual bool isWritable()
const = 0;
155 virtual QString nonWritableErrorMessage()
const = 0;
168 virtual void createEnclosing() = 0;
177 virtual void setFilePath(
const QString& path) = 0;
186 virtual void unlock() = 0;
190 virtual bool isLocked()
const = 0;
203 void setLastModified(
const QDateTime& dt);
205 void setLocalFilePath(
const QString& file);
212 Q_DECLARE_OPERATORS_FOR_FLAGS(KConfigBackend::ParseOptions)
213 Q_DECLARE_OPERATORS_FOR_FLAGS(KConfigBackend::WriteOptions)
218 #define K_EXPORT_KCONFIGBACKEND(libname, classname) \ 219 K_PLUGIN_FACTORY(factory, registerPlugin<classname>();) \ 220 K_EXPORT_PLUGIN(factory("kconfigbackend_" #libname)) 223 #endif // KCONFIGBACKEND_H
ParseOption
Allows the behaviour of parseConfig() to be tuned.
ParseInfo
Return value from parseConfig()
WriteOption
Allows the behaviour of writeConfig() to be tuned.
Provides the implementation for accessing configuration sources.
KLocale * locale()
Returns the global locale object.
the configuration was opened read/write
AccessMode
Possible return values for accessMode().
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jan 18 2020 18:58:49 by
doxygen 1.8.15 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.