aboutsummaryrefslogtreecommitdiff
path: root/src/core/kconfigbackend.h
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2013-12-18 09:53:59 +0100
committerDavid Faure <faure@kde.org>2013-12-18 09:53:59 +0100
commit159963832457e6307282308455330acc7b5bd153 (patch)
treece1cc0234d37e9afc75bc86d734beb963ed57d02 /src/core/kconfigbackend.h
parent867e7a50e6396338ab4fe9aa22ad141e4cd344d2 (diff)
downloadkconfig-159963832457e6307282308455330acc7b5bd153.tar.gz
kconfig-159963832457e6307282308455330acc7b5bd153.tar.bz2
Code reformatted using kde-dev-scripts/astyle-kdelibs.
Use git blame -w 867e7a5 to show authorship as it was before this commit.
Diffstat (limited to 'src/core/kconfigbackend.h')
-rw-r--r--src/core/kconfigbackend.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/core/kconfigbackend.h b/src/core/kconfigbackend.h
index 49239e66..550bf396 100644
--- a/src/core/kconfigbackend.h
+++ b/src/core/kconfigbackend.h
@@ -61,8 +61,8 @@ public:
* @param system the configuration system to use
* @return a KConfigBackend object to be used with KConfig
*/
- static QExplicitlySharedDataPointer<KConfigBackend> create(const QString& fileName = QString(),
- const QString& system = QString());
+ static QExplicitlySharedDataPointer<KConfigBackend> create(const QString &fileName = QString(),
+ const QString &system = QString());
/**
* Registers mappings from directories/files to configuration systems
@@ -74,7 +74,7 @@ public:
*
* @param entryMap the KEntryMap to build the mappings from
*/
- static void registerMappings(const KEntryMap& entryMap);
+ static void registerMappings(const KEntryMap &entryMap);
/** Destroys the backend */
virtual ~KConfigBackend();
@@ -110,8 +110,8 @@ public:
* @param options @see ParseOptions
* @return @see ParseInfo
*/
- virtual ParseInfo parseConfig(const QByteArray& locale,
- KEntryMap& pWriteBackMap,
+ virtual ParseInfo parseConfig(const QByteArray &locale,
+ KEntryMap &pWriteBackMap,
ParseOptions options = ParseOptions()) = 0;
/**
@@ -123,7 +123,7 @@ public:
*
* @return @c true if the write was successful, @c false if writing the configuration failed
*/
- virtual bool writeConfig(const QByteArray& locale, KEntryMap& entryMap,
+ virtual bool writeConfig(const QByteArray &locale, KEntryMap &entryMap,
WriteOptions options) = 0;
/**
@@ -163,7 +163,7 @@ public:
*
* @param path the absolute file path
*/
- virtual void setFilePath(const QString& path) = 0;
+ virtual void setFilePath(const QString &path) = 0;
/**
* Lock the file
@@ -189,9 +189,9 @@ public:
protected:
KConfigBackend();
- void setLastModified(const QDateTime& dt);
+ void setLastModified(const QDateTime &dt);
void setSize(qint64 sz);
- void setLocalFilePath(const QString& file);
+ void setLocalFilePath(const QString &file);
private:
class Private;
@@ -205,7 +205,6 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(KConfigBackend::WriteOptions)
* Register a KConfig backend when it is contained in a loadable module
*/
#define K_EXPORT_KCONFIGBACKEND(libname, classname) \
-K_PLUGIN_FACTORY(factory, registerPlugin<classname>();)
-
+ K_PLUGIN_FACTORY(factory, registerPlugin<classname>();)
#endif // KCONFIGBACKEND_H