diff options
author | Alexander Lenhardt <alexander.lenhardt@nokia.com> | 2012-05-16 11:22:47 +0200 |
---|---|---|
committer | Alexander Lenhardt <alexander.lenhardt@nokia.com> | 2012-05-16 12:06:43 +0200 |
commit | 88eb3c616d6e9eb49158f4b33d7e856742e536be (patch) | |
tree | 5dc90b511bc4cb20ebf080c1780f5147f2a97814 /src/libs/installer/settings.h | |
parent | f9d1ca46325b5aff6c317b5606e1dece6952fc88 (diff) |
let value() also query the Settings object
if a value can not be found in the m_vars hash, value() will query
the Settings object first before returning the default value.
This allows to specify arbitrary tags to be defined in e.g. config.xml
which can later be accessed by installationscripts.
Change-Id: I881ff961e3647fa32a0219bbfc8bbb89935ff3d4
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Diffstat (limited to 'src/libs/installer/settings.h')
-rw-r--r-- | src/libs/installer/settings.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/installer/settings.h b/src/libs/installer/settings.h index d8864b8ce..ad7ad9e1f 100644 --- a/src/libs/installer/settings.h +++ b/src/libs/installer/settings.h @@ -115,6 +115,7 @@ public: QStringList certificateFiles() const; bool allowNonAsciiCharacters() const; + bool containsValue(const QString &key) const; QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const; QVariantList values(const QString &key, const QVariantList &defaultValue = QVariantList()) const; |