Plasma
Go to the documentation of this file.
22#ifndef PLASMA_RUNNERMANAGER_H
23#define PLASMA_RUNNERMANAGER_H
25#include <QtCore/QList>
26#include <QtCore/QObject>
28#include <kplugininfo.h>
41 class RunnerManagerPrivate;
79 void setSingleModeRunnerId(
const QString &
id);
85 QString singleModeRunnerId()
const;
91 bool singleMode()
const;
99 void setSingleMode(
bool singleMode);
107 QString runnerName(
const QString &
id)
const;
112 QList<AbstractRunner *> runners()
const;
118 QStringList singleModeAdvertisedRunnerIds()
const;
130 QList<QueryMatch> matches()
const;
142 void run(
const QString &
id);
147 QList<QAction*> actionsForMatch(
const QueryMatch &match);
152 QString query()
const;
157 void reloadConfiguration();
165 void setAllowedRunners(
const QStringList &runners);
177 void loadRunner(
const KService::Ptr service);
188 void loadRunner(
const QString &path);
194 QStringList allowedRunners()
const;
200 QMimeData * mimeDataForMatch(
const QueryMatch &match)
const;
206 QMimeData * mimeDataForMatch(
const QString &
id)
const;
219 static KPluginInfo::List listRunnerInfo(
const QString &parentApp = QString());
229 void setupMatchSession();
237 void matchSessionComplete();
248 void launchQuery(
const QString &term,
const QString &runnerId);
253 void launchQuery(
const QString &term);
264 bool execQuery(
const QString &term,
const QString &runnerName);
269 bool execQuery(
const QString &term);
289 Q_PRIVATE_SLOT(d,
void scheduleMatchesChanged())
290 Q_PRIVATE_SLOT(d,
void matchesChanged())
291 Q_PRIVATE_SLOT(d,
void jobDone(ThreadWeaver::Job*))
292 Q_PRIVATE_SLOT(d,
void unblockJobs())
293 Q_PRIVATE_SLOT(d,
void runnerMatchingSuspended(
bool))
295 RunnerManagerPrivate * const d;
297 friend class RunnerManagerPrivate;
An abstract base class for Plasma Runner plugins.
A match returned by an AbstractRunner in response to a given RunnerContext.
The RunnerContext class provides information related to a search, including the search term,...
The RunnerManager class decides what installed runners are runnable, and their ratings.
void matchesChanged(const QList< Plasma::QueryMatch > &matches)
Emitted each time a new match is added to the list.
void queryFinished()
Emitted when the launchQuery finish.
Namespace for everything in libplasma.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.