16#ifndef QGSSETTINGSENTRYGROUP_H
17#define QGSSETTINGSENTRYGROUP_H
48 sipIsErr = sipCpp->isValid() ? 0 : 1;
50 PyErr_SetString( PyExc_ValueError, QStringLiteral(
"Settings do not share the same base definition key for this group. This will lead to unpredictable results." ).toUtf8().constData() );
61 QString baseKey(
const QStringList &dynamicKeyPartList = QStringList() )
const;
64 const QList<const QgsSettingsEntryBase *>
settings()
const {
return mSettings;}
70 void removeAllSettingsAtBaseKey(
const QStringList &dynamicKeyPartList = QStringList() )
const;
76 void removeAllChildrenSettings(
const QString &dynamicKeyPart = QString() )
const;
82 void removeAllChildrenSettings(
const QStringList &dynamicKeyPartList )
const;
85 bool hasDynamicKey()
const;
87 QList<const QgsSettingsEntryBase *> mSettings;
88 QString mDefinitionBaseKey;
Represent settings entry and provides methods for reading and writing settings values.
Creates a group of setting which have a common definition of base key.
bool isValid() const
Returns if the group is valid (if settings share the same base key)
const QList< const QgsSettingsEntryBase * > settings() const
Returns all the settings.
QgsSettingsEntryGroup(QList< const QgsSettingsEntryBase * > settings)
Constructor.