File indexing completed on 2024-05-05 17:45:01
0001 /* 0002 SPDX-FileCopyrightText: 2021 Alexander Lohnau <alexander.lohnau@gmx.de> 0003 SPDX-License-Identifier: LGPL-2.1-or-later 0004 */ 0005 0006 #pragma once 0007 0008 #include <KRunner/AbstractRunner> 0009 #include <KRunner/RunnerManager> 0010 0011 #include <KPluginMetaData> 0012 #include <QAction> 0013 #include <QObject> 0014 0015 using namespace Plasma; 0016 0017 class HelpRunner : public AbstractRunner 0018 { 0019 public: 0020 HelpRunner(QObject *parent, const KPluginMetaData &pluginMetaData, const QVariantList &args); 0021 0022 void match(RunnerContext &context) override; 0023 void run(const RunnerContext &context, const QueryMatch &match) override; 0024 0025 private: 0026 RunnerManager *m_manager; 0027 QList<QAction *> m_actionList; 0028 };