File indexing completed on 2024-05-19 16:39:09

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.h>
0010 
0011 using namespace Plasma;
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     PlasmaDesktopRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
0023     ~PlasmaDesktopRunner() override;
0024 
0025     void match(RunnerContext &context) override;
0026     void run(const RunnerContext &context, const QueryMatch &action) override;
0027 
0028 private:
0029     const QString m_desktopConsoleKeyword;
0030     const QString m_kwinConsoleKeyword;
0031 };