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

List:       kde-commits
Subject:    KDE/kdeadmin/kcron/src
From:       Nicolas Ternisien <nicolas.ternisien () gmail ! com>
Date:       2008-02-28 11:52:21
Message-ID: 1204199541.092482.13628.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 780216 by ternisien:

First classes for KCModule support

 M  +31 -6     CMakeLists.txt  
 A             kcmCron.cpp   [License: GPL (v2+)]
 A             kcmCron.h   [License: GPL (v2+)]
 A             kcm_cron.desktop  
 M  +1 -2      main.cpp  


--- trunk/KDE/kdeadmin/kcron/src/CMakeLists.txt #780215:780216
@@ -6,7 +6,8 @@
 	${CMAKE_CURRENT_SOURCE_DIR} 
 )
 
-set(kcron_SRCS
+
+set(kcron_generic_SRCS
    genericListWidget.cpp
     
    tasksWidget.cpp
@@ -22,17 +23,20 @@
 
    kcronIcons.cpp
    kcronHelper.cpp
-
-   kcron.cpp 
     
    crontabPrinter.cpp 
    crontabPrinterWidget.cpp 
+)
+
+########### Standalone Executable ###############
+
+set(kcron_SRCS
+   ${kcron_generic_SRCS}
+   kcron.cpp 
    main.cpp 
 )
 
 
-########### Installation ###############
-
 kde4_add_executable(kcron ${kcron_SRCS})
 
 target_link_libraries(kcron 
@@ -43,10 +47,31 @@
 
 install(TARGETS  kcron  DESTINATION ${BIN_INSTALL_DIR} )
 
+install(FILES kcron.desktop  DESTINATION  ${XDG_APPS_INSTALL_DIR} )
 
+
+########### KCM Module ###############
+
+set(kcm_cron_SRCS
+   ${kcron_generic_SRCS}
+   kcmCron.cpp 
+)
+
+
+kde4_add_plugin(kcm_cron ${kcm_cron_SRCS})
+
+target_link_libraries(kcm_cron 
+    ${KDE4_KIO_LIBS}
+    ${QT_QT3SUPPORT_LIBRARY}
+    kcron_crontablib
+)
+
+install(TARGETS  kcm_cron  DESTINATION ${PLUGIN_INSTALL_DIR} )
+
+install(FILES kcm_cron.desktop  DESTINATION  ${SERVICES_INSTALL_DIR} )
+
 ########### install files ###############
 
-install( FILES kcron.desktop  DESTINATION  ${XDG_APPS_INSTALL_DIR} )
 install( FILES kcronui.rc  DESTINATION  ${DATA_INSTALL_DIR}/kcron )
 
 kde4_install_icons( ${ICON_INSTALL_DIR}   )
--- trunk/KDE/kdeadmin/kcron/src/main.cpp #780215:780216
@@ -17,10 +17,9 @@
 #include <kaboutdata.h>
 
 int main(int argc, char* argv[]) {
-	static const char description[]= I18N_NOOP("KDE Task Scheduler");
 
 	KAboutData aboutData("kcron", 0, ki18n("KCron"), 
-	KDE_VERSION_STRING, ki18n(description), KAboutData::License_GPL, ki18n("(c) 2008, \
Nicolas Ternisien\n(c) 1999-2000, Gary Meyer")); +	KDE_VERSION_STRING, ki18n("KDE \
Task Scheduler"), KAboutData::License_GPL, ki18n("(c) 2008, Nicolas Ternisien\n(c) \
1999-2000, Gary Meyer"));  
 	aboutData.addAuthor(ki18n("Nicolas Ternisien"), KLocalizedString(), \
"nicolas.ternisien@gmail.com");  aboutData.addAuthor(ki18n("Gary Meyer"), \
KLocalizedString(), "gary@meyer.net");


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

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