Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
abstractsettings.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef ABSTRACTSETTINGS_P_H
6#define ABSTRACTSETTINGS_P_H
7
8#include <QtDesigner/sdk_global.h>
9
10#include <QtCore/qvariant.h>
11
12QT_BEGIN_NAMESPACE
13
14class QString;
15
16class QDESIGNER_SDK_EXPORT QDesignerSettingsInterface
17{
18public:
19 Q_DISABLE_COPY_MOVE(QDesignerSettingsInterface)
20
21 QDesignerSettingsInterface() = default;
22 virtual ~QDesignerSettingsInterface() = default;
23
24 virtual void beginGroup(const QString &prefix) = 0;
25 virtual void endGroup() = 0;
26
27 virtual bool contains(const QString &key) const = 0;
28 virtual void setValue(const QString &key, const QVariant &value) = 0;
29 virtual QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const = 0;
30 virtual void remove(const QString &key) = 0;
31};
32
33QT_END_NAMESPACE
34
35#endif // ABSTRACTSETTINGS_P_H