KTextEditor

configinterface.h
1 /*
2  SPDX-FileCopyrightText: 2006 Matt Broadstone <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef KTEXTEDITOR_CONFIGINTERFACE_H
8 #define KTEXTEDITOR_CONFIGINTERFACE_H
9 
10 #include <QStringList>
11 #include <QVariant>
12 #include <ktexteditor_export.h>
13 
14 namespace KTextEditor
15 {
105 class KTEXTEDITOR_EXPORT ConfigInterface
106 {
107 public:
108  ConfigInterface();
109 
113  virtual ~ConfigInterface();
114 
115 public:
119  virtual QStringList configKeys() const = 0;
123  virtual QVariant configValue(const QString &key) = 0;
127  virtual void setConfigValue(const QString &key, const QVariant &value) = 0;
128 
129 private:
130  class ConfigInterfacePrivate *const d = nullptr;
131 };
132 
133 }
134 
135 Q_DECLARE_INTERFACE(KTextEditor::ConfigInterface, "org.kde.KTextEditor.ConfigInterface")
136 
137 #endif
QVariant configValue(const QString &key) override
Get a value for the key.
Config interface extension for the Document and View.
void setConfigValue(const QString &key, const QVariant &value) override
Set a the key&#39;s value to value.
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition: katetextblock.h:21
QStringList configKeys() const override
Get a list of all available keys.
virtual ~ConfigInterface()
Virtual destructor.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 22:56:52 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.