Plasma
Go to the documentation of this file.
20 #ifndef PLASMA_DATAENGINESCRIPT_H
21 #define PLASMA_DATAENGINESCRIPT_H
23 #include <kgenericfactory.h>
24 #include <kplugininfo.h>
33 class DataEngineScriptPrivate;
72 virtual QStringList sources()
const;
81 virtual bool sourceRequestEvent(
const QString &name);
91 virtual bool updateSourceEvent(
const QString &source);
99 virtual Service *serviceForSource(
const QString &source);
105 QString mainScript()
const;
112 const Package *package()
const;
117 KPluginInfo description()
const;
119 void setData(
const QString &source,
const QString &key,
120 const QVariant &value);
121 void setData(
const QString &source,
const QVariant &value);
131 void removeAllData(
const QString &source);
132 void removeData(
const QString &source,
const QString &key);
133 void setMaxSourceCount(uint limit);
134 void setMinimumPollingInterval(
int minimumMs);
135 int minimumPollingInterval()
const;
136 void setPollingInterval(uint frequency);
137 void removeAllSources();
140 void setName(
const QString &name);
141 void setIcon(
const QString &icon);
142 void scheduleSourcesUpdated();
143 void removeSource(
const QString &source);
144 void updateAllSources();
145 void forceImmediateUpdateOfAllVisualizations();
148 DataEngineScriptPrivate *
const d;
151 #define K_EXPORT_PLASMA_DATAENGINESCRIPTENGINE(libname, classname) \
152 K_PLUGIN_FACTORY(factory, registerPlugin<classname>();) \
153 K_EXPORT_PLUGIN(factory("plasma_dataenginescriptengine_" #libname))
QHash< QString, DataContainer * > SourceDict
QHash< QString, QVariant > Data
This class provides a generic API for write access to settings or services.
The base class for scripting interfaces to be used in loading plasmoids of a given language...
Data provider for plasmoids (Plasma plugins)
Provides a restricted interface for scripting a DataEngine.
object representing an installed Plasmagik package
A set of data exported via a DataEngine.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:33 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.