File indexing completed on 2024-05-12 05:35:54

0001 /*
0002     SPDX-FileCopyrightText: 2009 Aaron Seigo <aseigo@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-only
0005 */
0006 
0007 #pragma once
0008 
0009 #include <KRunner/AbstractRunner>
0010 
0011 using namespace KRunner;
0012 
0013 /**
0014  * This class runs programs using the literal name of the binary, much as one
0015  * would use at a shell prompt.
0016  */
0017 class PlasmaDesktopRunner : public AbstractRunner
0018 {
0019     Q_OBJECT
0020 
0021 public:
0022     explicit PlasmaDesktopRunner(QObject *parent, const KPluginMetaData &metaData);
0023 
0024     void match(RunnerContext &context) override;
0025     void run(const RunnerContext &context, const QueryMatch &action) override;
0026 
0027 private:
0028     const QString m_desktopConsoleKeyword;
0029     const QString m_kwinConsoleKeyword;
0030 };