Port sourceOnRequest DataEngine from examples

REVIEW: 112514
This commit is contained in:
Bhushan Shah 2013-09-04 18:58:15 +05:30
parent 8557409793
commit 0be909e24a
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,3 @@
add_subdirectory(simpleEngine) add_subdirectory(simpleEngine)
#add_subdirectory(sourcesOnRequest) add_subdirectory(sourcesOnRequest)
#add_subdirectory(customDataContainers) #add_subdirectory(customDataContainers)

View File

@ -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} )

View File

@ -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"