KRunner
abstractrunnertest.h
51 const QString pluginId = QFileInfo(QStringLiteral(KRUNNER_TEST_RUNNER_PLUGIN_NAME)).completeBaseName();
52 auto metaData = KPluginMetaData::findPluginById(QStringLiteral(KRUNNER_TEST_RUNNER_PLUGIN_DIR), pluginId);
76 if (!QTest::qVerify(spy.wait(), "spy.wait()", "RunnerManager did not emit the queryFinished signal", __FILE__, __LINE__)) {
83 * Launch the configured DBus executable with the given arguments and wait for the process to be started.
85 * @param waitForService Wait for this service to be registered, this will default to the service from the metadata
88 QProcess *startDBusRunnerProcess(const QStringList &args = {}, const QString waitForService = QString())
static KPluginMetaData findPluginById(const QString &directory, const QString &pluginId, KPluginMetaDataOptions options={})
This class provides a basic structure for a runner test.
Definition abstractrunnertest.h:32
void initProperties()
Load the runner and set the manager and runner properties.
Definition abstractrunnertest.h:41
QList< QueryMatch > launchQuery(const QString &query, const QString &runnerName=QString())
Launch a query and wait for the RunnerManager to finish.
Definition abstractrunnertest.h:72
An abstract base class for Plasma Runner plugins.
Definition abstractrunner.h:45
The RunnerManager class decides what installed runners are runnable, and their ratings.
Definition runnermanager.h:43
QDBusConnection sessionBus()
void serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner)
int exec(ProcessEventsFlags flags)
void quit()
QString completeBaseName() const const
QByteArray readAll()
QObject(QObject *parent)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void kill()
QString program() const const
QByteArray readAllStandardError()
void start(OpenMode mode)
QProcess::ProcessState state() const const
bool waitForFinished(int msecs)
bool waitForStarted(int msecs)
bool wait(int timeout)
bool isEmpty() const const
QVERIFY(condition)
bool currentTestFailed()
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.