File indexing completed on 2025-02-16 04:55:56

0001 /*
0002    SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #pragma once
0007 #include <QComboBox>
0008 
0009 namespace KSieveUi
0010 {
0011 class SelectAddHeaderPositionCombobox : public QComboBox
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit SelectAddHeaderPositionCombobox(QWidget *parent = nullptr);
0016     ~SelectAddHeaderPositionCombobox() override;
0017 
0018     [[nodiscard]] QString code() const;
0019     void setCode(const QString &code, const QString &name, QString &error);
0020 
0021 Q_SIGNALS:
0022     void valueChanged();
0023 
0024 private:
0025     void initialize();
0026 };
0027 }