KTextWidgets 5.109.0
kregexpeditorinterface.h
1/*
2 kregexpeditorinterface.h - KDE RegExp Editor Interface
3 SPDX-FileCopyrightText: 2002 Jesper K. Pedersen <blackie@kdab.net>
4 SPDX-FileCopyrightText: 2002 Simon Hausmann <hausmann@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#ifndef __kregexpeditorinterface_h__
10#define __kregexpeditorinterface_h__
11
12#include <QString>
13
14#include <ktextwidgets_export.h>
15
16#if KTEXTWIDGETS_ENABLE_DEPRECATED_SINCE(5, 65)
85class KRegExpEditorInterface
86{
87public:
92 KTEXTWIDGETS_DEPRECATED_VERSION(5, 65, "No functional implementation")
93 virtual QString regExp() const = 0;
94
95 virtual ~KRegExpEditorInterface()
96 {
97 }
98
99protected:
100 // These are Q_SIGNALS: in classes that actually implement the interface.
101
105 virtual void canUndo(bool) = 0;
106
110 virtual void canRedo(bool) = 0;
111
118 virtual void changes(bool) = 0;
119
120public:
121 // These are public Q_SLOTS: in classes that implement the interface.
122
127 KTEXTWIDGETS_DEPRECATED_VERSION(5, 65, "No functional implementation")
128 virtual void setRegExp(const QString &regexp) = 0;
129 KTEXTWIDGETS_DEPRECATED_VERSION(5, 65, "No functional implementation")
130 virtual void redo() = 0;
131 KTEXTWIDGETS_DEPRECATED_VERSION(5, 65, "No functional implementation")
132 virtual void undo() = 0;
133
141 KTEXTWIDGETS_DEPRECATED_VERSION(5, 65, "No functional implementation")
142 virtual void setMatchText(const QString &) = 0;
143
150 KTEXTWIDGETS_DEPRECATED_VERSION(5, 65, "No functional implementation")
151 virtual void doSomething(const QString &method, void *arguments) = 0;
152};
153
154Q_DECLARE_INTERFACE(KRegExpEditorInterface, "org.kde.KRegExpEditorInterface/1.0")
155#endif
156#endif