Libksieve

abstractregexpeditorlineedit.h
1 /*
2  SPDX-FileCopyrightText: 2017-2021 Laurent Montel <[email protected]>
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 
12 namespace KSieveUi
13 {
14 /**
15  * @brief The AbstractRegexpEditorLineEdit class
16  * @author Laurent Montel <[email protected]>
17  */
18 class KSIEVEUI_EXPORT AbstractRegexpEditorLineEdit : public QWidget
19 {
20  Q_OBJECT
21 public:
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 
32 Q_SIGNALS:
33  void textChanged(const QString &);
34 };
35 }
36 
The AbstractRegexpEditorLineEdit class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:09:33 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.