KRunner
runnercontext.cpp
90 const bool isLocalProtocol = !hasProtocol || KProtocolInfo::protocolClass(url.scheme()) == QLatin1String(":local");
91 if ((hasProtocol && ((!isLocalProtocol && !url.host().isEmpty()) || (isLocalProtocol && url.scheme() != QLatin1String("file"))))
QList< QueryMatch > matches() const
Retrieves all available matches for the current search term.
Definition: runnercontext.cpp:410
void setEnabledCategories(const QStringList &categories)
Sets the list of enabled categories.
Definition: runnercontext.cpp:277
Q_EMITQ_EMIT
Type type(const QSqlDatabase &db)
QString scheme() const const
void ignoreCurrentMatchForHistory() const
Set this to true in the AbstractRunner::run method to prevent the entry from being saved to the histo...
Definition: runnercontext.cpp:444
A match returned by an AbstractRunner in response to a given RunnerContext.
Definition: querymatch.h:34
KCALUTILS_EXPORT QString mimeType()
An abstract base class for Plasma Runner plugins.
Definition: abstractrunner.h:68
void setScheme(const QString &scheme)
RunnerContext & operator=(const RunnerContext &other)
Assignment operator.
Definition: runnercontext.cpp:204
QString findExecutable(const QString &executableName, const QStringList &paths)
bool addMatches(const QList< QueryMatch > &matches)
Appends lists of matches to the list of matches.
Definition: runnercontext.cpp:313
void setRelevance(qreal relevance)
Sets the relevance of this action for the search it was created for.
Definition: querymatch.cpp:139
void requestQueryStringUpdate(const QString &text, int cursorPosition) const
Request that KRunner updates the query string and stasy open, even after running a match.
Definition: runnercontext.cpp:428
void setSingleRunnerQueryMode(bool enabled)
Sets single runner query mode.
Definition: runnercontext.cpp:434
QString mimeType() const
The mimetype that the search term refers to, if discoverable.
Definition: runnercontext.cpp:298
bool removeMatches(const QStringList matchIdList)
Removes lists of matches from the existing list of matches.
Definition: runnercontext.cpp:344
void run(const RunnerContext &context) const
Requests this match to activae using the given context.
Definition: querymatch.cpp:334
bool isEmpty() const const
KCOREADDONS_EXPORT QString tildeExpand(const QString &path)
bool isEmpty() const const
name
QString toLocalFile() const const
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const const
KSharedConfigPtr config()
QRegularExpressionMatch match(const QString &subject, int offset, QRegularExpression::MatchType matchType, QRegularExpression::MatchOptions matchOptions) const const
void restore(const KConfigGroup &config)
Sets the launch counts for the associated match ids.
Definition: runnercontext.cpp:454
QStringList enabledCategories() const
A list of categories of which results should be returned.
Definition: runnercontext.cpp:284
QString cleanPath(const QString &path)
QString host(QUrl::ComponentFormattingOptions options) const const
QString path(const QString &relativePath)
QString left(int n) const const
KCOREADDONS_EXPORT Result match(QStringView pattern, QStringView str)
bool removeMatch(const QString matchId)
Removes a match from the existing list of matches.
Definition: runnercontext.cpp:358
void run(const QueryMatch &match)
Run a match using the information from this context.
Definition: runnercontext.cpp:484
QMimeType mimeTypeForFile(const QString &fileName, QMimeDatabase::MatchMode mode) const 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:251
The RunnerContext class provides information related to a search, including the search term,...
Definition: runnercontext.h:31
bool addMatch(const QueryMatch &match)
Appends a match to the existing list of matches.
Definition: runnercontext.cpp:338
bool singleRunnerQueryMode() const
Definition: runnercontext.cpp:439
isDefault
QUrl fromUserInput(const QString &userInput)
static QString protocolClass(const QString &protocol)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 03:51:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 03:51:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.