mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-23 07:35:54 +00:00
35 lines
799 B
C
35 lines
799 B
C
|
/*
|
||
|
SPDX-FileCopyrightText: 2009 Aaron Seigo <aseigo@kde.org>
|
||
|
|
||
|
SPDX-License-Identifier: LGPL-2.0-only
|
||
|
*/
|
||
|
|
||
|
#ifndef PLASMADESKTOPRUNNER_H
|
||
|
#define PLASMADESKTOPRUNNER_H
|
||
|
|
||
|
#include <krunner/abstractrunner.h>
|
||
|
|
||
|
using namespace Plasma;
|
||
|
|
||
|
/**
|
||
|
* This class runs programs using the literal name of the binary, much as one
|
||
|
* would use at a shell prompt.
|
||
|
*/
|
||
|
class PlasmaDesktopRunner : public AbstractRunner
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
PlasmaDesktopRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
|
||
|
~PlasmaDesktopRunner() override;
|
||
|
|
||
|
void match(RunnerContext &context) override;
|
||
|
void run(const RunnerContext &context, const QueryMatch &action) override;
|
||
|
|
||
|
private:
|
||
|
const QString m_desktopConsoleKeyword;
|
||
|
const QString m_kwinConsoleKeyword;
|
||
|
};
|
||
|
|
||
|
#endif
|