Libksieve

selectbodytypewidget.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7
8#include <QWidget>
9
10class QComboBox;
11class QLineEdit;
12
13namespace KSieveUi
14{
15class SelectBodyTypeWidget : public QWidget
16{
18public:
19 explicit SelectBodyTypeWidget(QWidget *parent = nullptr);
20 ~SelectBodyTypeWidget() override;
21
22 [[nodiscard]] QString code() const;
23 void setCode(const QString &type, const QString &content, const QString &name, QString &error);
24
26 void valueChanged();
27
28private:
29 void slotBodyTypeChanged(int);
30 void initialize();
31 QComboBox *mBodyCombobox = nullptr;
32 QLineEdit *mBodyLineEdit = nullptr;
33};
34}
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:07:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.