Plasma
runnercontext.cpp
Go to the documentation of this file.
61 bool correctLastComponentCase(const QString &path, QString &correctCasePath, const bool mustBeDir)
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
QString id() const
@ruetnr a string that can be used as an ID for this match, even between different queries.
Definition: querymatch.cpp:109
void setRelevance(qreal relevance)
Sets the relevance of this action for the search it was created for.
Definition: querymatch.cpp:128
void run(const RunnerContext &context) const
Requests this match to activae using the given context.
Definition: querymatch.cpp:273
The RunnerContext class provides information related to a search, including the search term,...
Definition: runnercontext.h:47
QString mimeType() const
The mimetype that the search term refers to, if discoverable.
Definition: runnercontext.cpp:359
void setQuery(const QString &term)
Sets the query term for this object and attempts to determine the type of the search.
Definition: runnercontext.cpp:334
bool addMatches(const QString &term, const QList< QueryMatch > &matches)
Appends lists of matches to the list of matches.
Definition: runnercontext.cpp:373
bool singleRunnerQueryMode() const
Definition: runnercontext.cpp:548
void matchesChanged()
bool addMatch(const QString &term, const QueryMatch &match)
Appends a match to the existing list of matches.
Definition: runnercontext.cpp:408
void run(const QueryMatch &match)
Run a match using the information from this context.
Definition: runnercontext.cpp:580
void restore(const KConfigGroup &config)
Sets the launch counts for the associated match ids.
Definition: runnercontext.cpp:553
void setSingleRunnerQueryMode(bool enabled)
Sets single runner query mode.
Definition: runnercontext.cpp:543
RunnerContext & operator=(const RunnerContext &other)
Assignment operator.
Definition: runnercontext.cpp:285
bool removeMatches(const QStringList matchIdList)
Removes lists of matches from the existing list of matches.
Definition: runnercontext.cpp:434
RunnerContext(QObject *parent=0)
Definition: runnercontext.cpp:266
bool removeMatch(const QString matchId)
Removes a match from the existing list of matches.
Definition: runnercontext.cpp:471
QList< QueryMatch > matches() const
Retrieves all available matches for the current search term.
Definition: runnercontext.cpp:522
static QScriptValue type(QScriptContext *ctx, QScriptEngine *eng)
Definition: easingcurve.cpp:63
bool correctPathCase(const QString &path, QString &corrected)
Definition: runnercontext.cpp:110
bool correctLastComponentCase(const QString &path, QString &correctCasePath, const bool mustBeDir)
Definition: runnercontext.cpp:61
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 26 2021 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 26 2021 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.