File indexing completed on 2024-05-12 05:38:19
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/Action> 0010 #include <KRunner/RunnerManager> 0011 0012 #include <KPluginMetaData> 0013 #include <QAction> 0014 #include <QObject> 0015 0016 using namespace KRunner; 0017 0018 class HelpRunner : public AbstractRunner 0019 { 0020 public: 0021 HelpRunner(QObject *parent, const KPluginMetaData &pluginMetaData); 0022 0023 void match(RunnerContext &context) override; 0024 void run(const RunnerContext &context, const QueryMatch &match) override; 0025 0026 private: 0027 RunnerManager *m_manager; 0028 const Actions m_actionList; 0029 };