diff options
author | David Faure <faure@kde.org> | 2013-12-18 09:53:59 +0100 |
---|---|---|
committer | David Faure <faure@kde.org> | 2013-12-18 09:53:59 +0100 |
commit | 159963832457e6307282308455330acc7b5bd153 (patch) | |
tree | ce1cc0234d37e9afc75bc86d734beb963ed57d02 /src/core/kconfigbase.h | |
parent | 867e7a50e6396338ab4fe9aa22ad141e4cd344d2 (diff) | |
download | kconfig-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/kconfigbase.h')
-rw-r--r-- | src/core/kconfigbase.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/src/core/kconfigbase.h b/src/core/kconfigbase.h index 782ff4b6..3d00d98a 100644 --- a/src/core/kconfigbase.h +++ b/src/core/kconfigbase.h @@ -41,8 +41,7 @@ public: /** * Flags to control write entry */ - enum WriteConfigFlag - { + enum WriteConfigFlag { Persistent = 0x01, /**< * Save this entry when saving the config object. @@ -56,11 +55,11 @@ public: /**< * Add the locale tag to the key when writing it. */ - Normal=Persistent - /**< - * Save the entry to the application specific config file without - * a locale tag. This is the default. - */ + Normal = Persistent + /**< + * Save the entry to the application specific config file without + * a locale tag. This is the default. + */ }; Q_DECLARE_FLAGS(WriteConfigFlags, WriteConfigFlag) @@ -154,31 +153,29 @@ public: /** * Can changes be made to the entries in @p aGroup? - * + * * @param aGroup The group to check for immutability. * @return @c false if the entries in @p aGroup can be modified. */ - bool isGroupImmutable(const QByteArray& aGroup) const; - bool isGroupImmutable(const QString& aGroup) const; + bool isGroupImmutable(const QByteArray &aGroup) const; + bool isGroupImmutable(const QString &aGroup) const; bool isGroupImmutable(const char *aGroup) const; protected: KConfigBase(); virtual bool hasGroupImpl(const QByteArray &group) const = 0; - virtual KConfigGroup groupImpl( const QByteArray &b) = 0; + virtual KConfigGroup groupImpl(const QByteArray &b) = 0; virtual const KConfigGroup groupImpl(const QByteArray &b) const = 0; virtual void deleteGroupImpl(const QByteArray &group, WriteConfigFlags flags = Normal) = 0; - virtual bool isGroupImmutableImpl(const QByteArray& aGroup) const = 0; + virtual bool isGroupImmutableImpl(const QByteArray &aGroup) const = 0; /** Virtual hook, used to add new "virtual" functions while maintaining * binary compatibility. Unused in this class. */ - virtual void virtual_hook( int id, void* data ); + virtual void virtual_hook(int id, void *data); }; Q_DECLARE_OPERATORS_FOR_FLAGS(KConfigBase::WriteConfigFlags) - - #endif // KCONFIG_H |