Plasma
runnermanager.h
Go to the documentation of this file.
An abstract base class for Plasma Runner plugins.
Definition abstractrunner.h:64
A match returned by an AbstractRunner in response to a given RunnerContext.
Definition querymatch.h:48
The RunnerContext class provides information related to a search, including the search term,...
Definition runnercontext.h:47
void setSingleModeRunnerId(const QString &id)
Puts the manager into "single runner" mode using the given runner; if the runner does not exist or ca...
Definition runnermanager.cpp:527
QStringList allowedRunners() const
Definition runnermanager.cpp:486
QList< QAction * > actionsForMatch(const QueryMatch &match)
Retrieves the list of actions, if any, for a match.
Definition runnermanager.cpp:625
void setAllowedRunners(const QStringList &runners)
Sets a whitelist for the plugins that can be loaded.
Definition runnermanager.cpp:475
void matchesChanged(const QList< Plasma::QueryMatch > &matches)
Emitted each time a new match is added to the list.
QStringList singleModeAdvertisedRunnerIds() const
Definition runnermanager.cpp:571
friend class RunnerManagerPrivate
Definition runnermanager.h:297
void loadRunner(const KService::Ptr service)
Attempts to add the AbstractRunner plugin represented by the KService passed in.
Definition runnermanager.cpp:492
AbstractRunner * singleModeRunner() const
Definition runnermanager.cpp:522
QList< AbstractRunner * > runners() const
Definition runnermanager.cpp:566
void matchSessionComplete()
Call this method when the query session is finished for the time being.
Definition runnermanager.cpp:692
QString singleModeRunnerId() const
Definition runnermanager.cpp:533
RunnerManager(QObject *parent=0)
Definition runnermanager.cpp:441
bool execQuery(const QString &term, const QString &runnerName)
Execute a query, this method will only return when the query is executed This means that the method m...
Definition runnermanager.cpp:769
AbstractRunner * runner(const QString &name) const
Finds and returns a loaded runner or NULL.
Definition runnermanager.cpp:513
QString runnerName(const QString &id) const
Returns the translated name of a runner.
Definition runnermanager.cpp:576
QList< QueryMatch > matches() const
Retrieves all available matches found so far for the previously launched query.
Definition runnermanager.cpp:591
static KPluginInfo::List listRunnerInfo(const QString &parentApp=QString())
Returns a list of all known Runner implementations.
Definition runnermanager.cpp:657
void reloadConfiguration()
Causes a reload of the current configuration.
Definition runnermanager.cpp:469
QMimeData * mimeDataForMatch(const QueryMatch &match) const
Definition runnermanager.cpp:641
void setupMatchSession()
Call this method when the runners should be prepared for a query session.
Definition runnermanager.cpp:662
void launchQuery(const QString &term, const QString &runnerId)
Launch a query, this will create threads and return inmediately.
Definition runnermanager.cpp:707
void setSingleMode(bool singleMode)
Sets whether or not the manager is in single mode.
Definition runnermanager.cpp:543
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.