Plasma
7 #ifndef PLASMA_DATAENGINESCRIPT_H
8 #define PLASMA_DATAENGINESCRIPT_H
10 #include <plasma/plasma_export.h>
11 #if PLASMA_ENABLE_DEPRECATED_SINCE(5, 94)
12 #include <KPluginInfo>
15 #include <plasma/dataengine.h>
16 #include <plasma/scripting/scriptengine.h>
20 class DataEngineScriptPrivate;
68 virtual bool sourceRequestEvent(
const QString &name);
78 virtual bool updateSourceEvent(
const QString &source);
89 #if PLASMA_BUILD_DEPRECATED_SINCE(5, 83)
93 QString mainScript()
const override;
100 PLASMA_DEPRECATED_VERSION(5, 83,
"Use kpackage API instead")
101 Package package()
const override;
104 #if PLASMA_ENABLE_DEPRECATED_SINCE(5, 67)
110 PLASMA_DEPRECATED_VERSION(5, 67,
"Use KPluginMetaData metadata()")
132 void removeAllData(
const QString &source);
134 void setMinimumPollingInterval(
int minimumMs);
135 int minimumPollingInterval()
const;
136 void setPollingInterval(uint frequency);
137 void removeAllSources();
140 void removeSource(
const QString &source);
141 void updateAllSources();
142 void forceImmediateUpdateOfAllVisualizations();
145 DataEngineScriptPrivate *
const d;
148 #if PLASMA_ENABLE_DEPRECATED_SINCE(5, 88)
150 #define K_EXPORT_PLASMA_DATAENGINESCRIPTENGINE(libname, classname) K_PLUGIN_FACTORY(factory, registerPlugin<classname>();)
153 #define K_EXPORT_PLASMA_DATAENGINESCRIPTENGINE_WITH_JSON(libname, classname, jsonFile) \
154 K_PLUGIN_FACTORY_WITH_JSON(factory, jsonFile, registerPlugin<classname>();)
Provides a restricted interface for scripting a DataEngine.
Data provider for plasmoids (Plasma plugins)
Namespace for everything in libplasma.
The base class for scripting interfaces to be used in loading plasmoids of a given language.
This class provides a generic API for write access to settings or services.
A set of data exported via a DataEngine.
object representing an installed Plasma package
QVector< V > values(const QMultiHash< K, V > &c)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Feb 5 2023 04:14:15 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.