File indexing completed on 2024-06-16 04:42:42

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "room/plugins/plugintextinterface.h"
0010 namespace KIO
0011 {
0012 class KUriFilterSearchProviderActions;
0013 }
0014 class WebShortcutTextInterface : public PluginTextInterface
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit WebShortcutTextInterface(QObject *parent = nullptr);
0019     ~WebShortcutTextInterface() override;
0020 
0021     void addAction(QMenu *menu) override;
0022 
0023     void setSelectedText(const QString &str) override;
0024 
0025 private:
0026     KIO::KUriFilterSearchProviderActions *const mWebShortcutMenuManager;
0027 };