File indexing completed on 2024-06-23 05:18:34

0001 /*
0002    SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include "messagecomposer_export.h"
0009 #include <PimCommon/AbstractGenericPlugin>
0010 #include <QObject>
0011 #include <memory>
0012 namespace MessageComposer
0013 {
0014 class PluginEditorPrivate;
0015 /**
0016  * @brief The PluginEditor class
0017  * @author Laurent Montel <montel@kde.org>
0018  */
0019 class MESSAGECOMPOSER_EXPORT PluginEditor : public PimCommon::AbstractGenericPlugin
0020 {
0021     Q_OBJECT
0022 public:
0023     explicit PluginEditor(QObject *parent = nullptr);
0024     ~PluginEditor() override;
0025     void setOrder(int order);
0026     [[nodiscard]] int order() const;
0027 
0028     [[nodiscard]] virtual bool canProcessKeyEvent() const;
0029 
0030 private:
0031     std::unique_ptr<PluginEditorPrivate> const d;
0032 };
0033 }