summaryrefslogtreecommitdiffstats
path: root/kioslave/media
diff options
context:
space:
mode:
Diffstat (limited to 'kioslave/media')
-rw-r--r--kioslave/media/CMakeLists.txt60
-rw-r--r--kioslave/media/kcmodule/CMakeLists.txt45
-rw-r--r--kioslave/media/kfile-plugin/CMakeLists.txt40
-rw-r--r--kioslave/media/libmediacommon/CMakeLists.txt41
-rw-r--r--kioslave/media/mediamanager/CMakeLists.txt48
-rw-r--r--kioslave/media/medianotifier/CMakeLists.txt43
-rw-r--r--kioslave/media/mimetypes/CMakeLists.txt35
-rw-r--r--kioslave/media/mounthelper/CMakeLists.txt36
-rw-r--r--kioslave/media/services/CMakeLists.txt17
9 files changed, 365 insertions, 0 deletions
diff --git a/kioslave/media/CMakeLists.txt b/kioslave/media/CMakeLists.txt
new file mode 100644
index 000000000..bce9c7a3c
--- /dev/null
+++ b/kioslave/media/CMakeLists.txt
@@ -0,0 +1,60 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# FIXME no HAL support yet
+
+add_subdirectory( libmediacommon )
+add_subdirectory( mediamanager )
+add_subdirectory( medianotifier )
+add_subdirectory( mounthelper )
+add_subdirectory( kfile-plugin )
+add_subdirectory( kcmodule )
+add_subdirectory( mimetypes )
+add_subdirectory( services )
+# tde_conditional_add_subdirectory( WITH_HAL propsdlgplugin )
+
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/libmediacommon
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES media.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kiomedia (static) #########################
+
+set( target kiomedia )
+
+tde_add_library( ${target} STATIC_PIC AUTOMOC
+ SOURCES kio_media.cpp mediaimpl.cpp mediaimpl.skel
+)
+
+
+##### kio_media (module) ########################
+
+set( target kio_media )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES dummy.cpp
+ EMBED kiomedia-static
+ LINK mediacommon-static kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/media/kcmodule/CMakeLists.txt b/kioslave/media/kcmodule/CMakeLists.txt
new file mode 100644
index 000000000..4a1dc2345
--- /dev/null
+++ b/kioslave/media/kcmodule/CMakeLists.txt
@@ -0,0 +1,45 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kioslave/media/libmediacommon
+ ${CMAKE_SOURCE_DIR}/kioslave/media/libmediacommon
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES media.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+
+
+##### kcm_media (module) ########################
+
+set( target kcm_media )
+
+set( ${target}_SRCS
+ notifiermodule.cpp notifiermoduleview.ui serviceconfigdialog.cpp
+ serviceview.ui mimetypelistboxitem.cpp managermodule.cpp
+ managermoduleview.ui main.cpp
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK mediacommon-static kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/media/kfile-plugin/CMakeLists.txt b/kioslave/media/kfile-plugin/CMakeLists.txt
new file mode 100644
index 000000000..591fd77f0
--- /dev/null
+++ b/kioslave/media/kfile-plugin/CMakeLists.txt
@@ -0,0 +1,40 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+check_include_file( "sys/statvfs.h" HAVE_STATVFS )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kioslave/media/libmediacommon
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kfile_media.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kfile_media (module) ######################
+
+set( target kfile_media )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES kfilemediaplugin.cpp
+ LINK mediacommon-static kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/media/libmediacommon/CMakeLists.txt b/kioslave/media/libmediacommon/CMakeLists.txt
new file mode 100644
index 000000000..2059e35a8
--- /dev/null
+++ b/kioslave/media/libmediacommon/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES mediamanagersettings.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+
+
+##### mediacommon (static) ######################
+
+set( target mediacommon )
+
+set( ${target}_SRCS
+ medium.cpp actionlistboxitem.cpp notifieraction.cpp
+ notifierserviceaction.cpp notifiernothingaction.cpp
+ notifieropenaction.cpp notifiersettings.cpp
+ mediamanagersettings.kcfgc
+)
+
+tde_add_library( ${target} STATIC_PIC AUTOMOC
+ SOURCES ${${target}_SRCS}
+)
diff --git a/kioslave/media/mediamanager/CMakeLists.txt b/kioslave/media/mediamanager/CMakeLists.txt
new file mode 100644
index 000000000..ae35f45f2
--- /dev/null
+++ b/kioslave/media/mediamanager/CMakeLists.txt
@@ -0,0 +1,48 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# FIXME there is no support for HAL and linuxcdpolling yet
+
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kioslave/media/libmediacommon
+ ${CMAKE_SOURCE_DIR}/kioslave/media/libmediacommon
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES mediamanager.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+
+
+##### kded_mediamanager (module) ################
+
+set( target kded_mediamanager )
+
+set( ${target}_SRCS
+ mediamanager.cpp mediamanager.skel medialist.cpp
+ backendbase.cpp fstabbackend.cpp removablebackend.cpp
+ mediadirnotify.cpp mediadirnotify.skel
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK mediacommon-static kdeinit_kded-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/media/medianotifier/CMakeLists.txt b/kioslave/media/medianotifier/CMakeLists.txt
new file mode 100644
index 000000000..7d67c736a
--- /dev/null
+++ b/kioslave/media/medianotifier/CMakeLists.txt
@@ -0,0 +1,43 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kioslave/media/libmediacommon
+ ${CMAKE_SOURCE_DIR}/kioslave/media/libmediacommon
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES medianotifier.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+
+
+##### kded_medianotifier (module) ###############
+
+set( target kded_medianotifier )
+
+set( ${target}_SRCS
+ medianotifier.cpp medianotifier.skel notificationdialog.cpp
+ notificationdialogview.ui
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK mediacommon-static kdeinit_kded-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/media/mimetypes/CMakeLists.txt b/kioslave/media/mimetypes/CMakeLists.txt
new file mode 100644
index 000000000..5b1946c2d
--- /dev/null
+++ b/kioslave/media/mimetypes/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### other data ################################
+
+install( FILES
+ floppy_mounted.desktop floppy_unmounted.desktop
+ floppy5_unmounted.desktop floppy5_mounted.desktop
+ zip_mounted.desktop zip_unmounted.desktop
+ hdd_mounted.desktop hdd_unmounted.desktop
+ hdd_mounted_decrypted.desktop hdd_unmounted_encrypted.desktop
+ hdd_unmounted_decrypted.desktop removable_mounted.desktop
+ removable_unmounted.desktop removable_mounted_decrypted.desktop
+ removable_unmounted_encrypted.desktop removable_unmounted_decrypted.desktop
+ cdrom_mounted.desktop cdrom_unmounted.desktop cdrom_mounted_decrypted.desktop
+ cdrom_unmounted_encrypted.desktop cdrom_unmounted_decrypted.desktop
+ dvd_mounted.desktop dvd_unmounted.desktop dvd_mounted_decrypted.desktop
+ dvd_unmounted_encrypted.desktop dvd_unmounted_decrypted.desktop
+ cdwriter_mounted.desktop cdwriter_unmounted.desktop
+ cdwriter_mounted_decrypted.desktop cdwriter_unmounted_encrypted.desktop
+ cdwriter_unmounted_decrypted.desktop smb_mounted.desktop
+ smb_unmounted.desktop nfs_mounted.desktop nfs_unmounted.desktop
+ audiocd.desktop dvdvideo.desktop blankcd.desktop blankdvd.desktop
+ svcd.desktop vcd.desktop gphoto2camera.desktop camera_mounted.desktop
+ camera_unmounted.desktop mydocuments.desktop mycomputer.desktop
+ mynetworkplaces.desktop printers.desktop trash.desktop webbrowser.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/media )
diff --git a/kioslave/media/mounthelper/CMakeLists.txt b/kioslave/media/mounthelper/CMakeLists.txt
new file mode 100644
index 000000000..099a07764
--- /dev/null
+++ b/kioslave/media/mounthelper/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kioslave/media/libmediacommon
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kio_media_mounthelper (executable) ########
+
+set( target kio_media_mounthelper )
+
+set( ${target}_SRCS
+ kio_media_mounthelper.cpp decryptdialog.ui dialog.cpp
+)
+
+tde_add_executable( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK mediacommon-static kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kioslave/media/services/CMakeLists.txt b/kioslave/media/services/CMakeLists.txt
new file mode 100644
index 000000000..055bfdf48
--- /dev/null
+++ b/kioslave/media/services/CMakeLists.txt
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### other data ################################
+
+install( FILES
+ media_decrypt.desktop media_mount.desktop media_unmount.desktop
+ media_eject.desktop media_safelyremove.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus )