Plasma
runnercontext.cpp
Go to the documentation of this file.
61 bool correctLastComponentCase(const QString &path, QString &correctCasePath, const bool mustBeDir)
void matchesChanged()
QueryMatch match(const QString &id) const
Retrieves a match by id.
Definition: runnercontext.cpp:525
An abstract base class for Plasma Runner plugins.
Definition: abstractrunner.h:63
RunnerContext(QObject *parent=0)
Definition: runnercontext.cpp:266
void setSingleRunnerQueryMode(bool enabled)
Sets single runner query mode.
Definition: runnercontext.cpp:538
void run(const RunnerContext &context) const
Requests this match to activae using the given context.
Definition: querymatch.cpp:273
RunnerContext & operator=(const RunnerContext &other)
Assignment operator.
Definition: runnercontext.cpp:285
Type type() const
The type of item the search term might refer to.
Definition: runnercontext.cpp:352
bool removeMatches(const QStringList matchIdList)
Removes lists of matches from the existing list of matches.
Definition: runnercontext.cpp:429
bool addMatch(const QString &term, const QueryMatch &match)
Appends a match to the existing list of matches.
Definition: runnercontext.cpp:403
Definition: runnercontext.h:55
void restore(const KConfigGroup &config)
Sets the launch counts for the associated match ids.
Definition: runnercontext.cpp:548
QString id() const
a string that can be used as an ID for this match, even between different queries.
Definition: querymatch.cpp:109
The RunnerContext class provides information related to a search, including the search term...
Definition: runnercontext.h:46
QList< QueryMatch > matches() const
Retrieves all available matches for the current search term.
Definition: runnercontext.cpp:517
void run(const QueryMatch &match)
Run a match using the information from this context.
Definition: runnercontext.cpp:575
static QScriptValue type(QScriptContext *ctx, QScriptEngine *eng)
Definition: easingcurve.cpp:63
bool singleRunnerQueryMode() const
Definition: runnercontext.cpp:543
A match returned by an AbstractRunner in response to a given RunnerContext.
Definition: querymatch.h:47
void setQuery(const QString &term)
Sets the query term for this object and attempts to determine the type of the search.
Definition: runnercontext.cpp:332
bool correctPathCase(const QString &path, QString &corrected)
Definition: runnercontext.cpp:110
bool addMatches(const QString &term, const QList< QueryMatch > &matches)
Appends lists of matches to the list of matches.
Definition: runnercontext.cpp:368
bool correctLastComponentCase(const QString &path, QString &correctCasePath, const bool mustBeDir)
Definition: runnercontext.cpp:61
void setRelevance(qreal relevance)
Sets the relevance of this action for the search it was created for.
Definition: querymatch.cpp:128
QString mimeType() const
The mimetype that the search term refers to, if discoverable.
Definition: runnercontext.cpp:357
bool removeMatch(const QString matchId)
Removes a match from the existing list of matches.
Definition: runnercontext.cpp:466
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.