File indexing completed on 2025-01-19 04:46:56

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <MessageViewer/ViewerPluginInterface>
0010 #include <QUrl>
0011 class KActionCollection;
0012 namespace MessageViewer
0013 {
0014 class ViewerPluginExpandurlInterface : public ViewerPluginInterface
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit ViewerPluginExpandurlInterface(KActionCollection *ac, QWidget *parent = nullptr);
0019     ~ViewerPluginExpandurlInterface() override;
0020 
0021     [[nodiscard]] QList<QAction *> actions() const override;
0022     void execute() override;
0023     [[nodiscard]] ViewerPluginInterface::SpecificFeatureTypes featureTypes() const override;
0024 
0025     void setUrl(const QUrl &url) override;
0026 
0027 private:
0028     void createAction(KActionCollection *ac);
0029     QUrl mCurrentUrl;
0030     QList<QAction *> mAction;
0031 };
0032 }