Changeset View
Changeset View
Standalone View
Standalone View
runners/shell/shellrunner.h
Show All 13 Lines | |||||
14 | * License along with this program; if not, write to the | 14 | * License along with this program; if not, write to the | ||
15 | * Free Software Foundation, Inc., | 15 | * Free Software Foundation, Inc., | ||
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #ifndef SHELLRUNNER_H | 19 | #ifndef SHELLRUNNER_H | ||
20 | #define SHELLRUNNER_H | 20 | #define SHELLRUNNER_H | ||
21 | 21 | | |||
22 | #include <krunner/abstractrunner.h> | 22 | #include <KRunner/AbstractRunner> | ||
23 | 23 | | |||
24 | /** | 24 | /** | ||
25 | * This class runs programs using the literal name of the binary, much as one | 25 | * This class runs programs using the literal name of the binary, much as one | ||
26 | * would use at a shell prompt. | 26 | * would use at a shell prompt. | ||
27 | */ | 27 | */ | ||
28 | class ShellRunner : public Plasma::AbstractRunner | 28 | class ShellRunner : public Plasma::AbstractRunner | ||
29 | { | 29 | { | ||
30 | Q_OBJECT | 30 | Q_OBJECT | ||
31 | 31 | | |||
32 | public: | 32 | public: | ||
33 | ShellRunner(QObject *parent, const QVariantList &args); | 33 | ShellRunner(QObject *parent, const QVariantList &args); | ||
34 | ~ShellRunner() override; | 34 | ~ShellRunner() override; | ||
35 | 35 | | |||
36 | void match(Plasma::RunnerContext &context) override; | 36 | void match(Plasma::RunnerContext &context) override; | ||
37 | void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &action) override; | 37 | void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &action) override; | ||
38 | QList<QAction *> actionsForMatch(const Plasma::QueryMatch &match) override; | 38 | QList<QAction *> actionsForMatch(const Plasma::QueryMatch &match) override; | ||
39 | 39 | | |||
40 | private: | 40 | private: | ||
41 | bool m_enabled; | 41 | bool m_enabled; | ||
42 | QList<QAction *> m_actionList; | ||||
43 | QIcon m_matchIcon; | ||||
42 | }; | 44 | }; | ||
43 | 45 | | |||
44 | 46 | | |||
45 | #endif | 47 | #endif |