File indexing completed on 2025-01-05 04:49:29
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 class ShareTextPluginEditorInterface; 0011 class SharetextPurposeMenuWidget : public PimCommon::PurposeMenuWidget 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit SharetextPurposeMenuWidget(QWidget *parentWidget, QObject *parent = nullptr); 0016 ~SharetextPurposeMenuWidget() override; 0017 0018 [[nodiscard]] QByteArray text() override; 0019 void setEditorWidget(ShareTextPluginEditorInterface *interface); 0020 0021 private: 0022 ShareTextPluginEditorInterface *mInterface = nullptr; 0023 };