Libksieve

abstractselectemaillineedit.h
1/*
2 SPDX-FileCopyrightText: 2018-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>
11namespace KSieveUi
12{
13/**
14 * @brief The AbstractSelectEmailLineEdit class
15 * @author Laurent Montel <montel@kde.org>
16 */
17class KSIEVEUI_EXPORT AbstractSelectEmailLineEdit : public QWidget
18{
19 Q_OBJECT
20public:
21 explicit AbstractSelectEmailLineEdit(QWidget *parent = nullptr);
23 virtual void setText(const QString &str) = 0;
24 virtual QString text() const = 0;
25
26 [[nodiscard]] bool multiSelection() const;
27 void setMultiSelection(bool multiSelection);
28 [[nodiscard]] virtual bool isValid() const = 0;
29
30Q_SIGNALS:
31 void valueChanged();
32
33private:
34 bool mMultiSelection = false;
35};
36}
The AbstractSelectEmailLineEdit class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.