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;
296 void matchingSuspended(
bool suspended);
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)
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 20:30:58 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.