Plasma
runnercontext.cpp
Go to the documentation of this file.
61 bool correctLastComponentCase(const QString &path, QString &correctCasePath, const bool mustBeDir)
void matchesChanged()
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString cap(int nth) const
QueryMatch match(const QString &id) const
Retrieves a match by id.
Definition: runnercontext.cpp:530
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
void removeFirst()
int size() const
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:543
bool exists() const
QChar separator()
void run(const RunnerContext &context) const
Requests this match to activae using the given context.
Definition: querymatch.cpp:273
int size() const
int indexIn(const QString &str, int offset, CaretMode caretMode) const
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:354
bool empty() const
QString path() const
bool removeMatches(const QStringList matchIdList)
Removes lists of matches from the existing list of matches.
Definition: runnercontext.cpp:434
QString fileName() const
int toInt(bool *ok, int base) const
bool isEmpty() const
bool isEmpty() const
bool addMatch(const QString &term, const QueryMatch &match)
Appends a match to the existing list of matches.
Definition: runnercontext.cpp:408
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
QDir dir() const
Definition: runnercontext.h:55
void pop_back()
void restore(const KConfigGroup &config)
Sets the launch counts for the associated match ids.
Definition: runnercontext.cpp:553
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:522
QString cleanPath(const QString &path)
void run(const QueryMatch &match)
Run a match using the information from this context.
Definition: runnercontext.cpp:580
static QScriptValue type(QScriptContext *ctx, QScriptEngine *eng)
Definition: easingcurve.cpp:63
bool singleRunnerQueryMode() const
Definition: runnercontext.cpp:548
A match returned by an AbstractRunner in response to a given RunnerContext.
Definition: querymatch.h:47
QStringList entryList(QFlags< QDir::Filter > filters, QFlags< QDir::SortFlag > sort) const
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 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:373
bool correctLastComponentCase(const QString &path, QString &correctCasePath, const bool mustBeDir)
Definition: runnercontext.cpp:61
QString left(int n) const
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:359
bool removeMatch(const QString matchId)
Removes a match from the existing list of matches.
Definition: runnercontext.cpp:471
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
T & back()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.