dataengine examples: Use K_PLUGIN_CLASS_WITH_JSON directly
Task: https://phabricator.kde.org/T14542
This commit is contained in:
parent
094f82f9b4
commit
3063e43abd
@ -64,7 +64,7 @@ bool DataContainersEngine::updateSourceEvent(const QString &source)
|
||||
}
|
||||
|
||||
// export the plugin; use the plugin name and the class name
|
||||
K_EXPORT_PLASMA_DATAENGINE_WITH_JSON(org.kde.examples.customDataContainers, DataContainersEngine, "plasma-dataengine-example-customDataContainers.json")
|
||||
K_PLUGIN_CLASS_WITH_JSON(DataContainersEngine, "plasma-dataengine-example-customDataContainers.json")
|
||||
|
||||
// include the moc file so the build system makes it for us
|
||||
#include "customDataContainersEngine.moc"
|
||||
|
@ -54,7 +54,7 @@ void SimpleEngine::init()
|
||||
}
|
||||
|
||||
// export the plugin; use the plugin name and the class name
|
||||
K_EXPORT_PLASMA_DATAENGINE_WITH_JSON(org.kde.examples.simpleEngine, SimpleEngine, "plasma-dataengine-example-simpleEngine.json")
|
||||
K_PLUGIN_CLASS_WITH_JSON(SimpleEngine, "plasma-dataengine-example-simpleEngine.json")
|
||||
|
||||
// include the moc file so the build system makes it for us
|
||||
#include "simpleEngine.moc"
|
||||
|
@ -90,7 +90,7 @@ bool SourcesOnRequestEngine::updateSourceEvent(const QString &source)
|
||||
}
|
||||
|
||||
// export the plugin; use the plugin name and the class name
|
||||
K_EXPORT_PLASMA_DATAENGINE_WITH_JSON(org.kde.examples.sourcesOnRequest, SourcesOnRequestEngine, "plasma-dataengine-example-sourcesOnRequest.json")
|
||||
K_PLUGIN_CLASS_WITH_JSON(SourcesOnRequestEngine, "plasma-dataengine-example-sourcesOnRequest.json")
|
||||
|
||||
// include the moc file so the build system makes it for us
|
||||
#include "sourcesOnRequest.moc"
|
||||
|
Loading…
Reference in New Issue
Block a user