Plasma
Go to the documentation of this file.
20 #ifndef PLASMA_ABSTRACTRUNNER_H
21 #define PLASMA_ABSTRACTRUNNER_H
23 #include <QtCore/QObject>
24 #include <QtCore/QMutex>
25 #include <QtCore/QStringList>
27 #include <kconfiggroup.h>
48 class AbstractRunnerPrivate;
66 Q_PROPERTY(
bool matchingSuspended READ isMatchingSuspended WRITE suspendMatching NOTIFY matchingSuspended)
67 Q_PROPERTY(QString
id READ
id)
68 Q_PROPERTY(QString description READ description)
69 Q_PROPERTY(QString name READ name)
70 Q_PROPERTY(QIcon icon READ icon)
88 typedef QList<AbstractRunner*>
List;
156 bool hasRunOptions();
165 virtual void createRunOptions(
QWidget *widget);
194 RunnerContext::Types ignoredTypes()
const;
200 void setIgnoredTypes(RunnerContext::Types types);
205 QString name()
const;
215 QString description()
const;
230 const Package *package()
const;
235 virtual void reloadConfiguration();
241 QList<RunnerSyntax> syntaxes()
const;
255 static QMutex *bigLock();
269 bool isMatchingSuspended()
const;
300 friend class RunnerManagerPrivate;
311 void suspendMatching(
bool suspend);
316 KConfigGroup config()
const;
321 void setHasRunOptions(
bool hasRunOptions);
329 void setSpeed(
Speed newSpeed);
335 void setPriority(
Priority newPriority);
349 KService::List serviceQuery(
const QString &serviceType,
350 const QString &constraint = QString())
const;
372 QAction* addAction(
const QString &
id,
const QIcon &icon,
const QString &text);
383 void addAction(
const QString &
id, QAction *action);
391 void removeAction(
const QString &
id);
396 QAction* action(
const QString &
id)
const;
401 QHash<QString, QAction*> actions()
const;
442 void setSyntaxes(
const QList<RunnerSyntax> &syns);
463 Q_INVOKABLE
DataEngine *dataEngine(
const QString &name)
const;
483 AbstractRunnerPrivate *
const d;
488 #define K_EXPORT_PLASMA_RUNNER( libname, classname ) \
489 K_PLUGIN_FACTORY(factory, registerPlugin<classname>();) \
490 K_EXPORT_PLUGIN(factory("plasma_runner_" #libname)) \
491 K_EXPORT_PLUGIN_VERSION(PLASMA_VERSION)
498 #define K_EXPORT_RUNNER_CONFIG( name, classname ) \
499 K_PLUGIN_FACTORY(ConfigFactory, registerPlugin<classname>();) \
500 K_EXPORT_PLUGIN(ConfigFactory("kcm_krunner_" #name)) \
501 K_EXPORT_PLUGIN_VERSION(PLASMA_VERSION)
Data provider for plasmoids (Plasma plugins)
The RunnerManager class decides what installed runners are runnable, and their ratings.
Namespace for everything in libplasma.
Priority
Specifies a priority for the runner.
A match returned by an AbstractRunner in response to a given RunnerContext.
An abstract base class for Plasma Runner plugins.
void teardown()
This signal is emitted when a session of matches is complete, giving runners the opportunity to tear ...
Provides a restricted interface for scripting a runner.
QList< AbstractRunner * > List
An ordered list of runners.
Speed
Specifies a nominal speed for the runner.
void matchingSuspended(bool suspended)
Emitted when the runner enters or exits match suspension.
The RunnerContext class provides information related to a search, including the search term,...
void prepare()
This signal is emitted when matching is about to commence, giving runners an opportunity to prepare t...
object representing an installed Plasmagik package
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.