Libksieve

abstractselectemaillineedit.h
1 /*
2  SPDX-FileCopyrightText: 2018-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 namespace KSieveUi
12 {
13 /**
14  * @brief The AbstractSelectEmailLineEdit class
15  * @author Laurent Montel <[email protected]>
16  */
17 class KSIEVEUI_EXPORT AbstractSelectEmailLineEdit : public QWidget
18 {
19  Q_OBJECT
20 public:
21  explicit AbstractSelectEmailLineEdit(QWidget *parent = nullptr);
22  ~AbstractSelectEmailLineEdit() override;
23  virtual void setText(const QString &str) = 0;
24  virtual QString text() const = 0;
25 
26  Q_REQUIRED_RESULT bool multiSelection() const;
27  void setMultiSelection(bool multiSelection);
28  virtual Q_REQUIRED_RESULT bool isValid() const = 0;
29 
30 Q_SIGNALS:
31  void valueChanged();
32 
33 private:
34  bool mMultiSelection = false;
35 };
36 }
37 
The AbstractSelectEmailLineEdit 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.