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

0001 /*
0002    SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <PimCommon/PurposeMenuWidget>
0010 namespace KSieveUi
0011 {
0012 class SieveEditorWidget;
0013 class SievePurposeMenuWidget : public PimCommon::PurposeMenuWidget
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit SievePurposeMenuWidget(QWidget *parentWidget, QObject *parent = nullptr);
0018     ~SievePurposeMenuWidget() override;
0019 
0020     [[nodiscard]] QByteArray text() override;
0021     void setEditorWidget(SieveEditorWidget *editor);
0022 
0023 private:
0024     SieveEditorWidget *mSieveEditorWidget = nullptr;
0025 };
0026 }