File indexing completed on 2024-12-22 05:00:54

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 TextCustomEditor
0011 {
0012 class PlainTextEditor;
0013 }
0014 class MailfilterPurposeMenuWidget : public PimCommon::PurposeMenuWidget
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit MailfilterPurposeMenuWidget(QWidget *parentWidget, QObject *parent = nullptr);
0019     ~MailfilterPurposeMenuWidget() override;
0020 
0021     [[nodiscard]] QByteArray text() override;
0022     void setEditorWidget(TextCustomEditor::PlainTextEditor *editor);
0023 
0024 private:
0025     TextCustomEditor::PlainTextEditor *mEditor = nullptr;
0026 };