Libksieve

abstractregexpeditorlineedit.h
1/*
2 SPDX-FileCopyrightText: 2017-2025 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{
21public:
22 explicit AbstractRegexpEditorLineEdit(QWidget *parent = nullptr);
23 ~AbstractRegexpEditorLineEdit() override;
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
33 void textChanged(const QString &);
34};
35}
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:49:48 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.