Libksieve

abstractregexpeditorlineedit.h
1/*
2 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "ksieveui_export.h"
10#include <QWidget>
11
12namespace KSieveUi
13{
14/**
15 * @brief The AbstractRegexpEditorLineEdit class
16 * @author Laurent Montel <montel@kde.org>
17 */
18class KSIEVEUI_EXPORT AbstractRegexpEditorLineEdit : public QWidget
19{
20 Q_OBJECT
21public:
22 explicit AbstractRegexpEditorLineEdit(QWidget *parent = nullptr);
24
25 virtual void switchToRegexpEditorLineEdit(bool regexpEditor) = 0;
26 virtual void setCode(const QString &str) = 0;
27 virtual QString code() const = 0;
28
29 virtual void setClearButtonEnabled(bool b) = 0;
30 virtual void setPlaceholderText(const QString &str) = 0;
31
32Q_SIGNALS:
33 void textChanged(const QString &);
34};
35}
The AbstractRegexpEditorLineEdit class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:19 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.