File indexing completed on 2024-12-29 04:54:41

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 SelectMimeComboBox : public QComboBox
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit SelectMimeComboBox(QWidget *parent = nullptr);
0016     ~SelectMimeComboBox() override;
0017 
0018     [[nodiscard]] QString code() const;
0019     void setCode(const QString &code, const QString &name, QString &error);
0020 
0021     [[nodiscard]] QString require() const;
0022 
0023 Q_SIGNALS:
0024     void valueChanged();
0025 
0026 private:
0027     void initialize();
0028 };
0029 }