1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #ifndef ABSTRACTSETTINGS_P_H |
5 | #define ABSTRACTSETTINGS_P_H |
6 | |
7 | #include <QtDesigner/sdk_global.h> |
8 | |
9 | #include <QtCore/qvariant.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | class QString; |
14 | |
15 | class QDESIGNER_SDK_EXPORT QDesignerSettingsInterface |
16 | { |
17 | public: |
18 | Q_DISABLE_COPY_MOVE(QDesignerSettingsInterface) |
19 | |
20 | QDesignerSettingsInterface() = default; |
21 | virtual ~QDesignerSettingsInterface() = default; |
22 | |
23 | virtual void beginGroup(const QString &prefix) = 0; |
24 | virtual void endGroup() = 0; |
25 | |
26 | virtual bool contains(const QString &key) const = 0; |
27 | virtual void setValue(const QString &key, const QVariant &value) = 0; |
28 | virtual QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const = 0; |
29 | virtual void remove(const QString &key) = 0; |
30 | }; |
31 | |
32 | QT_END_NAMESPACE |
33 | |
34 | #endif // ABSTRACTSETTINGS_P_H |
35 |