Port sourceOnRequest DataEngine from examples
REVIEW: 112514
This commit is contained in:
parent
8557409793
commit
0be909e24a
@ -1,3 +1,3 @@
|
|||||||
add_subdirectory(simpleEngine)
|
add_subdirectory(simpleEngine)
|
||||||
#add_subdirectory(sourcesOnRequest)
|
add_subdirectory(sourcesOnRequest)
|
||||||
#add_subdirectory(customDataContainers)
|
#add_subdirectory(customDataContainers)
|
@ -2,8 +2,14 @@ set(sourcesOnRequest_SRCS
|
|||||||
sourcesOnRequest.cpp
|
sourcesOnRequest.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
kde4_add_plugin(plasma_dataengine_example_sourcesOnRequest ${sourcesOnRequest_SRCS})
|
kservice_desktop_to_json(plasma-dataengine-example-sourcesOnRequest.desktop)
|
||||||
target_link_libraries(plasma_dataengine_example_sourcesOnRequest ${KDE4_PLASMA_LIBS})
|
|
||||||
|
plasma_add_plugin(plasma_dataengine_example_sourcesOnRequest ${sourcesOnRequest_SRCS})
|
||||||
|
|
||||||
|
target_link_libraries(plasma_dataengine_example_sourcesOnRequest
|
||||||
|
plasma
|
||||||
|
${KService_LIBRARIES}
|
||||||
|
)
|
||||||
|
|
||||||
install(TARGETS plasma_dataengine_example_sourcesOnRequest DESTINATION ${PLUGIN_INSTALL_DIR})
|
install(TARGETS plasma_dataengine_example_sourcesOnRequest DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||||
install(FILES plasma-dataengine-example-sourcesOnRequest.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
install(FILES plasma-dataengine-example-sourcesOnRequest.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
||||||
|
@ -89,7 +89,7 @@ bool SourcesOnRequestEngine::updateSourceEvent(const QString &source)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// export the plugin; use the plugin name and the class name
|
// export the plugin; use the plugin name and the class name
|
||||||
K_EXPORT_PLASMA_DATAENGINE(org.kde.examples.sourcesOnRequest, SourcesOnRequestEngine)
|
K_EXPORT_PLASMA_DATAENGINE_WITH_JSON(org.kde.examples.sourcesOnRequest, SourcesOnRequestEngine, "plasma-dataengine-example-sourcesOnRequest.json")
|
||||||
|
|
||||||
// include the moc file so the build system makes it for us
|
// include the moc file so the build system makes it for us
|
||||||
#include "sourcesOnRequest.moc"
|
#include "sourcesOnRequest.moc"
|
||||||
|
Loading…
Reference in New Issue
Block a user