KRunner
runnercontext.cpp
88 int changedLaunchCounts = 0; // We want to sync them while the app is running, but for each query it is overkill
void writeEntry(const char *key, const char *value, WriteConfigFlags pFlags=Normal)
QString readEntry(const char *key, const char *aDefault=nullptr) const
bool sync() override
A match returned by an AbstractRunner in response to a given RunnerContext.
Definition querymatch.h:32
void setQuery(const QString &term)
Sets the query term for this object and attempts to determine the type of the search.
Definition runnercontext.cpp:163
QList< QueryMatch > matches() const
Retrieves all available matches for the current search term.
Definition runnercontext.cpp:219
RunnerContext & operator=(const RunnerContext &other)
Assignment operator.
Definition runnercontext.cpp:114
bool addMatch(const QueryMatch &match)
Appends a match to the existing list of matches.
Definition runnercontext.cpp:214
bool singleRunnerQueryMode() const
Definition runnercontext.cpp:237
bool addMatches(const QList< QueryMatch > &matches)
Appends lists of matches to the list of matches.
Definition runnercontext.cpp:191
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:226
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:242
The RunnerManager class decides what installed runners are runnable, and their ratings.
Definition runnermanager.h:43
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
KCOREADDONS_EXPORT Result match(QStringView pattern, QStringView str)
void reserve(qsizetype size)
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
bool isEmpty() const const
QString mid(qsizetype position, qsizetype n) const const
QString number(double n, char format, int precision)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:58:33 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:58:33 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.