[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-workspace] dataengines/weather/ions/noaa: Weather Engine/NOAA: Export it correctly using K_E
From:       Davide Bettio <bettio () kde ! org>
Date:       2014-04-24 11:18:19
Message-ID: E1WdHfX-0001Oo-Ua () scm ! kde ! org
[Download RAW message or body]

Git commit 7bb34d388031ff2d2e0acbc8b39832cec1b18ac9 by Davide Bettio.
Committed on 24/04/2014 at 00:45.
Pushed by bettio into branch 'master'.

Weather Engine/NOAA: Export it correctly using K_EXPORT_PLASMA_DATAENGINE_W=
ITH_JSON

Signed-off-by: Davide Bettio <bettio@kde.org>

M  +2    -1    dataengines/weather/ions/noaa/CMakeLists.txt
M  +2    -0    dataengines/weather/ions/noaa/ion_noaa.cpp

http://commits.kde.org/plasma-workspace/7bb34d388031ff2d2e0acbc8b39832cec1b=
18ac9

diff --git a/dataengines/weather/ions/noaa/CMakeLists.txt b/dataengines/wea=
ther/ions/noaa/CMakeLists.txt
index 6909ce5..544f537 100644
--- a/dataengines/weather/ions/noaa/CMakeLists.txt
+++ b/dataengines/weather/ions/noaa/CMakeLists.txt
@@ -2,7 +2,8 @@ set (ion_noaa_SRCS ion_noaa.cpp)
 add_library(ion_noaa MODULE ${ion_noaa_SRCS})
 target_link_libraries (ion_noaa KF5::Solid KF5::KDELibs4Support KF5::I18n =
weather_ion)
 =

-install (FILES ion-noaa.desktop DESTINATION ${SERVICES_INSTALL_DIR})
+kservice_desktop_to_json(ion_noaa ion-noaa.desktop)
 =

+install (FILES ion-noaa.desktop DESTINATION ${SERVICES_INSTALL_DIR})
 install (TARGETS ion_noaa DESTINATION ${PLUGIN_INSTALL_DIR}/plasma/dataeng=
ine)
 =

diff --git a/dataengines/weather/ions/noaa/ion_noaa.cpp b/dataengines/weath=
er/ions/noaa/ion_noaa.cpp
index 2f51d0c..970e72c 100644
--- a/dataengines/weather/ions/noaa/ion_noaa.cpp
+++ b/dataengines/weather/ions/noaa/ion_noaa.cpp
@@ -970,4 +970,6 @@ void NOAAIon::readForecast(const QString& source, QXmlS=
treamReader& xml)
     }
 }
 =

+K_EXPORT_PLASMA_DATAENGINE_WITH_JSON(noaa, NOAAIon, "ion-noaa.json")
+
 #include "ion_noaa.moc"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic